|
@@ -289,13 +289,6 @@ let sectionOption={
|
|
|
data: [],
|
|
|
color:'#8A2BE2'
|
|
|
},
|
|
|
- // {
|
|
|
- // name: '',
|
|
|
- // type: 'line',
|
|
|
- // // smooth: true,
|
|
|
- // data: [],
|
|
|
- // color:'rgba(0,0,0,0)'
|
|
|
- // }
|
|
|
]
|
|
|
}
|
|
|
|
|
@@ -434,7 +427,17 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+ dateValue: {
|
|
|
+ handler(newName, oldName) {
|
|
|
+ this.sectionHttp({
|
|
|
+ type:this.type,
|
|
|
+ startDate:this.dateValue[0].format('YYYY-MM-DD'),
|
|
|
+ endDate:this.dateValue[1].format('YYYY-MM-DD')
|
|
|
+ })
|
|
|
+ },
|
|
|
+ immediate: true,
|
|
|
+ deep: true
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
//获取echart的值
|
|
@@ -543,8 +546,8 @@ export default {
|
|
|
this.sectionOption.series[0].name=this.tabCost.today.name;
|
|
|
this.sectionOption.series[1].data=this.tabCost.yesterday.y;
|
|
|
this.sectionOption.series[1].name=this.tabCost.yesterday.name;
|
|
|
- this.sectionOption.series[2].data=this.tabCost.huanbi.y;
|
|
|
- this.sectionOption.series[2].name=this.tabCost.huanbi.name;
|
|
|
+ // this.sectionOption.series[2].data=this.tabCost.huanbi.y;
|
|
|
+ // this.sectionOption.series[2].name=this.tabCost.huanbi.name;
|
|
|
|
|
|
|
|
|
}else if(res.result.chart[0].afterData&& res.result.chart[0].afterData.statDate==moment().subtract(1,'days').format('YYYY-MM-DD')){
|