Sfoglia il codice sorgente

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

zhujindu 6 mesi fa
parent
commit
28ece2fc5b

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