陶杰
2024-11-19 f7ac77c7cc193502aff7e2a70f636253ada12386
src/views/screen1/main-container.vue
@@ -19,6 +19,8 @@
          :switchInfo="switchInfo"
          :chartclose="chartclose1"
          @show="chartclose1 = true"
          @refresh="getSwitchInfoStatic"
          :key="componentKey"
      ></itm>
      <itm-left
          v-if="areas && !chartclose2"
@@ -67,6 +69,7 @@
      chartclose2: false,
      switchDeviceStatus: {},
      switchInfo:{},
      componentKey:0,
    };
  },
  created() {
@@ -96,7 +99,16 @@
      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;