From 403e60fb94043dd24d371375fdf094fc81877f17 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Fri, 26 Jan 2024 15:31:39 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9bug79421?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ProcessDetailList.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/components/ProcessDetailList.vue b/src/components/ProcessDetailList.vue index 598bc958..bbc9991b 100644 --- a/src/components/ProcessDetailList.vue +++ b/src/components/ProcessDetailList.vue @@ -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:分页器的高度 + * 48px:a-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: [