| | |
| | | // }, |
| | | startValue: 0, |
| | | endValue: 5, |
| | | chartTimer:null, |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | //在职 |
| | | pieChart(chartName, data) { |
| | | let that = this; |
| | | clearInterval(this.chartTimer); |
| | | let chartDomTwo = this.$refs[chartName]; |
| | | let myChartTwo = echarts.init(chartDomTwo) |
| | | myChartTwo.dispose() |
| | |
| | | ], |
| | | }; |
| | | |
| | | 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; |
| | |
| | | }, |
| | | mounted() { |
| | | this.getDashboard(); |
| | | setInterval(() => { |
| | | this.getDashboard(); |
| | | }, 30000); |
| | | // setInterval(() => { |
| | | // this.getDashboard(); |
| | | // }, 30000); |
| | | }, |
| | | watch: {}, |
| | | methods: { |
| | |
| | | this.setLeftBlock5(res.data); |
| | | // 设备负荷对比 |
| | | this.setRightBlock1(res.data); |
| | | }).finally(()=>{ |
| | | setTimeout(()=>{ |
| | | this.getDashboard() |
| | | },30000) |
| | | }); |
| | | }, |
| | | // 处理左上数据 |