ソースを参照

提示类页签增加埋点

zhujindu 11 ヶ月 前
コミット
7b39f5ec61

+ 5 - 0
src/api/index.js

@@ -707,6 +707,11 @@ export function buryingPoint(data) {
     method: 'post',
     data: data,
   });
+  // buryingPointType	是	string	埋点类型,字典burying_point_type: 1=门店类型筛选,2=审核日报照片
+  // buryingPointValue	否	string	埋点值
+  // buryingPointName	是	string	埋点名称
+  // buryingPointPosition	是	string	埋点位置
+  // systemModel	是	string	系统模块名称
 }
 export function addstoreRegister(data) {
   return request({

+ 38 - 6
src/views/home/hintTabPage/index.vue

@@ -74,7 +74,18 @@
             <div class="reportItem">
               <div class="label">填写率:</div>
               <div class="value">本月{{ report.reportData.fillingRate }}</div>
-              <div class="itemDetail" v-if="empLevel != '3'" @click="reportClick('fillingRate')">
+              <div
+                class="itemDetail"
+                v-if="empLevel != '3'"
+                @click="
+                  reportClick(
+                    'fillingRate',
+                    '填写率-本月:' +
+                      report.reportData.fillingRate +
+                      ';审批率-本月:' +
+                      report.reportData.approvalRate
+                  )
+                ">
                 下属详情
               </div>
             </div>
@@ -89,7 +100,11 @@
             </div>
             <div class="reportItem reportNum" v-show="empLevel == '1'">
               <div class="label"></div>
-              <div class="itemDetail" @click="reportClick('commentNum')">进入点评</div>
+              <div
+                class="itemDetail"
+                @click="reportClick('commentNum', '目标数: ' + report.reportData.commentNum)">
+                进入点评
+              </div>
             </div>
             <div class="mask" v-if="report.reportLosding">
               <van-loading type="spinner" color="#1989fa" />
@@ -133,7 +148,7 @@
                     </div>
                     <div class="right">
                       <div class="lebel">门店未签收:</div>
-                      <div class="value valueIsClick" @click="pantoneClick(val, key)">
+                      <div class="value valueIsClick" @click="pantoneClick(val, key, val.mdwqsNum)">
                         {{ Micrometer(val.wqsmdNum) }}家
                       </div>
                     </div>
@@ -162,7 +177,7 @@
                     </div>
                     <div class="right">
                       <div class="lebel">门店未签收:</div>
-                      <div class="value valueIsClick" @click="pantoneClick(val, key)">
+                      <div class="value valueIsClick" @click="pantoneClick(val, key, val.mdwqsNum)">
                         {{ Micrometer(val.mdwqsNum) }}本
                       </div>
                     </div>
@@ -185,6 +200,7 @@ import {
   selectBuildingStore,
   getReportTarget,
   getReportMaterial,
+  buryingPoint,
 } from '@/api/index';
 import hintIcon from '@/assets/hintIcon.png';
 import visitPage from './visitPage.vue';
@@ -482,7 +498,15 @@ export default {
       }
     },
     // 汇报下属详情-点击
-    reportClick(type) {
+    reportClick(type, value) {
+      // 埋点
+      buryingPoint({
+        systemModel: '提示类',
+        buryingPointType: 7,
+        buryingPointValue: value,
+        buryingPointName: type == 'fillingRate' ? '下属详情' : '进入点评',
+        buryingPointPosition: this.empLevel == '1' ? '半月报' : '周报',
+      });
       if (type == 'fillingRate') {
         // 下属汇报率审批率统计
         this.$router.push({ path: 'reportingRate' });
@@ -492,7 +516,15 @@ export default {
       }
     },
     // 色卡查看详情
-    pantoneClick(val, key) {
+    pantoneClick(val, key, value) {
+      // 埋点
+      buryingPoint({
+        systemModel: '提示类',
+        buryingPointType: 7,
+        buryingPointValue: value,
+        buryingPointName: key + '-门店未签收:',
+        buryingPointPosition: '色卡',
+      });
       // 业务员进入未拜访列表
       if (this.empLevel == '3') {
         this.$router.push({ path: '/pantoneNoGet', query: { storeId: val.storeId } });

+ 15 - 3
src/views/home/hintTabPage/visitPage.vue

@@ -18,7 +18,10 @@
           </div>
           <div class="itemRight" :style="{ width: fromType == 'noVisit' ? '130px' : '140px' }">
             <div class="label">{{ list.rightTable }}</div>
-            <div class="label" :style="labelStyle(list)" @click="onClick(item, list)">
+            <div
+              class="label"
+              :style="labelStyle(list)"
+              @click="onClick(item, list, resData[item.titleProp][list.rightProp])">
               <span v-if="list.rightProp">
                 {{ Micrometer(resData[item.titleProp][list.rightProp]) }}
               </span>
@@ -34,6 +37,7 @@
 
 <script>
 import store from '@/store';
+import { buryingPoint } from '@/api/index';
 export default {
   name: 'visitPage',
   props: {
@@ -56,7 +60,7 @@ export default {
     empLevel: {
       type: String,
     },
-    // 来源类型 'noVisit':拜访; 'createStore':建店;
+    // 来源类型 'noVisit':拜访(实时); 'createStore':建店;
     fromType: {
       type: String,
     },
@@ -72,7 +76,15 @@ export default {
       };
     },
     // 跳转详情
-    onClick(item, list) {
+    onClick(item, list, value) {
+      // 埋点
+      buryingPoint({
+        systemModel: '提示类',
+        buryingPointType: 7,
+        buryingPointValue: value,
+        buryingPointName: item.title + '-' + list.rightTable,
+        buryingPointPosition: this.fromType == 'noVisit' ? '拜访(实时)' : '建店',
+      });
       // 等级3(销售员):点击未拜访;进入未拜访列表(noVIsit);点击建店:进入我的-我的客户(storemanagementlist)
       // 等级2或1(销售部主管和大区负责人):进入统页面(hintDetail)
       if (this.empLevel == '3') {