Переглянути джерело

门店拜访任务列表访问速度优化

zhujindu 5 місяців тому
батько
коміт
42cd742b13

+ 1 - 0
src/views/deviceOutside/index.vue

@@ -1452,6 +1452,7 @@ export default {
         positionDesc: '',
         accuracy: res.accuracy,
       });
+      localStorage.setItem('getRequestFlage', 'true');
       this.$router.push({
         path: '/suishenbangOutstoreVisit',
         query: {

+ 3 - 0
src/views/deviceOutside/rangeStore.vue

@@ -1688,6 +1688,7 @@ export default {
               lat = val.lat;
               lon = val.lon;
             }
+            localStorage.setItem('getRequestFlage', 'true');
             this.$router.push({
               path: '/suishenbangOutstoreVisit',
               query: {
@@ -1729,6 +1730,7 @@ export default {
                 localStorage.setItem('startTime', new Date());
                 localStorage.setItem('ORGName', val.deptName);
                 localStorage.setItem('chainNameR', val.storeName);
+                localStorage.setItem('getRequestFlage', 'true');
                 that.$router.push({
                   path: '/suishenbangOutstoreVisit',
                   query: {
@@ -1975,6 +1977,7 @@ export default {
         positionDesc: '',
         accuracy: res.accuracy,
       });
+      localStorage.setItem('getRequestFlage', 'true');
       this.$router.push({
         path: '/suishenbangOutstoreVisit',
         query: {

+ 3 - 0
src/views/deviceOutside/topStore.vue

@@ -1437,6 +1437,7 @@ export default {
               lat = val.lat;
               lon = val.lon;
             }
+            localStorage.setItem('getRequestFlage', 'true');
             this.$router.push({
               path: '/suishenbangOutstoreVisit',
               query: {
@@ -1478,6 +1479,7 @@ export default {
                 localStorage.setItem('startTime', new Date());
                 localStorage.setItem('ORGName', val.deptName);
                 localStorage.setItem('chainNameR', val.storeName);
+                localStorage.setItem('getRequestFlage', 'true');
                 that.$router.push({
                   path: '/suishenbangOutstoreVisit',
                   query: {
@@ -1831,6 +1833,7 @@ export default {
         positionDesc: '',
         accuracy: res.accuracy,
       });
+      localStorage.setItem('getRequestFlage', 'true');
       this.$router.push({
         path: '/suishenbangOutstoreVisit',
         query: {

+ 0 - 1
src/views/deviceWithin/addStoreVisit.vue

@@ -4798,7 +4798,6 @@ export default {
             telName = item.itemName + '格式错误';
           }
         });
-        debugger;
         if (!telVerify) {
           this.$toast(telName);
         } else {

+ 1 - 0
src/views/home/hintTabPage/noVisit.vue

@@ -159,6 +159,7 @@ export default {
             localStorage.setItem('startTime', new Date());
             localStorage.setItem('ORGName', this.activatStoreVal.deptName);
             localStorage.setItem('chainNameR', this.activatStoreVal.storeName);
+            localStorage.setItem('getRequestFlage', 'true');
             this.$router.push({
               path: this.visitRoutePath,
               query: {