Browse Source

计划外列表页面刷新优化

zhujindu 11 months ago
parent
commit
1159638baf
1 changed files with 17 additions and 9 deletions
  1. 17 9
      src/views/deviceOutside/index.vue

+ 17 - 9
src/views/deviceOutside/index.vue

@@ -719,15 +719,15 @@ export default {
     // localStorage.removeItem('visitId');
     // this.getStoreTypeList();
     // this.getStoreLabels();
-    var postType = localStorage.getItem('postType');
-    if (postType == 'GZ') {
-      this.addShow1 = false;
-      this.otherShow = true;
-    } else {
-      this.addShow1 = true;
-      this.otherShow = false;
-    }
-    this.getMonth();
+    // var postType = localStorage.getItem('postType');
+    // if (postType == 'GZ') {
+    //   this.addShow1 = false;
+    //   this.otherShow = true;
+    // } else {
+    //   this.addShow1 = true;
+    //   this.otherShow = false;
+    // }
+    // this.getMonth();
   },
   methods: {
     initData() {
@@ -762,7 +762,15 @@ export default {
       }
       this.query = this.$route.query; // 路由参数
       localStorage.removeItem('visitId');
+      if (localStorage.getItem('postType') == 'GZ') {
+        this.addShow1 = false;
+        this.otherShow = true; //筛选-其他
+      } else {
+        this.addShow1 = true;
+        this.otherShow = false; //筛选-其他
+      }
       this.onSearch();
+      this.getMonth();
     },
     setStroeNameStyle(item) {
       // 家装或工装 approvalStatus:是否结案 0:未结案,1:已结案