diff --git a/src/views/system/motionPrescriptionLibrary/index.vue b/src/views/system/motionPrescriptionLibrary/index.vue index a430bf7..1a2b01b 100644 --- a/src/views/system/motionPrescriptionLibrary/index.vue +++ b/src/views/system/motionPrescriptionLibrary/index.vue @@ -214,6 +214,7 @@ :file-list="fileList" :on-change="handleChange" :limit="5" + :before-remove="handleFileremove" drag > @@ -230,17 +231,18 @@ -
+
+
+ +
@@ -543,6 +545,10 @@ export default { handleFileUploadProgress(event, file, fileList) { this.upload.isUploading = true; }, + //删除文件 + handleFileremove(file, fileList) { + this.fileList = this.fileList.filter(e => e != file); + }, // 文件上传成功处理 handleFileSuccess(response, file, fileList) { this.upload.isUploading = false; @@ -555,10 +561,12 @@ export default { // "上传结果", // { dangerouslyUseHTMLString: true } // ); - this.videourl.push(response.prescriptionVideoUrl); }, // 提交上传文件 submitFileForm() { + this.fileList.forEach(e => { + this.videourl.push(e.response.prescriptionVideoUrl); + }); var obj = { motionPrescriptionId: this.upload.data.motionPrescriptionId, prescriptionVideoUrlList: this.videourl