Pārlūkot izejas kodu

外部单位-附件保存阿里云调整

sangwenwei 10 mēneši atpakaļ
vecāks
revīzija
047b884d88

+ 3 - 2
src/main/webapp/webpage/modules/externalUnit/feedbackFormModify.jsp

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