| | |
| | | :switchInfo="switchInfo" |
| | | :chartclose="chartclose1" |
| | | @show="chartclose1 = true" |
| | | @refresh="getSwitchInfoStatic" |
| | | :key="componentKey" |
| | | ></itm> |
| | | <itm-left |
| | | v-if="areas && !chartclose2" |
| | |
| | | chartclose2: false, |
| | | switchDeviceStatus: {}, |
| | | switchInfo:{}, |
| | | componentKey:0, |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | getSwitchInfoStatic().then(res => { |
| | | this.switchInfo = res |
| | | }) |
| | | // this.getSwitchInfoStatic() |
| | | }, |
| | | |
| | | getSwitchInfoStatic(){ |
| | | getSwitchInfoStatic().then(res => { |
| | | this.switchInfo = res |
| | | }) |
| | | this.componentKey+=1 |
| | | }, |
| | | |
| | | handleWheel(event) { |
| | | event.preventDefault(); |
| | | const delta = event.deltaY < 0 ? 0.05 : -0.05; |