From f00a25449fccdd071673774fe1207f0cfedcddbc Mon Sep 17 00:00:00 2001 From: hanchaobo Date: Tue, 30 Apr 2024 13:46:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=A7=A3=E4=B9=A6=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/caseManagement/components/mediation.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/views/caseManagement/components/mediation.vue b/src/views/caseManagement/components/mediation.vue index cc75f42..068cdc6 100644 --- a/src/views/caseManagement/components/mediation.vue +++ b/src/views/caseManagement/components/mediation.vue @@ -98,12 +98,12 @@ - 选取文件 -
只能上传.doc,docx文件
+
只能上传.doc,docx,pdf文件
@@ -178,6 +178,7 @@ export default { }, watch: { mediationVisable(val) { + this.attachList = []; this.formData.mediaResult = 1; this.formData.sealFlag = 1; this.recordArr = []; @@ -221,7 +222,8 @@ export default { handlePreview(file) { }, handleRemove(file, fileList) { - + let updatedArray = this.attachList.filter(item => item.annexId != file.response.annexId); + this.attachList = updatedArray; }, beforeUpload(flie, fileList) { this.fileList = fileList; @@ -229,7 +231,7 @@ export default { handlSuccess(res, file) { this.codes = res.code console.log(res) - this.attachList = [{ annexId: res.annexId,annexType:res.annexType}]; + this.attachList.push({ annexId: res.annexId,annexType:res.annexType}); // this.$set(this.mediationData, "attachList", {annexId:res.annexId}); }, /** 获取案件详情信息 */ @@ -319,6 +321,8 @@ export default { this.$emit("cancelMediation"); this.$emit("getList", this.queryParams); this.loadingSubmit = false; + }).catch(err=>{ + this.loadingSubmit = false; }); }, cancel() { @@ -352,6 +356,7 @@ export default { id: this.mediationData.id, caseFlowId: this.mediationData.caseFlowId, sealFlag:this.sealFlag, + attachList: this.attachList, mediaResult: this.formData.mediaResult, } }