Преглед на файлове

feature_20250826_埋点梳理优化

zhujindu преди 3 месеца
родител
ревизия
6ba63bce1d
променени са 2 файла, в които са добавени 45 реда и са изтрити 36 реда
  1. 10 1
      src/components/filtrate.vue
  2. 35 35
      src/views/deviceOutside/index.vue

+ 10 - 1
src/components/filtrate.vue

@@ -135,7 +135,7 @@
   </div>
 </template>
 <script>
-import { getCustomerList, getStoreLabels, getStoreTypeListlp } from '@/api/index';
+import { getCustomerList, getStoreLabels, getStoreTypeListlp, buryingPoint } from '@/api/index';
 export default {
   name: 'filtrate',
   props: {
@@ -242,6 +242,15 @@ export default {
           }
         }
       }
+      if (this.chainName != '') {
+        buryingPoint({
+          systemModel: '计划内',
+          buryingPointType: 1,
+          buryingPointValue: this.chainName,
+          buryingPointName: '经销商筛选',
+          buryingPointPosition: '我的筛选',
+        });
+      }
       localStorage.setItem('outvstoreName', this.storeName);
       localStorage.setItem('outvchainName', this.chainName);
       localStorage.setItem('outvstoreLabelTypes', this.storeLabelTypes);

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

@@ -1251,23 +1251,23 @@ export default {
       localStorage.setItem('tabVal', this.tabVal);
       localStorage.removeItem('visitId');
       checkVisit({ storeId: val.storeId }).then((res) => {
-        if (this.tabVal == 1) {
-          this.buryingPoint({
-            systemModel: '计划外',
-            buryingPointType: 1,
-            buryingPointValue: val.storeName + '(' + val.storeCode + ')',
-            buryingPointName: '进店拜访',
-            buryingPointPosition: '我的',
-          });
-        } else {
-          this.buryingPoint({
-            systemModel: '计划外',
-            buryingPointType: 1,
-            buryingPointValue: val.storeName + '(' + val.storeCode + ')',
-            buryingPointName: '进店拜访',
-            buryingPointPosition: '销售部',
-          });
-        }
+        // if (this.tabVal == 1) {
+        //   this.buryingPoint({
+        //     systemModel: '计划外',
+        //     buryingPointType: 1,
+        //     buryingPointValue: val.storeName + '(' + val.storeCode + ')',
+        //     buryingPointName: '进店拜访',
+        //     buryingPointPosition: '我的',
+        //   });
+        // } else {
+        //   this.buryingPoint({
+        //     systemModel: '计划外',
+        //     buryingPointType: 1,
+        //     buryingPointValue: val.storeName + '(' + val.storeCode + ')',
+        //     buryingPointName: '进店拜访',
+        //     buryingPointPosition: '销售部',
+        //   });
+        // }
         if (res.code == 200 || val.stateString.indexOf('拜访中') != -1) {
           if (localStorage.getItem('loginType') == 'cs') {
             var lat = '';
@@ -2130,15 +2130,15 @@ export default {
             buryingPointPosition: '我的筛选',
           });
         }
-        if (this.storeName != '') {
-          this.buryingPoint({
-            systemModel: '计划外',
-            buryingPointType: 1,
-            buryingPointValue: this.storeName,
-            buryingPointName: '搜索名称/编号/地址',
-            buryingPointPosition: '我的筛选',
-          });
-        }
+        // if (this.storeName != '') {
+        //   this.buryingPoint({
+        //     systemModel: '计划外',
+        //     buryingPointType: 1,
+        //     buryingPointValue: this.storeName,
+        //     buryingPointName: '搜索名称/编号/地址',
+        //     buryingPointPosition: '我的筛选',
+        //   });
+        // }
       } else {
         if (this.storeLabelTypes.length > 0) {
           this.buryingPoint({
@@ -2167,15 +2167,15 @@ export default {
             buryingPointPosition: '销售部的门店筛选',
           });
         }
-        if (this.storeName != '') {
-          this.buryingPoint({
-            systemModel: '计划外',
-            buryingPointType: 1,
-            buryingPointValue: this.storeName,
-            buryingPointName: '搜索名称/编号/地址',
-            buryingPointPosition: '销售部的门店筛选',
-          });
-        }
+        // if (this.storeName != '') {
+        //   this.buryingPoint({
+        //     systemModel: '计划外',
+        //     buryingPointType: 1,
+        //     buryingPointValue: this.storeName,
+        //     buryingPointName: '搜索名称/编号/地址',
+        //     buryingPointPosition: '销售部的门店筛选',
+        //   });
+        // }
       }
       localStorage.setItem('outvstoreName', this.storeName);
       localStorage.setItem('outvchainName', this.chainName);