Pārlūkot izejas kodu

计划外列表页面刷新优化

zhujindu 10 mēneši atpakaļ
vecāks
revīzija
1aacce52a4
1 mainītis faili ar 35 papildinājumiem un 34 dzēšanām
  1. 35 34
      src/views/deviceOutside/index.vue

+ 35 - 34
src/views/deviceOutside/index.vue

@@ -1499,40 +1499,41 @@ export default {
         sourceLat: location.lat,
         positionDesc: '',
         accuracy: res.accuracy,
-      });
-      // 进入拜访之前先刷新页面
-      this.pageNum = 1;
-      this.list = [];
-      this.finished = true;
-      if (this.tabVal == 1) {
-        this.getUserOutPlaListFun();
-      } else {
-        this.getUserOrgStoreList();
-      }
-      this.$router.push({
-        path: '/suishenbangOutstoreVisit',
-        query: {
-          storeId: val.storeId,
-          rdId: val.rdId,
-          lat: location.lat,
-          lon: location.lon,
-          visitId: val.visitId,
-          pageType: 'out',
-          addressLine: val.addressLine,
-          storeCategory: val.storeCategory,
-          storeName: val.storeName,
-          hisTime: val.hisTime,
-          contactName: val.contactName,
-          storeCode: val.storeCode,
-          tabVal: this.tabVal,
-          visitModel: '1',
-          latNew: location.lat,
-          lonNew: location.lon,
-          PointSum: PointSumval,
-          marklat: res.latitude,
-          marklon: res.longitude,
-          from: 'outPlan',
-        },
+      }).then((response) => {
+        // 进入拜访之前先刷新页面
+        this.pageNum = 1;
+        this.list = [];
+        this.finished = true;
+        if (this.tabVal == 1) {
+          this.getUserOutPlaListFun();
+        } else {
+          this.getUserOrgStoreList();
+        }
+        this.$router.push({
+          path: '/suishenbangOutstoreVisit',
+          query: {
+            storeId: val.storeId,
+            rdId: val.rdId,
+            lat: location.lat,
+            lon: location.lon,
+            visitId: val.visitId,
+            pageType: 'out',
+            addressLine: val.addressLine,
+            storeCategory: val.storeCategory,
+            storeName: val.storeName,
+            hisTime: val.hisTime,
+            contactName: val.contactName,
+            storeCode: val.storeCode,
+            tabVal: this.tabVal,
+            visitModel: '1',
+            latNew: location.lat,
+            lonNew: location.lon,
+            PointSum: PointSumval,
+            marklat: res.latitude,
+            marklon: res.longitude,
+            from: 'outPlan',
+          },
+        });
       });
     },
     projectOutVisit(val) {