|
@@ -266,11 +266,11 @@ function ftlMultitest (storeAs, file,attachmentId,attachmentFlag,uploadPath,divI
|
|
}
|
|
}
|
|
})
|
|
})
|
|
};
|
|
};
|
|
-function collectingAccessory(obj,url,fileUrl,uploadUserId) {
|
|
|
|
|
|
+function collectingAccessory(obj,url,fileUrl,uploadUserId,fileSize) {
|
|
$.ajax({
|
|
$.ajax({
|
|
type: "post",
|
|
type: "post",
|
|
url: url,
|
|
url: url,
|
|
- data: {"url": fileUrl, "type": "1", "collectType": 1, "collectUserId": uploadUserId},
|
|
|
|
|
|
+ data: {"url": fileUrl, "type": "1", "collectType": 1, "collectUserId": uploadUserId,"fileSize":fileSize},
|
|
success: function (data) {
|
|
success: function (data) {
|
|
if (data.success) {
|
|
if (data.success) {
|
|
$(obj).hide()
|
|
$(obj).hide()
|
|
@@ -286,6 +286,7 @@ function multipartUploadWithStsCollection(storeAs, file,attachmentId,attachmentF
|
|
console.log("-----------------------"+realPath);
|
|
console.log("-----------------------"+realPath);
|
|
var fileUrl=file.linUrl;
|
|
var fileUrl=file.linUrl;
|
|
var url=file.url;
|
|
var url=file.url;
|
|
|
|
+ var fileSize=file.fileSize;
|
|
file.fileName.replace(" ","")
|
|
file.fileName.replace(" ","")
|
|
file.fileName.replace(/—/g,"")
|
|
file.fileName.replace(/—/g,"")
|
|
var fileName = file.fileName;
|
|
var fileName = file.fileName;
|
|
@@ -336,11 +337,11 @@ function multipartUploadWithStsCollection(storeAs, file,attachmentId,attachmentF
|
|
if(cpt == 1)
|
|
if(cpt == 1)
|
|
fBmultitestFlag(client,storeAs, file,attachmentId,attachmentFlag,uploadPath.replace('http://dmtest-test.oss-cn-shanghai.aliyuncs.com', result.AliyunUrl),divId,size, cpt,idx,prefix,currentUser);
|
|
fBmultitestFlag(client,storeAs, file,attachmentId,attachmentFlag,uploadPath.replace('http://dmtest-test.oss-cn-shanghai.aliyuncs.com', result.AliyunUrl),divId,size, cpt,idx,prefix,currentUser);
|
|
else
|
|
else
|
|
- multitestCollection(client, storeAs, file,attachmentId,attachmentFlag,uploadPath.replace('http://dmtest-test.oss-cn-shanghai.aliyuncs.com', result.AliyunUrl),divId,size, cpt,fileUrl);
|
|
|
|
|
|
+ multitestCollection(client, storeAs, file,attachmentId,attachmentFlag,uploadPath.replace('http://dmtest-test.oss-cn-shanghai.aliyuncs.com', result.AliyunUrl),divId,size, cpt,fileUrl,fileSize);
|
|
})
|
|
})
|
|
|
|
|
|
};
|
|
};
|
|
-function multitestCollection (ossClient, storeAs, file,attachmentId,attachmentFlag,uploadPath,divId, size,cpt,fileUrl) {
|
|
|
|
|
|
+function multitestCollection (ossClient, storeAs, file,attachmentId,attachmentFlag,uploadPath,divId, size,cpt,fileUrl,fileSize) {
|
|
|
|
|
|
var names = storeAs.split("/");
|
|
var names = storeAs.split("/");
|
|
var name = names[names.length-1];
|
|
var name = names[names.length-1];
|
|
@@ -375,6 +376,7 @@ function multitestCollection (ossClient, storeAs, file,attachmentId,attachmentFl
|
|
"attachmentName":file['name'],
|
|
"attachmentName":file['name'],
|
|
"attachmentId":attachmentId,
|
|
"attachmentId":attachmentId,
|
|
"attachmentFlag":attachmentFlag,
|
|
"attachmentFlag":attachmentFlag,
|
|
|
|
+ "fileSize":fileSize,
|
|
"url":storeAs
|
|
"url":storeAs
|
|
},
|
|
},
|
|
success:function(data){
|
|
success:function(data){
|
|
@@ -426,6 +428,7 @@ function multitestCollection (ossClient, storeAs, file,attachmentId,attachmentFl
|
|
'<input name="workAttachments['+lenght+'].createBy.id" type="hidden" readonly="readonly" maxlength="20" style="width:140px;" class="form-control" value="'+data.createBy+'"/>'+
|
|
'<input name="workAttachments['+lenght+'].createBy.id" type="hidden" readonly="readonly" maxlength="20" style="width:140px;" class="form-control" value="'+data.createBy+'"/>'+
|
|
'<input name="workAttachments['+lenght+'].type" type="hidden" readonly="readonly" maxlength="20" style="width:140px;" class="form-control" value="'+data.type+'"/>'+
|
|
'<input name="workAttachments['+lenght+'].type" type="hidden" readonly="readonly" maxlength="20" style="width:140px;" class="form-control" value="'+data.type+'"/>'+
|
|
'<input name="workAttachments['+lenght+'].attachmentFlag" type="hidden" readonly="readonly" maxlength="20" style="width:140px;" class="form-control" value="'+data.attachmentFlag+'"/>'+
|
|
'<input name="workAttachments['+lenght+'].attachmentFlag" type="hidden" readonly="readonly" maxlength="20" style="width:140px;" class="form-control" value="'+data.attachmentFlag+'"/>'+
|
|
|
|
+ '<input name="workAttachments['+lenght+'].fileSize" type="hidden" readonly="readonly" maxlength="20" style="width:140px;" class="form-control" value="'+data.fileSize+'"/>'+
|
|
'</td>'+
|
|
'</td>'+
|
|
'<td class="op-td">'+
|
|
'<td class="op-td">'+
|
|
'<div class="op-btn-box">';
|
|
'<div class="op-btn-box">';
|
|
@@ -676,6 +679,7 @@ function multitest (ossClient, storeAs, file,attachmentId,attachmentFlag,uploadP
|
|
"attachmentName":file['name'],
|
|
"attachmentName":file['name'],
|
|
"attachmentId":attachmentId,
|
|
"attachmentId":attachmentId,
|
|
"attachmentFlag":attachmentFlag,
|
|
"attachmentFlag":attachmentFlag,
|
|
|
|
+ "fileSize":file['size'],
|
|
"url":"/"+storeAs
|
|
"url":"/"+storeAs
|
|
},
|
|
},
|
|
success:function(data){
|
|
success:function(data){
|
|
@@ -727,6 +731,7 @@ function multitest (ossClient, storeAs, file,attachmentId,attachmentFlag,uploadP
|
|
'<input name="workAttachments['+lenght+'].createBy.id" type="hidden" readonly="readonly" maxlength="20" style="width:140px;" class="form-control" value="'+data.createBy+'"/>'+
|
|
'<input name="workAttachments['+lenght+'].createBy.id" type="hidden" readonly="readonly" maxlength="20" style="width:140px;" class="form-control" value="'+data.createBy+'"/>'+
|
|
'<input name="workAttachments['+lenght+'].type" type="hidden" readonly="readonly" maxlength="20" style="width:140px;" class="form-control" value="'+data.type+'"/>'+
|
|
'<input name="workAttachments['+lenght+'].type" type="hidden" readonly="readonly" maxlength="20" style="width:140px;" class="form-control" value="'+data.type+'"/>'+
|
|
'<input name="workAttachments['+lenght+'].attachmentFlag" type="hidden" readonly="readonly" maxlength="20" style="width:140px;" class="form-control" value="'+data.attachmentFlag+'"/>'+
|
|
'<input name="workAttachments['+lenght+'].attachmentFlag" type="hidden" readonly="readonly" maxlength="20" style="width:140px;" class="form-control" value="'+data.attachmentFlag+'"/>'+
|
|
|
|
+ '<input name="workAttachments['+lenght+'].fileSize" type="hidden" readonly="readonly" maxlength="20" style="width:140px;" class="form-control" value="'+data.fileSize+'"/>'+
|
|
'</td>'+
|
|
'</td>'+
|
|
'<td class="op-td">'+
|
|
'<td class="op-td">'+
|
|
'<div class="op-btn-box">';
|
|
'<div class="op-btn-box">';
|