|
|
@ -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])
|
|
|
|
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 获取统计数据
|
|
|
|
* 获取统计数据
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|