|
|
@@ -122,7 +122,10 @@
|
|
|
show: true,
|
|
|
position: 'top',
|
|
|
color: '#FF770F',
|
|
|
- formatter: '¥{c}',
|
|
|
+ formatter: (res)=>{
|
|
|
+ if(res.value>0) return '¥'+res.value
|
|
|
+ else return ''
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
data: [285, 200, 285, 300, 285, 285, 320],
|
|
|
@@ -240,7 +243,7 @@
|
|
|
this.option2.xAxis[0].data = this.echartData.turnoverList.map(item=>{return item.showTime})
|
|
|
this.option2.yAxis[0].axisLabel.fontSize = 13 * this.rpxTopxScale
|
|
|
this.option2.xAxis[0].axisLabel.fontSize = 13 * this.rpxTopxScale
|
|
|
- this.option2.series[0].data = this.echartData.turnoverList.map(item=>{return item.orderCount})
|
|
|
+ this.option2.series[0].data = this.echartData.turnoverList.map(item=>{return item.orderCount?item.orderCount:0})
|
|
|
this.option2.series[0].label.normal.fontSize = 13 * this.rpxTopxScale
|
|
|
chart.setOption(this.option2);
|
|
|
});
|
|
|
@@ -251,7 +254,7 @@
|
|
|
this.option3.xAxis[0].data = this.echartData.profitList.map(item=>{return item.showTime})
|
|
|
this.option3.yAxis[0].axisLabel.fontSize = 13 * this.rpxTopxScale
|
|
|
this.option3.xAxis[0].axisLabel.fontSize = 13 * this.rpxTopxScale
|
|
|
- this.option3.series[0].data = this.echartData.profitList.map(item=>{return item.profit})
|
|
|
+ this.option3.series[0].data = this.echartData.profitList.map(item=>{return item.profit?item.profit:0})
|
|
|
this.option3.series[0].label.normal.fontSize = 13 * this.rpxTopxScale
|
|
|
chart.setOption(this.option3);
|
|
|
});
|