From 6a0a38296335ad804f942dcbeeabd3fe8e5182f3 Mon Sep 17 00:00:00 2001 From: hhl123456789 <3118891075@qq.com> Date: Mon, 18 Mar 2024 11:41:50 +0800 Subject: [PATCH] =?UTF-8?q?'=E8=AF=81=E6=8D=AE=E4=BF=AE=E6=94=B9=E6=98=BE?= =?UTF-8?q?=E9=9A=90=E9=97=AE=E9=A2=98=E8=B0=83=E6=95=B4'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/caseManagement/components/addCase.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/views/caseManagement/components/addCase.vue b/src/views/caseManagement/components/addCase.vue index 0d2bcec..f45a40b 100644 --- a/src/views/caseManagement/components/addCase.vue +++ b/src/views/caseManagement/components/addCase.vue @@ -84,7 +84,7 @@ --> - + - +
@@ -578,6 +578,7 @@ export default { getUserInfoList: {}, applicationFlag: null, showmediate: false, + showEvidence: false,//是否显示证据 formZipData: {}, nationalityList: [ { @@ -671,12 +672,14 @@ export default { caseApplicationSelectByIdFn(data) { this.applicantEvidence = []; this.respondentEvidence = []; + this.showEvidence = false; caseApplicationSelectById({ id: data }).then((res) => { res.data.affiliate.respondentSex = Number(res.data.affiliate.respondentSex) this.formData = res.data; this.formData.caseAttachList.forEach((item) => { if (item.annexType == 2) { this.applicantEvidence.push(item); + this.showEvidence = true } else if (item.annexType == 6) { // this.respondentEvidence.push(item); } else if (item.annexType == 7) { @@ -740,9 +743,10 @@ export default { return this.$confirm(`确定移除 ${file.name}?`); }, handleRemove(file, fileList) { - this.caseAttachListArr = this.caseAttachListArr.filter( - (item) => item.annexId != file.annexId - ); + let newcaseAttachList = this.formData.caseAttachList.filter(item => + item.annexId !== file.response.annexId + ) + this.formData.caseAttachList = newcaseAttachList }, handleExceedZip(files, fileList) { this.$message.warning(`当前限制选择 1 个文件`); -- 2.54.0