Forráskód Böngészése

门店拜访任务列表访问速度优化

zhujindu 6 hónapja
szülő
commit
e99a663f6c
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      src/views/historicalVisit/hisvistdeils.vue

+ 5 - 0
src/views/historicalVisit/hisvistdeils.vue

@@ -305,6 +305,9 @@ export default {
     };
   },
   activated() {
+    this.taskType = 1;
+    this.tableData1 = [];
+    this.collectionItemList = [];
     this.taskType = this.$route.query.taskType;
     this.PhotoType = this.$route.query.photoType;
     this.visitId = this.$route.query.visitId + '';
@@ -365,7 +368,9 @@ export default {
       return arrc.join(',');
     },
     info() {
+      this.toastLoading(0, '加载中...', true);
       getVisitsDetail({ visitsId: this.visitId }).then((res) => {
+        this.toastLoading().clear();
         this.infoData = res.data;
         var collectionItemLists = res.data.sfaTaskList[this.$route.query.ids].collectionItemList;
         if (res.data.sfaTaskList[this.$route.query.ids].checkUnManage == 'Y') {