Commit 70864292 by 王志慧

bug修改

1 parent 2542c74c
......@@ -25,8 +25,8 @@
</template>
</template>
<template v-else>
<template v-if="qyCustomerRatioMerchantTop && qyCustomerRatioMerchantTop.length">
<div class="group-inline flex" v-for="(c, index) in qyCustomerRatioMerchantTop" :key="c.id">
<template v-if=" tabType.index == 0? qyCustomerRatioMerchantTop.length>0:qyTotalCountMerchantTop.length>0">
<div class="group-inline flex" v-for="(c, index) in tabType.index == 0 ? qyCustomerRatioMerchantTop : qyTotalCountMerchantTop" :key="c.id">
<div :class="['group-type', index == 0 ? 'group-type-index' : '']">
{{ index + 1 }}
<template v-if="index == 0">
......@@ -58,7 +58,9 @@ export default {
name: 'GroupRanking',
data() {
return {}
return {
data: []
}
},
computed: {
...mapState({
......@@ -66,8 +68,8 @@ export default {
tabIndex: state => state.report.tabIndex,
tabType: state => state.report.tabType,
qyCustomerRatioMerchantTop: state => state.report.qyCustomerRatioMerchantTop, //企微客户占比
productionReportList: state => state.report.productionReportList
// qyTotalCountMerchantTop: state => state.report.productionReportList
productionReportList: state => state.report.productionReportList,
qyTotalCountMerchantTop: state => state.report.qyTotalCountMerchantTop//企微客户数排行
})
},
mounted() {},
......
......@@ -86,7 +86,7 @@ export default {
{
text: '企微客户占比最高的门店:',
value: obj => {
return obj.newlyQyFastestGrowthMerchant ? obj.newlyQyFastestGrowthMerchant : '-'
return obj.newlyQyHighestRatioMerchant ? obj.newlyQyHighestRatioMerchant : '-'
},
icon: 'proportion'
},
......
......@@ -126,6 +126,7 @@ export default {
payload.reportData.applyDegree = payload.reportData.applyDegree != null && (payload.reportData.applyDegree * 100).toFixed(0) + '%'
state.reportData = payload.reportData
state.qyCustomerRatioMerchantTop = payload.reportData.qyCustomerRatioMerchantTop //企微客户占比
state.qyTotalCountMerchantTop = payload.reportData.qyTotalCountMerchantTop //企微客户占比
state.staffDistributionVOList = payload.reportData.staffDistributionVOList ? payload.reportData.staffDistributionVOList : [] //客户分布
state.trendChartList = payload.reportData.trendChartList ? payload.reportData.trendChartList : []
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!