Browse Source

Merge branch 'feature_20250811_拜访拍照任务连拍' into uat(dev)

zhujindu 3 months ago
parent
commit
03f9af64ae
1 changed files with 3 additions and 7 deletions
  1. 3 7
      src/views/week/dailyHistoricalDetails.vue

+ 3 - 7
src/views/week/dailyHistoricalDetails.vue

@@ -748,13 +748,6 @@ export default {
       //
     };
   },
-  created() {
-    this.reportId = this.$route.query.reportId ? this.$route.query.reportId.replace('?', '') : '';
-    console.log(this.reportId);
-    this.powerGrade = localStorage.getItem('powerGrade');
-    this.isDiy = localStorage.getItem('isDiy');
-    this.getDetailById();
-  },
   watch: {
     $route(to, from) {
       this.powerGrade = localStorage.getItem('powerGrade');
@@ -778,6 +771,9 @@ export default {
     this.num = 0;
     this.userTodayPlanNum();
     this.setShareFlag = false;
+    this.powerGrade = localStorage.getItem('powerGrade');
+    this.isDiy = localStorage.getItem('isDiy');
+    this.getDetailById();
   },
   methods: {
     setVisitIMG1Flag(item) {