浏览代码

计划外列表页面刷新优化

zhujindu 10 月之前
父节点
当前提交
00d51f0ceb
共有 1 个文件被更改,包括 2 次插入9 次删除
  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;