@@ -556,7 +556,6 @@ export default {
series () {
let result = [];
this.data.forEach((element, index) => {
- console.log(index, element)
result.push({
name: element.title,
type: "scatter",
@@ -84,12 +84,13 @@ export default {
month: (that.recorddate ? (new Date(that.recorddate).getMonth() + 1) : ""),
},
success (res) {
- let ChartData = [{
+ let chartData = [{
title: "风资源分析",
value: (res.data || [])
}];
- that.ChartData = ChartData;
- console.log(123123, ChartData);
+ that.$nextTick(()=>{
+ that.chartData = chartData;
+ });
}
});