|
@@ -35,12 +35,6 @@ var dashboard = new Vue({
|
|
|
_this.msgFlag = true
|
|
|
}
|
|
|
_this.homeData.salesStatisticsList.map(function (item) {
|
|
|
- if(item.orderQuantity == 0){
|
|
|
- item.orderQuantity = 0.1;
|
|
|
- }
|
|
|
- if(item.orderAmount == 0){
|
|
|
- item.orderAmount = 0.1;
|
|
|
- }
|
|
|
_this.orderNumData.push(item.orderQuantity);
|
|
|
_this.paytotalfeeData.push(item.orderAmount);
|
|
|
});
|
|
@@ -97,6 +91,14 @@ var dashboard = new Vue({
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ toolbox: {
|
|
|
+ feature: {
|
|
|
+ dataView: {show: true, readOnly: false},
|
|
|
+ magicType: {show: true, type: ['line', 'bar']},
|
|
|
+ restore: {show: true},
|
|
|
+ saveAsImage: {show: true}
|
|
|
+ }
|
|
|
+ },
|
|
|
legend: {
|
|
|
show: true,
|
|
|
top: 0,
|
|
@@ -111,14 +113,27 @@ var dashboard = new Vue({
|
|
|
xAxis: [{
|
|
|
type: 'category',
|
|
|
boundaryGap: false,
|
|
|
- data: ['近一个月','近三个月','近半年','近一年']
|
|
|
- }],
|
|
|
- yAxis: [{
|
|
|
- type: 'log',
|
|
|
- axisTick: {
|
|
|
- show: true
|
|
|
+ data: ['近一个月','近三个月','近半年','近一年'],
|
|
|
+ axisPointer: {
|
|
|
+ type: 'shadow'
|
|
|
}
|
|
|
}],
|
|
|
+ yAxis: [
|
|
|
+ {
|
|
|
+ type: 'value',
|
|
|
+ name: '金额',
|
|
|
+ axisTick: {
|
|
|
+ show: true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 'value',
|
|
|
+ name: '',
|
|
|
+ axisTick: {
|
|
|
+ show: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
series: [
|
|
|
{
|
|
|
name: '订单金额(元)',
|