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 个文件`);