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 = {}; }