|
@@ -189,6 +189,8 @@ const Organization: React.FC<OrganizationProps> = ({ dataID, structureType }) =>
|
|
|
}
|
|
|
]
|
|
|
|
|
|
+ const wrapHeight = document.querySelector('.ant-pro-page-container-warp')?.clientHeight || 0
|
|
|
+
|
|
|
return (
|
|
|
<div>
|
|
|
<ProTable<API.OrganizationalStructureListItem>
|
|
@@ -196,8 +198,7 @@ const Organization: React.FC<OrganizationProps> = ({ dataID, structureType }) =>
|
|
|
actionRef={tRef}
|
|
|
columns={columns}
|
|
|
dataSource={state.organizationList}
|
|
|
- // defaultExpandAllRows={true}
|
|
|
- scroll={{ y: document.body.clientHeight - 371 }}
|
|
|
+ scroll={{ y: document.body.clientHeight - (263 + wrapHeight) }}
|
|
|
expandable={{
|
|
|
expandedRowKeys: state.expandTreeIds,
|
|
|
onExpand: (expanded, record) => {
|
|
@@ -213,7 +214,6 @@ const Organization: React.FC<OrganizationProps> = ({ dataID, structureType }) =>
|
|
|
}
|
|
|
}
|
|
|
}}
|
|
|
- // expandedRowRender={expandedRowRender}
|
|
|
indentSize={30}
|
|
|
search={false}
|
|
|
pagination={false}
|