销售漏斗

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

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

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

Loading…
Cancel
Save