| | |
| | | } |
| | | |
| | | useEffect(() => { |
| | | const handleResize = () => setBoxHeight(window.innerHeight - 368); |
| | | const handleResize = () => setBoxHeight(window.innerHeight - 420); |
| | | window.addEventListener('resize', handleResize); |
| | | handleResize(); |
| | | |
| | |
| | | > |
| | | <Row gutter={[16, 24]}> |
| | | <Col lg={6} md={24}> |
| | | <Card title="部门" style={{ width: '100%', height: 'calc(100vh - 200px)' }}> |
| | | <Card title="部门" style={{ width: '100%', height: 'calc(100vh - 252px)' }}> |
| | | <Input |
| | | style={{ marginBottom: 10 }} |
| | | placeholder="请输入" |
| | |
| | | }) |
| | | }} |
| | | /> |
| | | <div style={{ height: 'calc(100vh - 350px)', overflowY: 'auto' }}> |
| | | <div style={{ height: 'calc(100vh - 402px)', overflowY: 'auto' }}> |
| | | {deptTreeLoading ? ( |
| | | <Skeleton active /> |
| | | ) : ( |