瀏覽代碼

公装主管任务

zhujindu 7 月之前
父節點
當前提交
9a4cc7d9ae
共有 2 個文件被更改,包括 5 次插入2 次删除
  1. 1 1
      src/views/week/VisitSummaryAdd.vue
  2. 4 1
      src/views/week/componVisitSummary.vue

+ 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);