From 3f1a362764b5a78cab06a8350ebea26ee0bf8deb Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 15 Oct 2023 18:28:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B9=A6=E9=9D=A2=E9=A1=B5=E9=9D=A2=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/adjudicaterecordDialog.vue | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/views/caseManagement/components/adjudicaterecordDialog.vue b/src/views/caseManagement/components/adjudicaterecordDialog.vue index 1170799..4e7a3be 100644 --- a/src/views/caseManagement/components/adjudicaterecordDialog.vue +++ b/src/views/caseManagement/components/adjudicaterecordDialog.vue @@ -326,21 +326,23 @@ export default { this.applicateArr = []; this.quiltArr = []; this.formData = this.form; - setTimeout(() => { - this.adjudicatename.caseAttachList.forEach(item => { - if (item.annexType == 2) { - this.applicateArr.push({ - annexName: item.annexName, - annexPath: item.annexPath, - }); - } - if (item.annexType == 6) { - this.quiltArr.push({ - annexName: item.annexName, - annexPath: item.annexPath, - }); - } - }); + setTimeout(() => { + if (this.adjudicatename.caseAttachList.length > 0) { + this.adjudicatename.caseAttachList.forEach(item => { + if (item.annexType == 2) { + this.applicateArr.push({ + annexName: item.annexName, + annexPath: item.annexPath, + }); + } + if (item.annexType == 6) { + this.quiltArr.push({ + annexName: item.annexName, + annexPath: item.annexPath, + }); + } + }); + } }, 500); this.form2 = {}; } -- 2.54.0