|
@@ -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)
|
|
|
}
|