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
cbcd1ca7
Commit
cbcd1ca7
authored
Aug 08, 2023
by
18083
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电子签约文件大小取值位置调整
parent
2dafb7ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
con_ele_file_download.lsc
src/main/webapp/modules/wx/WX100/con_ele_file_download.lsc
+14
-1
No files found.
src/main/webapp/modules/wx/WX100/con_ele_file_download.lsc
View file @
cbcd1ca7
...
@@ -80,11 +80,13 @@
...
@@ -80,11 +80,13 @@
var data = con_num_map.getChildren();
var data = con_num_map.getChildren();
var v_con_id = data[0].contract_id;
var v_con_id = data[0].contract_id;
for (var j = 0; j < docs_list.length; j++) {
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({
con_ele_file_dl_bm.update({
contract_id: v_con_id,
contract_id: v_con_id,
file_name: docs_list[j].fileName,
file_name: docs_list[j].fileName,
file_url: docs_list[j].fileUrl.replace('/mnt','Z:'),
file_url: docs_list[j].fileUrl.replace('/mnt','Z:'),
file_size:docs_list[j].fileSize
//file_size:docs_list[j].fileSize
file_size:file_size
})
})
}
}
con_ele_file_dl_bm.execute({
con_ele_file_dl_bm.execute({
...
@@ -113,6 +115,17 @@
...
@@ -113,6 +115,17 @@
$ctx.parameter.json = JSON.stringify(result);
$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') {
if ($ctx.parameter.return_status != 'E' && $ctx.parameter.return_status != 'TIMEOUT') {
ele_file_download();
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