|
|
@ -27,7 +27,7 @@ |
|
|
|
echartsData: { |
|
|
|
handler(newValue, oldValue) { |
|
|
|
if(JSON.stringify(newValue) != JSON.stringify(oldValue)){ |
|
|
|
this.lineMarkAreaChart && this.lineMarkAreaChart.setOption && this.lineMarkAreaChart.setOption(newValue); |
|
|
|
this.lineMarkChart && this.lineMarkChart.setOption && this.lineMarkChart.setOption(newValue); |
|
|
|
} |
|
|
|
}, |
|
|
|
deep: true |
|
|
@ -35,9 +35,9 @@ |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
// 拆线水平填充图 |
|
|
|
var lineMarkArea = document.getElementById(this.lineMarkId); |
|
|
|
this.lineMarkAreaChart = new window.echarts.lineMarkArea(lineMarkArea); |
|
|
|
this.lineMarkAreaChart.setOption(this.echartsData || {}); |
|
|
|
var lineMark = document.getElementById(this.lineMarkId); |
|
|
|
this.lineMarkChart = new window.echarts.lineMark(lineMark); |
|
|
|
this.lineMarkChart.setOption(this.echartsData || {}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|