瀏覽代碼

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

zhujindu 6 月之前
父節點
當前提交
28ece2fc5b
共有 2 個文件被更改,包括 4 次插入6 次删除
  1. 1 0
      src/views/historicalVisit/historAllVisit.vue
  2. 3 6
      src/views/historicalVisit/historicalDetails.vue

+ 1 - 0
src/views/historicalVisit/historAllVisit.vue

@@ -312,6 +312,7 @@ export default {
       this.endminDate = new Date(this.getDay(-7));
     },
     detilsFn(val) {
+      console.log(val.id);
       this.$router.push({
         path: '/historicalDetails',
         query: {

+ 3 - 6
src/views/historicalVisit/historicalDetails.vue

@@ -231,12 +231,6 @@ export default {
       AIResultOption: [],
     };
   },
-  created() {
-    this.visitsId = this.$route.query.visitId;
-    this.dataform.visitsId = this.$route.query.visitId;
-    this.getVisitsDetailFn();
-    this.getPhotoTypeList();
-  },
   // watch: {
   //   $route(to, from) {
   //     console.log(to.path)
@@ -246,11 +240,14 @@ export default {
   //   }
   // },
   activated() {
+    this.visitsId = this.$route.query.visitId;
+    this.dataform.visitsId = this.$route.query.visitId;
     this.getVisitsDetailFn();
     // 获取店招异常原因字典
     getDictOption({}, 'feedback_error_msg').then((res) => {
       this.AIResultOption = res.data;
     });
+    this.getPhotoTypeList();
   },
   methods: {
     resultCorrect(resultCorrect) {