Browse Source

计划外列表页面刷新优化

zhujindu 10 months ago
parent
commit
00d51f0ceb
1 changed files with 2 additions and 9 deletions
  1. 2 9
      src/views/deviceOutside/index.vue

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

@@ -1502,14 +1502,7 @@ export default {
         accuracy: res.accuracy,
       }).then((response) => {
         // 进入拜访之前先刷新页面
-        this.pageNum = 1;
-        this.list = [];
-        this.finished = true;
-        if (this.tabVal == 1) {
-          this.getUserOutPlaListFun();
-        } else {
-          this.getUserOrgStoreList();
-        }
+        store.dispatch('setDeviceOutsidePage', true);
         this.$router.push({
           path: '/suishenbangOutstoreVisit',
           query: {
@@ -1959,7 +1952,7 @@ export default {
       this.$router.go(-1);
     },
     onSearch() {
-      window.scrollTo(0, 0);
+      // window.scrollTo(0, 0);
       this.pageNum = 1;
       this.list = [];
       this.finished = true;