|
@@ -37,9 +37,9 @@ export default {
|
|
let rooms = await this.countRoom();
|
|
let rooms = await this.countRoom();
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
let arr = res.data.filter(f => f.status != '3');
|
|
let arr = res.data.filter(f => f.status != '3');
|
|
- let taking = rooms.errcode == 0 ? rooms.total : 0;
|
|
|
|
let s1 = res.data.filter(f => f.status == '1'); //达成意向
|
|
let s1 = res.data.filter(f => f.status == '1'); //达成意向
|
|
let s2 = res.data.filter(f => f.status == '2'); //对接完成
|
|
let s2 = res.data.filter(f => f.status == '2'); //对接完成
|
|
|
|
+ let s3 = res.data.filter(f => f.status == '0'); //正在洽谈
|
|
this.myChart = echarts.init(document.getElementById('chart'));
|
|
this.myChart = echarts.init(document.getElementById('chart'));
|
|
const option = {
|
|
const option = {
|
|
title: { text: '交易情况', left: 'center' },
|
|
title: { text: '交易情况', left: 'center' },
|
|
@@ -61,7 +61,7 @@ export default {
|
|
},
|
|
},
|
|
type: 'bar',
|
|
type: 'bar',
|
|
data: [
|
|
data: [
|
|
- { name: '正在洽谈', value: taking, itemStyle: { color: '#7cb5ec' } },
|
|
|
|
|
|
+ { name: '正在洽谈', value: s3.length, itemStyle: { color: '#7cb5ec' } },
|
|
{ name: '达成意向', value: s1.length, itemStyle: { color: '#ffa94b' } },
|
|
{ name: '达成意向', value: s1.length, itemStyle: { color: '#ffa94b' } },
|
|
{ name: '对接完成', value: s2.length, itemStyle: { color: '#346da4' } },
|
|
{ name: '对接完成', value: s2.length, itemStyle: { color: '#346da4' } },
|
|
],
|
|
],
|