[update] 修改bug79421

This commit is contained in:
lideqin
2024-01-26 15:31:39 +08:00
parent 7aee5c2c56
commit 403e60fb94
+13 -2
View File
@@ -41,8 +41,8 @@
:can-drag="true"
:rowKey="record => {return record.id + ',' + (record.taskId || '')}"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:pagination="false"
:scroll="{x: '100%'}"
:pagination="ipagination"
:scroll="{x: '100%', y: yScrollHeight}"
@change="handleTableChange">
<!-- 耗时 -->
@@ -148,6 +148,17 @@ export default {
default: false
}
},
computed: {
yScrollHeight () {
/**
* 前几个使用变量是为了配合iframe嵌套,算出页面显示范围的高度
* 48px:分页器的高度
* 48pxa-card的padding(上24+下24
* 54px:表头行的高度
*/
return `calc(100vh - ${this.defaultHeight['user-info-height']} - ${this.defaultHeight['breadcrumb-height']} - ${this.defaultHeight.oneLineSearchHeight} - ${this.defaultHeight.oneLineOperationHeight} - 48px - 48px - 54px - 56px)`
}
},
data () {
return {
columns: [