Przeglądaj źródła

经销商拜访历史 任务展示优化

zhujindu 5 miesięcy temu
rodzic
commit
04d0dc5055
1 zmienionych plików z 4 dodań i 3 usunięć
  1. 4 3
      src/views/agentList/visitHistoryDetail.vue

+ 4 - 3
src/views/agentList/visitHistoryDetail.vue

@@ -278,9 +278,10 @@ export default {
       getVisitsDetail({ visitsId: this.urlParameter.visitId }).then((res) => {
         if (res.code == 200) {
           let arr = [];
-          res.data.sfaTaskList.forEach((val, ind) => {
-            arr.push(ind);
-          });
+          res.data.sfaTaskList &&
+            res.data.sfaTaskList.forEach((val, ind) => {
+              arr.push(ind);
+            });
           this.activeNames = arr;
           this.list = res.data;
           if (res.data.visitSource != 2) {