diff --git a/src/views/data/dataCataloguing.vue b/src/views/data/dataCataloguing.vue index 9577064..fcf603b 100644 --- a/src/views/data/dataCataloguing.vue +++ b/src/views/data/dataCataloguing.vue @@ -36,7 +36,7 @@ bordered rowKey="id" :pagination="false" - :scroll="{ y: dynamicHeight }" + :scroll="{ y: tableScrollY }" :columns="tagcolumns" :dataSource="dataRefsSources"> @@ -67,7 +67,7 @@ -
+
@@ -166,6 +166,7 @@ tagselectedRowKeys: [], selectedRowData: [], tagselectedRowData: [], + tableScrollY:0, } }, mounted() { @@ -175,12 +176,6 @@ getRowKey(record) { return `${record.schemaName}_${record.tableName}` }, - dynamicHeight() { - const totalOffset = this.headerHeight + this.footerHeight; - return { - height: `calc(100vh - 324px)` - } - }, rowSelection() { return { selectedRowKeys: this.selectedRowKeys, @@ -214,6 +209,12 @@ }, methods: { + updateScrollY() { + const container = this.$refs.tableWrapper; + const paginationHeight = 64; // 分页栏高度 + const tableHeaderHeight = 55; // 表头高度 + this.tableScrollY = container.clientHeight - paginationHeight - tableHeaderHeight; + }, handleSelectChange(selectedRowKeys,row) { this.selectedRowKeys = selectedRowKeys this.selectedRowData = row