销售漏斗

zm
戴余标 2 years ago
parent 4db8e9c1fe
commit ed3798302b

@ -11,7 +11,7 @@ module.exports = {
assetsPublicPath: '/',
proxyTable: {
'/api': {
target: 'http://192.168.31.226:8088',
target: 'http://192.168.50.40:8088',
changeOrigin: true,
pathRewrite: {
@ -19,7 +19,7 @@ module.exports = {
}
},
'/file': {
target: 'http://192.168.31.226:8088/',
target: 'http://192.168.50.40:8088/',
changeOrigin: true,
pathRewrite: {
'^/file': ''

@ -34,12 +34,12 @@
<div id="sales-funnel" />
<flexbox justify="center" class="info-box">
<flexbox direction="column" class="info-item">
<!-- <button id="btn-win" class="btn-num" style="color: #6ca2ff;" @click="getView()"></button> -->
<button class="btn-num" style="color: #6ca2ff;" @click="pushView()"></button>
<button id="btn-win" class="btn-num" style="color: #6ca2ff;" @click="getWin()"></button>
<!-- <button class="btn-num" style="color: #6ca2ff;" @click="pushView()"></button> -->
<div class="value">{{ funnelData.winSingle }}</div>
</flexbox>
<flexbox direction="column" class="info-item">
<button class="btn-num" @click="pushView()"></button>
<button class="btn-num" @click="getLose()"></button>
<div class="value">{{ funnelData.loseSingle }}</div>
</flexbox>
</flexbox>
@ -138,9 +138,9 @@ export default {
this.getBusinessStatusList()
},
methods: {
pushView() {
this.$router.push('/crm/business')
},
// pushView() {
// this.$router.push('/crm/business')
// },
initChart() {
this.chartObj = echarts.init(document.getElementById('sales-funnel'))
this.chartObj.setOption(this.chartOption, true)
@ -148,10 +148,14 @@ export default {
this.$emit('chart-click', params, this.dataList[params.dataIndex])
})
},
// getView() {
// console.log('aa' + this.dataList)
// this.$emit('chart-click', [], this.dataList[1])
// },
getWin() {
console.log('aa' + this.dataList)
this.$emit('chart-click', [], this.dataList[4])
},
getLose() {
console.log('aa' + this.dataList)
this.$emit('chart-click', [], this.dataList[5])
},
/**
* 获取统计数据
*/

Loading…
Cancel
Save