From ed3798302bde63001bf783e3374d73289737191e Mon Sep 17 00:00:00 2001 From: datang Date: Mon, 27 Mar 2023 09:47:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=80=E5=94=AE=E6=BC=8F=E6=96=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 4 ++-- .../crm/workbench/components/SalesFunnel.vue | 24 +++++++++++-------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/config/index.js b/config/index.js index 8dcad39..cc2d0b9 100644 --- a/config/index.js +++ b/config/index.js @@ -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': '' diff --git a/src/views/crm/workbench/components/SalesFunnel.vue b/src/views/crm/workbench/components/SalesFunnel.vue index 6e4e19d..351d216 100644 --- a/src/views/crm/workbench/components/SalesFunnel.vue +++ b/src/views/crm/workbench/components/SalesFunnel.vue @@ -34,12 +34,12 @@
- - + +
{{ funnelData.winSingle }}单
- +
{{ funnelData.loseSingle }}单
@@ -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]) + }, /** * 获取统计数据 */