Bladeren bron

经销商数据看板

duanshenglang 2 maanden geleden
bovenliggende
commit
bcf2ff72dc
1 gewijzigde bestanden met toevoegingen van 79 en 1 verwijderingen
  1. 79 1
      lottery/jxs.html

+ 79 - 1
lottery/jxs.html

@@ -505,7 +505,7 @@
             </div>
             <div v-if="outletCount.length">
               <div class="branch_item" v-for="(item, index) in outletCount" :key="index">
-                <div style="width: 20px;">{{item.name}}</div>
+                <div style="width: 20px;">{{item.outletName}}</div>
                 <div style="width: 40px;">{{item.clientTotal}}</div>
                 <div style="width: 50px;">{{item.clientAdd}}</div>
                 <div style="width: 50px;">{{item.taskNum}}</div>
@@ -821,6 +821,83 @@
               this.getHdList()
               this.getClueList()
               this.getSpreadList()
+            } else {
+              this.homeIndicators = {
+                clientTotal: 0,
+                ydaAdd: 0,
+                ocogNum: 0,
+                ydaOcogNum: 0,
+                saleAdd: 0,
+                ydaSaleAdd: 0,
+                serveAdd: 0,
+                ydaServeAdd: 0,
+                reachNum: 0,
+                ydaReachNum: 0,
+                privateChatNum: 0,
+                ydaPrivateChatNum: 0,
+                privateMsgNum: 0,
+                ydaPrivateMsgNum: 0,
+                groupMsgNum: 0,
+                ydaGroupMsgNum: 0,
+                clueNum: 0,
+                ydaClueNum: 0,
+                cpClueNum: 0,
+                ydaCpClueNum: 0,
+                lwClueNum: 0,
+                ydaLwClueNum: 0,
+                spreadNum: 0,
+                ydaSpreadNum: 0,
+              }
+              this.clientName = '总客户数'
+              this.index =  1
+              this.khStartTime =  this.getDateTime(-7)
+              this.khEndTime =  this.getDateTime(-1)
+              this.lineDate = []
+              this.clientAdd = []
+              this.ocogNum = []
+              this.saleAdd = []
+              this.serveAdd = []
+
+              this.stepChartData = [] // 客户资产梯形图
+              this.tableList = [] // 客群包阶段车型
+              this.carIndex = 0
+              this.carStepData = [] // 客群包阶段车型数据
+
+              this.wdStartTime = this.getDateTime(-7)
+              this.wdEndTime = this.getDateTime(-1)
+              this.outletCount = [] // 网点
+              
+              this.hdStartTime = this.getDateTime(-7)
+              this.hdEndTime = this.getDateTime(-1)
+              this.interactDate = [] // 互动
+              this.privateChat = []
+              this.privateMsgNum = []
+              this.groupMsgNum = []
+              this.hdList = {
+                moment: {
+                  taskNum: 0,
+                  completeNum: 0,
+                  reachNum: 0,
+                  taskCompletePercent: 0,
+                },
+                send: {
+                  taskNum: 0,
+                  completeNum: 0,
+                  reachNum: 0,
+                  taskCompletePercent: 0,
+                },
+              },
+
+              this.lzStartTime = this.getDateTime(-7)
+              this.lzEndTime = this.getDateTime(-1)
+              this.clueDate = [] // 留资
+              this.cpClueNum = []
+              this.lwClueNum = []
+
+              this.spreadStartTime = this.getDateTime(-7)
+              this.spreadEndTime = this.getDateTime(-1)
+              this.spreadDate = [] // 到店传播
+              this.spreadNum = []
             }
           } else if (code === 10001) {
             this.loginOut()
@@ -1217,6 +1294,7 @@
           method: 'post',
           body: JSON.stringify({
             keyword: '',
+            dealerId: this.dealerIds[0],
           }),
           headers: {
             'Content-Type': 'application/json',