| | |
| | | } |
| | | |
| | | useEffect(() => { |
| | | const handleResize = () => setBoxHeight(window.innerHeight - 420); |
| | | const handleResize = () => setBoxHeight(window.innerHeight - 320); |
| | | window.addEventListener('resize', handleResize); |
| | | handleResize(); |
| | | |
| | |
| | | > |
| | | <Row gutter={[16, 24]}> |
| | | <Col lg={6} md={24}> |
| | | <Card title="部门" style={{ width: '100%', height: 'calc(100vh - 252px)' }}> |
| | | <Card title="部门" style={{ width: '100%', height: 'calc(100vh - 160px)' }}> |
| | | <Input |
| | | style={{ marginBottom: 10 }} |
| | | placeholder="请输入" |
| | |
| | | }) |
| | | }} |
| | | /> |
| | | <div style={{ height: 'calc(100vh - 402px)', overflowY: 'auto' }}> |
| | | <div style={{ height: 'calc(100vh - 325px)', overflowY: 'auto' }}> |
| | | {deptTreeLoading ? ( |
| | | <Skeleton active /> |
| | | ) : ( |
| | |
| | | formRef={formTableRef} |
| | | columns={columns} |
| | | cardBordered |
| | | size='small' |
| | | scroll={{ y: boxHeight }} |
| | | dateFormatter="string" |
| | | pagination={{ pageSize: 20 }} |