소스 검색

[Fix 0000] 修复了设备监测-历史数据出现两个以上历史表格的错误

houzekong 4 주 전
부모
커밋
9106c97809
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/views/vent/monitorManager/deviceMonitor/components/device/index.vue

+ 2 - 2
src/views/vent/monitorManager/deviceMonitor/components/device/index.vue

@@ -474,11 +474,11 @@
                           <template v-if="deviceType.startsWith('firemon_normal')">
                               <HistoryBall :dataSource="dataSource"></HistoryBall>
                           </template>
-                          <template v-if="deviceType.startsWith('fanmain')">
+                          <template v-else-if="deviceType.startsWith('fanmain')">
                               <HistoryTableNew class="w-100% h-100%" :device-code="`${deviceType}`" :scroll="scroll"
                                   dict-code="fan_dict" />
                           </template>
-                          <template v-if="deviceType.startsWith('fanlocal')">
+                          <template v-else-if="deviceType.startsWith('fanlocal')">
                               <HistoryTableNew class="w-100% h-100%" :device-code="`${deviceType}`" :scroll="scroll"
                                   dict-code="fanlocal_dict" />
                           </template>