mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-28 03:09:24 +08:00
服务管理布局
This commit is contained in:
@@ -93,8 +93,11 @@ export default {
|
||||
},
|
||||
mounted() {},
|
||||
beforeUnmount() {
|
||||
this.faultChart = null
|
||||
window.removeEventListener('resize', this.handleResize)
|
||||
if (this.faultChart) {
|
||||
this.faultChart.dispose()
|
||||
this.faultChart = null
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
@@ -130,6 +133,9 @@ export default {
|
||||
|
||||
drawLineChart(activeKey) {
|
||||
this.getChargeData(activeKey)
|
||||
if(this.faultChart){
|
||||
this.faultChart.dispose()
|
||||
}
|
||||
const chartDom = document.getElementById('alarm-chart')
|
||||
let faultChart = this.$echarts.init(chartDom)
|
||||
this.faultChart = faultChart
|
||||
|
||||
@@ -154,7 +154,6 @@ export default {
|
||||
},
|
||||
|
||||
drawLineChart(activeKey) {
|
||||
console.log(this.$refs.charge)
|
||||
// const labelCount = Math.floor(500 / 30);
|
||||
this.getChargeData(activeKey)
|
||||
if(this.chargeChart){
|
||||
|
||||
Reference in New Issue
Block a user