Commit df8a2fd7 by 前端

Merge branch 'wangzh_dev_v1.2.1' into 'master'

控制台打开

See merge request !1
2 parents 6ec80da9 629a9588
......@@ -25,7 +25,7 @@
</template>
</template>
<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-type', index == 0 ? 'group-type-index' : '']">
{{ index + 1 }}
......@@ -76,7 +76,9 @@ export default {
qyTotalCountMerchantTop: state => state.report.qyTotalCountMerchantTop //企微客户数排行
})
},
mounted() {},
mounted() {
},
methods: {
click(tabIndex) {
this.tabIndex = tabIndex
......
......@@ -49,8 +49,8 @@ export default {
},
mounted() {},
methods: {
click(tabIndex) {
this.showLoading()
this.tabIndex = tabIndex
this.$emit('change', tabIndex)
}
......
......@@ -38,12 +38,11 @@ Vue.prototype.to = function (name, params) {
// import 'lib-flexible/flexible.js'
Vue.config.productionTip = false
//import VConsole from 'vconsole'
//const vConsole = new VConsole()
import VConsole from 'vconsole'
const vConsole = new VConsole()
const isMock = true
fetchConfig(!isMock).then(res => {
console.log(res)
// 从配置服务器获取动态配置
// 设置 js中可以访问 $cdn
Vue.use(cfg)
......
......@@ -69,8 +69,6 @@ export default {
state.productionValueReportList = payload.reportData.productionValueReportList ? payload.reportData.productionValueReportList : [];
state.trendList = payload.reportData.trendList ? payload.reportData.trendList : []//新增产值趋势图
state.trendChartList = [] //客户的趋势图
},
//设置底部tabIndex
["SET_TAB_INDEX"](state, payload) {
......@@ -89,7 +87,8 @@ export default {
},
['SET_UESR_INFI'](state, payload) {
state.userInfo.accountLevel = payload.accountLevel
},
},
//获取客户报表数据
['SET_CUSTOMER_REPORT'](state, payload) {
//新增企微客户数环比
......@@ -125,8 +124,8 @@ export default {
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) + '%'
state.reportData = payload.reportData
state.qyCustomerRatioMerchantTop = payload.reportData.qyCustomerRatioMerchantTop //企微客户占比
state.qyTotalCountMerchantTop = payload.reportData.qyTotalCountMerchantTop //企微客户占比
state.qyCustomerRatioMerchantTop = payload.reportData.qyCustomerRatioMerchantTop&&payload.reportData.qyCustomerRatioMerchantTop //企微客户占比
state.qyTotalCountMerchantTop = payload.reportData.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!