分部,部门,岗位台账页面滚动样式处理,固定表头和分页

This commit is contained in:
Chengliang 2025-03-27 16:29:39 +08:00
parent a5cfeb9f08
commit 51937a5ba8
3 changed files with 18 additions and 14 deletions

View File

@ -592,6 +592,7 @@ export default class Company extends React.Component {
</div> :
<WeaTable rowKey={record => record.id} ecId={`${this && this.props && this.props.ecId || ''}_WeaTable@pgmg3x`}
loading={loading}
scroll={{ y: 'calc(100vh - 300px)' }}
dataSource={dataSource} childrenColumnName="children"
columns={this.reRenderColumns(columns)}
rowSelection={rowSelection}

View File

@ -704,20 +704,22 @@ export default class Department extends React.Component {
init ? <div className='hrm-new-weatable-spin'>
<Spin ecId={`${this && this.props && this.props.ecId || ''}_Spin@4ygl4a`} spinning={init}></Spin>
</div> :
<WeaTable rowKey={record => record.id} ecId={`${this && this.props && this.props.ecId || ''}_WeaTable@pgmg3x`}
loading={loading}
dataSource={dataSource} childrenColumnName="children"
columns={this.reRenderColumns(columns)}
rowSelection={rowSelection}
pagination={pagination}
onChange={(pagination, filters, sorter) => {
department.setSortParams(sorter);
department.setCurrent(pagination.current);
department.setPageSize(pagination.pageSize);
department.getTableInfo();
}}
indentSize={15}
/>
<WeaTable rowKey={record => record.id} ecId={`${this && this.props && this.props.ecId || ''}_WeaTable@pgmg3x`}
loading={loading}
dataSource={dataSource} childrenColumnName="children"
columns={this.reRenderColumns(columns)}
scroll={{ y: 'calc(100vh - 300px)' }}
rowSelection={rowSelection}
pagination={pagination}
onChange={(pagination, filters, sorter) => {
department.setSortParams(sorter);
department.setCurrent(pagination.current);
department.setPageSize(pagination.pageSize);
department.getTableInfo();
}}
indentSize={15}
/>
}
</WeaLeftRightLayout>
</WeaTop>

View File

@ -672,6 +672,7 @@ export default class Job extends React.Component {
columns={this.reRenderColumns(columns)}
rowSelection={rowSelection}
pagination={pagination}
scroll={{ y: 'calc(100vh - 300px)' }}
onChange={(pagination, filters, sorter) => {
job.setSortParams(sorter);
job.setCurrent(pagination.current);