src/views/cockpitPage/components/DeviceChart.vue
@@ -46,6 +46,7 @@ // }, startValue: 0, endValue: 5, chartTimer:null, }; }, watch: { @@ -64,6 +65,7 @@ //在职 pieChart(chartName, data) { let that = this; clearInterval(this.chartTimer); let chartDomTwo = this.$refs[chartName]; let myChartTwo = echarts.init(chartDomTwo) myChartTwo.dispose() @@ -205,7 +207,7 @@ ], }; setInterval(function () { this.chartTimer=setInterval(function () { if (option.dataZoom[0].endValue == data.datay.length) { option.dataZoom[0].startValue = that.startValue; option.dataZoom[0].endValue = that.endValue;