Procházet zdrojové kódy

书面页面报错

Your Name před 2 roky
rodič
revize
3f1a362764

+ 17
- 15
src/views/caseManagement/components/adjudicaterecordDialog.vue Zobrazit soubor

326
           this.applicateArr = [];
326
           this.applicateArr = [];
327
           this.quiltArr = [];
327
           this.quiltArr = [];
328
           this.formData = this.form;
328
           this.formData = this.form;
329
-          setTimeout(() => {    
330
-          this.adjudicatename.caseAttachList.forEach(item => {
331
-            if (item.annexType == 2) {
332
-                this.applicateArr.push({
333
-                  annexName: item.annexName,
334
-                  annexPath: item.annexPath,
335
-                });
336
-              }
337
-              if (item.annexType == 6) {
338
-                this.quiltArr.push({
339
-                  annexName: item.annexName,
340
-                  annexPath: item.annexPath,
341
-                });
342
-              }
343
-          });
329
+          setTimeout(() => {
330
+            if (this.adjudicatename.caseAttachList.length > 0) {
331
+              this.adjudicatename.caseAttachList.forEach(item => {
332
+                if (item.annexType == 2) {
333
+                    this.applicateArr.push({
334
+                      annexName: item.annexName,
335
+                      annexPath: item.annexPath,
336
+                    });
337
+                  }
338
+                  if (item.annexType == 6) {
339
+                    this.quiltArr.push({
340
+                      annexName: item.annexName,
341
+                      annexPath: item.annexPath,
342
+                    });
343
+                  }
344
+              });
345
+            }          
344
           }, 500);
346
           }, 500);
345
           this.form2 = {};
347
           this.form2 = {};
346
         }
348
         }