Commit 2e4e7c86 by 王志慧

commit

1 parent 6ec80da9
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</template> </template>
</template> </template>
<template v-else> <template v-else>
<template v-if="tabType.index == 0 ? qyCustomerRatioMerchantTop.length > 0 : qyTotalCountMerchantTop.length > 0"> <template v-if="tabType.index == 0 ? qyCustomerRatioMerchantTop&&qyCustomerRatioMerchantTop.length > 0 : qyTotalCountMerchantTop&&qyTotalCountMerchantTop.length > 0">
<div class="group-inline flex" v-for="(c, index) in tabType.index == 0 ? qyCustomerRatioMerchantTop : qyTotalCountMerchantTop" :key="c.id"> <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' : '']"> <div :class="['group-type', index == 0 ? 'group-type-index' : '']">
{{ index + 1 }} {{ index + 1 }}
...@@ -76,7 +76,9 @@ export default { ...@@ -76,7 +76,9 @@ export default {
qyTotalCountMerchantTop: state => state.report.qyTotalCountMerchantTop //企微客户数排行 qyTotalCountMerchantTop: state => state.report.qyTotalCountMerchantTop //企微客户数排行
}) })
}, },
mounted() {}, mounted() {
},
methods: { methods: {
click(tabIndex) { click(tabIndex) {
this.tabIndex = tabIndex this.tabIndex = tabIndex
......
...@@ -38,12 +38,11 @@ Vue.prototype.to = function (name, params) { ...@@ -38,12 +38,11 @@ Vue.prototype.to = function (name, params) {
// import 'lib-flexible/flexible.js' // import 'lib-flexible/flexible.js'
Vue.config.productionTip = false Vue.config.productionTip = false
//import VConsole from 'vconsole' import VConsole from 'vconsole'
//const vConsole = new VConsole() const vConsole = new VConsole()
const isMock = true const isMock = true
fetchConfig(!isMock).then(res => { fetchConfig(!isMock).then(res => {
console.log(res)
// 从配置服务器获取动态配置 // 从配置服务器获取动态配置
// 设置 js中可以访问 $cdn // 设置 js中可以访问 $cdn
Vue.use(cfg) Vue.use(cfg)
......
...@@ -125,8 +125,8 @@ export default { ...@@ -125,8 +125,8 @@ export default {
payload.reportData.flowQyDegree = payload.reportData.flowQyDegree != null && (payload.reportData.flowQyDegree * 100).toFixed(0) + '%' payload.reportData.flowQyDegree = payload.reportData.flowQyDegree != null && (payload.reportData.flowQyDegree * 100).toFixed(0) + '%'
payload.reportData.applyDegree = payload.reportData.applyDegree != null && (payload.reportData.applyDegree * 100).toFixed(0) + '%' payload.reportData.applyDegree = payload.reportData.applyDegree != null && (payload.reportData.applyDegree * 100).toFixed(0) + '%'
state.reportData = payload.reportData state.reportData = payload.reportData
state.qyCustomerRatioMerchantTop = payload.reportData.qyCustomerRatioMerchantTop //企微客户占比 state.qyCustomerRatioMerchantTop = payload.reportData.qyCustomerRatioMerchantTop&&payload.reportData.qyCustomerRatioMerchantTop //企微客户占比
state.qyTotalCountMerchantTop = payload.reportData.qyTotalCountMerchantTop //企微客户占比 state.qyTotalCountMerchantTop = payload.reportData.qyTotalCountMerchantTop&&payload.reportData.qyTotalCountMerchantTop //企微客户占比
state.staffDistributionVOList = payload.reportData.staffDistributionVOList ? payload.reportData.staffDistributionVOList : [] //客户分布 state.staffDistributionVOList = payload.reportData.staffDistributionVOList ? payload.reportData.staffDistributionVOList : [] //客户分布
state.trendChartList = payload.reportData.trendChartList ? payload.reportData.trendChartList : [] 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!