修改专题库错误
This commit is contained in:
parent
8f35c472b9
commit
5007d6a6e5
|
@ -176,12 +176,6 @@
|
||||||
this.calculateScrollY();
|
this.calculateScrollY();
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
calculateScrollY() {
|
|
||||||
// 获取父容器高度(需减去表格内其他元素的高度,如分页栏)
|
|
||||||
const container = this.$refs.tableContainer;
|
|
||||||
const paginationHeight = 64; // 根据实际分页栏高度调整
|
|
||||||
this.tableScrollY = container.clientHeight - paginationHeight;
|
|
||||||
},
|
|
||||||
getRowKey(record) {
|
getRowKey(record) {
|
||||||
return `${record.schemaName}_${record.tableName}`
|
return `${record.schemaName}_${record.tableName}`
|
||||||
},
|
},
|
||||||
|
@ -218,6 +212,12 @@
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
calculateScrollY() {
|
||||||
|
// 获取父容器高度(需减去表格内其他元素的高度,如分页栏)
|
||||||
|
const container = this.$refs.tableContainer;
|
||||||
|
const paginationHeight = 64; // 根据实际分页栏高度调整
|
||||||
|
this.tableScrollY = container.clientHeight - paginationHeight;
|
||||||
|
},
|
||||||
handleSelectChange(selectedRowKeys,row) {
|
handleSelectChange(selectedRowKeys,row) {
|
||||||
this.selectedRowKeys = selectedRowKeys
|
this.selectedRowKeys = selectedRowKeys
|
||||||
this.selectedRowData = row
|
this.selectedRowData = row
|
||||||
|
|
Loading…
Reference in New Issue
Block a user