Browse Source

Merge branch 'feature_20250527_门店拜访任务列表访问速度优化' into uat(dev)

zhujindu 5 months ago
parent
commit
53952df374
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/views/deviceOutside/rangeStore.vue

+ 4 - 1
src/views/deviceOutside/rangeStore.vue

@@ -835,6 +835,7 @@ export default {
     };
     };
   },
   },
   created() {
   created() {
+    localStorage.setItem('storeCode', '');
     this.heifhgts = window.innerHeight - 190 + 'px';
     this.heifhgts = window.innerHeight - 190 + 'px';
     // 好邦手接入拜访系统地图功能
     // 好邦手接入拜访系统地图功能
     // 获取url参数 userId
     // 获取url参数 userId
@@ -859,6 +860,7 @@ export default {
     this.msgshow = false;
     this.msgshow = false;
     this.storeName = localStorage.getItem('outvstoreName');
     this.storeName = localStorage.getItem('outvstoreName');
     this.chainName = localStorage.getItem('outvchainName');
     this.chainName = localStorage.getItem('outvchainName');
+    this.storeCode = localStorage.getItem('storeCode');
     if (localStorage.getItem('outvstoreLabelTypes') != null) {
     if (localStorage.getItem('outvstoreLabelTypes') != null) {
       this.storeLabelTypes = localStorage.getItem('outvstoreLabelTypes').split(',');
       this.storeLabelTypes = localStorage.getItem('outvstoreLabelTypes').split(',');
     } else {
     } else {
@@ -1459,6 +1461,7 @@ export default {
       }
       }
     },
     },
     onClickLeft() {
     onClickLeft() {
+      localStorage.setItem('storeCode', '');
       this.$router.go(-1);
       this.$router.go(-1);
     },
     },
     buryingPointFn(val) {
     buryingPointFn(val) {
@@ -2019,7 +2022,7 @@ export default {
         positionDesc: '',
         positionDesc: '',
         accuracy: res.accuracy,
         accuracy: res.accuracy,
       });
       });
-      this.storeCode = val.storeCode;
+      localStorage.setItem('storeCode', val.storeCode);
       this.$router.push({
       this.$router.push({
         path: '/suishenbangOutstoreVisit',
         path: '/suishenbangOutstoreVisit',
         query: {
         query: {