| | |
| | | }, |
| | | watch: { |
| | | "chartData.datay"(val) { |
| | | console.log(val, "ddddddddddddddd"); |
| | | console.log(val, "设备变更数据"); |
| | | this.ydata = val; |
| | | this.startValue = 0; |
| | | this.endValue = 5; |
| | |
| | | //在职 |
| | | pieChart(chartName, data) { |
| | | let that = this; |
| | | let chartDomTwo = this.$refs[chartName]; |
| | | let myChartTwo = echarts.init(chartDomTwo) |
| | | myChartTwo.dispose() |
| | | let chartDom = this.$refs[chartName]; |
| | | if (myChart != null && myChart != "" && myChart != undefined) { |
| | | console.log("222222222"); |
| | | myChart.dispose(); //销毁 |
| | | myChart.resize(); |
| | | } |
| | | console.log(myChart, "ssssssss"); |
| | | myChart = echarts.init(chartDom); |
| | | // if (myChart != null && myChart != "" && myChart != undefined) { |
| | | // console.log("222222222"); |
| | | // myChart.dispose(); //销毁 |
| | | // myChart.resize(); |
| | | // } |
| | | // console.log(myChart, "ssssssss"); |
| | | let option; |
| | | let lineColor = "#35ddc74d"; |
| | | if (this.ydata) { |