From e57f675a9b0803f8f13b8930014a075e0ef0b402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Thu, 6 Apr 2023 14:03:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../motionPrescriptionLibrary/index.vue | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) 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