فهرست منبع

修改用户分析筛选字段customerSnList

chenrui 2 سال پیش
والد
کامیت
9b27116d8b
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      src/views/dataStatistics/userAnalysis/activeUser.vue

+ 4 - 4
src/views/dataStatistics/userAnalysis/activeUser.vue

@@ -29,11 +29,11 @@
               </div>
               <div>
                 <span>门店数量占比</span>
-                <span>{{ card.shelfRate }}%</span>
+                <span>{{ card.shelfRate? card.shelfRate + '%':0 }}</span>
               </div>
               <div>
                 <span>累计销售金额占比</span>
-                <span>{{ card.amountRate }}%</span>
+                <span>{{ card.amountRate? card.amountRate+'%' :0 }}</span>
               </div>
             </div>
           </a-card>
@@ -327,14 +327,14 @@ export default {
     chooseCard (num) {
       if (this.cardIndex == num) { // eslint-disable-line
         this.cardIndex = null
-        var { lvCode, dealerSnList, storeSnList, ...newObj } = this.queryParam
+        var { lvCode, dealerSnList, customerSnList, ...newObj } = this.queryParam
         this.queryParam = newObj
       } else {
         this.cardIndex = num
         const obj = {
           lvCode: this.getShelfLeveData[num].levelName,
           dealerSnList: this.getShelfLeveData[num].dealerSnList || [],
-          storeSnList: this.getShelfLeveData[num].storeSnList || []
+          customerSnList: this.getShelfLeveData[num].customerSnList || []
         }
         Object.assign(this.queryParam, obj)
       }