|
@@ -771,8 +771,31 @@ export default {
|
|
|
countyId: this.$store.state.addr.selectDistrict.areaId,
|
|
|
townId: this.$store.state.addr.selectStreet.areaId
|
|
|
};
|
|
|
+
|
|
|
page6echarts02(param).then(res=>{
|
|
|
console.log('page6echarts02 res', res);
|
|
|
+ const rows = res.data;
|
|
|
+ // console.log(rows)
|
|
|
+ // x坐标
|
|
|
+ this.page6Char2.xAxis.data = [];
|
|
|
+ this.page6Char2.series[0].data = [];
|
|
|
+ this.page6Char2.series[1].data = [];
|
|
|
+ this.page6Char2.series[2].data = [];
|
|
|
+ this.page6Char2.xAxis.data = rows.map((item) => {
|
|
|
+ return item.month;
|
|
|
+ });
|
|
|
+
|
|
|
+ rows.forEach(element => {
|
|
|
+ console.log('element',element.eventList);
|
|
|
+ this.page6Char2.series[0].data.push(element.eventList[0].value);
|
|
|
+ this.page6Char2.series[1].data.push(element.eventList[1].value);
|
|
|
+ this.page6Char2.series[2].data.push(element.eventList[2].value);
|
|
|
+ });
|
|
|
+
|
|
|
+ console.log('this.page6Char2.series',this.page6Char2.series);
|
|
|
+
|
|
|
+ let charUuid = this.$refs.page6Char2.mid;
|
|
|
+ this.$refs.page6Char2.intChar(charUuid);
|
|
|
|
|
|
}).catch((err) => {
|
|
|
console.log('page6echarts02 err', err);
|