Browse Source

1.设备历史优化

hongrunxia 4 months ago
parent
commit
24efdae863
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/vent/comment/history/HistoryTable.vue

+ 2 - 2
src/views/vent/comment/history/HistoryTable.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="history-table">
-    <BasicTable ref="historyTable" @register="register" :data-source="data" :scroll="scroll">
+    <BasicTable ref="historyTable" @register="register" :data-source="data" :scroll="scroll" @change="search">
       <template #bodyCell="{ column, record }">
         <a-tag v-if="column.dataIndex === 'warnFlag'" :color="record.warnFlag == '0' ? 'green' : 'red'">
           {{ record.warnFlag == '0' ? '正常' : '报警' }}
@@ -75,7 +75,7 @@
       /** 字段编码,该编码用于从设备字段配置中读取默认表头信息,示例:forcFan_history */
       columnsCode: string;
 
-      scroll?: { x: number | boolean; y: number | boolean };
+      scroll: { x: number | true; y: number };
       /** 表格配置,参考BaiscTable,该值会与默认的配置进行浅合并,这里提供的任何配置都是优先的 */
       // tableProps?: BasicTableProps;
       /** 查询表单配置,参考BaiscTable */