فهرست منبع

[Feat 0000] 场景类历史数据组件问题修复

houzekong 4 ماه پیش
والد
کامیت
999a2e95f9
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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 */