|
@@ -55,6 +55,7 @@
|
|
});
|
|
});
|
|
function insertTitle(tValue){
|
|
function insertTitle(tValue){
|
|
console.log('insertTitle')
|
|
console.log('insertTitle')
|
|
|
|
+ var projectId = $('#projectId').val();
|
|
var list = "${feedback.workAttachments}";
|
|
var list = "${feedback.workAttachments}";
|
|
var size = (list.split('url')).length-1;
|
|
var size = (list.split('url')).length-1;
|
|
var files = $("#attachment_file_conciliationRecords")[0].files;
|
|
var files = $("#attachment_file_conciliationRecords")[0].files;
|
|
@@ -65,12 +66,12 @@
|
|
console.log(file);
|
|
console.log(file);
|
|
var timestamp = new Date().getTime();
|
|
var timestamp = new Date().getTime();
|
|
var remarks = ""
|
|
var remarks = ""
|
|
- var storeAs = "externalUnit";
|
|
|
|
|
|
+ var storeAs = "externalUnit/"+projectId;
|
|
var uploadPath = "http://gangwan-app.oss-cn-hangzhou.aliyuncs.com/" + storeAs;
|
|
var uploadPath = "http://gangwan-app.oss-cn-hangzhou.aliyuncs.com/" + storeAs;
|
|
/*将这段字符串存到数据库即可*/
|
|
/*将这段字符串存到数据库即可*/
|
|
var divId = "_exterFeedback";
|
|
var divId = "_exterFeedback";
|
|
$("#addFile" + divId).show();
|
|
$("#addFile" + divId).show();
|
|
- multipartUploadWithSts(storeAs, file, attachmentId, attachmentFlag, uploadPath, divId, size);
|
|
|
|
|
|
+ multipartUploadWithExter(storeAs, file, attachmentId, attachmentFlag, uploadPath, divId, size);
|
|
}
|
|
}
|
|
console.log('list',files)
|
|
console.log('list',files)
|
|
}
|
|
}
|