Sfoglia il codice sorgente

公装主管任务

zhujindu 7 mesi fa
parent
commit
9a4cc7d9ae

+ 1 - 1
src/views/week/VisitSummaryAdd.vue

@@ -475,7 +475,7 @@ export default {
               }
             }
             // 照片
-            if (collectionItemLists[q].answerType == 'zp') {
+            if (collectionItemLists[q].answerType == 'zp' && collectionItemLists[q].fileInfoList) {
               let fileIdList = [];
               collectionItemLists[q].fileInfoList.forEach((item) => {
                 fileIdList.push(item.id);

+ 4 - 1
src/views/week/componVisitSummary.vue

@@ -399,7 +399,10 @@ export default {
           }
         }
         // 照片
-        if (this.collectionItemList[q].answerType == 'zp') {
+        if (
+          this.collectionItemList[q].answerType == 'zp' &&
+          this.collectionItemList[q].fileInfoList
+        ) {
           let fileIdList = [];
           this.collectionItemList[q].fileInfoList.forEach((item) => {
             fileIdList.push(item.id);