Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hlcm
leaf-hlcm
Commits
d5dcd4f0
Commit
d5dcd4f0
authored
Aug 08, 2023
by
18083
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电子签约文件大小取值位置调整
parent
15858380
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
con_ele_file_download.lsc
src/main/webapp/modules/wx/WX100/con_ele_file_download.lsc
+15
-2
No files found.
src/main/webapp/modules/wx/WX100/con_ele_file_download.lsc
View file @
d5dcd4f0
...
...
@@ -80,11 +80,13 @@
var data = con_num_map.getChildren();
var v_con_id = data[0].contract_id;
for (var j = 0; j < docs_list.length; j++) {
var file_size=get_file_length(docs_list[j].fileUrl.replace('/mnt','Z:'));
con_ele_file_dl_bm.update({
contract_id: v_con_id,
file_name: docs_list[j].fileName,
file_url: docs_list[j].fileUrl.replace('/mnt','X:'),
file_size:docs_list[j].fileSize
file_url: docs_list[j].fileUrl.replace('/mnt','Z:'),
//file_size:docs_list[j].fileSize
file_size:file_size
})
}
con_ele_file_dl_bm.execute({
...
...
@@ -113,6 +115,17 @@
$ctx.parameter.json = JSON.stringify(result);
}
//获取文件长度
function get_file_length(path){
var file=new File(String(path));
if (file.exists() && file.isFile()){
length=file.length();
return length;
} else{
return 0;
}
}
if ($ctx.parameter.return_status != 'E' && $ctx.parameter.return_status != 'TIMEOUT') {
ele_file_download();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment