|  |  | @ -54,7 +54,25 @@ const UserManage = (props) => { | 
			
		
	
		
			
				
					|  |  |  |                 dataIndex: 'action', | 
			
		
	
		
			
				
					|  |  |  |                 render: (dom, record) => { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |                     return record.username == 'SuperAdmin' ? '' : [ | 
			
		
	
		
			
				
					|  |  |  |                     // return record.username == 'SuperAdmin' ? '' : [
 | 
			
		
	
		
			
				
					|  |  |  |                     //     <Button type="link" onClick={() => { openModal('edit', record) }}>编辑</Button>,
 | 
			
		
	
		
			
				
					|  |  |  |                     //     <Popconfirm
 | 
			
		
	
		
			
				
					|  |  |  |                     //         title="确认删除?"
 | 
			
		
	
		
			
				
					|  |  |  |                     //         onConfirm={() => {
 | 
			
		
	
		
			
				
					|  |  |  |                     //             delUsers([record.id])
 | 
			
		
	
		
			
				
					|  |  |  |                     //         }}
 | 
			
		
	
		
			
				
					|  |  |  |                     //     >
 | 
			
		
	
		
			
				
					|  |  |  |                     //         <Button type="link">删除</Button>
 | 
			
		
	
		
			
				
					|  |  |  |                     //     </Popconfirm>,
 | 
			
		
	
		
			
				
					|  |  |  |                     //     <Button
 | 
			
		
	
		
			
				
					|  |  |  |                     //         type="link"
 | 
			
		
	
		
			
				
					|  |  |  |                     //         onClick={() => {
 | 
			
		
	
		
			
				
					|  |  |  |                     //             setModalRecord(record);
 | 
			
		
	
		
			
				
					|  |  |  |                     //             setPwdModalVisible(true);
 | 
			
		
	
		
			
				
					|  |  |  |                     //         }}
 | 
			
		
	
		
			
				
					|  |  |  |                     //     >重置密码</Button>
 | 
			
		
	
		
			
				
					|  |  |  |                     // ]
 | 
			
		
	
		
			
				
					|  |  |  |                     return [ | 
			
		
	
		
			
				
					|  |  |  |                         <Button type="link" onClick={() => { openModal('edit', record) }}>编辑</Button>, | 
			
		
	
		
			
				
					|  |  |  |                         <Popconfirm | 
			
		
	
		
			
				
					|  |  |  |                             title="确认删除?" | 
			
		
	
	
		
			
				
					|  |  | @ -131,7 +149,14 @@ const UserManage = (props) => { | 
			
		
	
		
			
				
					|  |  |  |         <Spin spinning={loading} /* style={{ height: "calc(100vh - 70px)" }} */> | 
			
		
	
		
			
				
					|  |  |  |             <Row gutter={16} /* style={{ overflow: "scroll" }} */> | 
			
		
	
		
			
				
					|  |  |  |                 <Col flex="260px" style={{ height: '100%' }}> | 
			
		
	
		
			
				
					|  |  |  |                     <Card title="部门" bordered={false} bodyStyle={{ padding: 8, paddingTop: 24, }}> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |                     <Card bordered={false} bodyStyle={{ padding: 8, paddingTop: 24, }}> | 
			
		
	
		
			
				
					|  |  |  |                         <Button | 
			
		
	
		
			
				
					|  |  |  |                             type="primary" | 
			
		
	
		
			
				
					|  |  |  |                             key="primary" | 
			
		
	
		
			
				
					|  |  |  |                             style={{ marginLeft: 50 }} | 
			
		
	
		
			
				
					|  |  |  |                             onClick={() => openModal('create')} | 
			
		
	
		
			
				
					|  |  |  |                         >新建部门</Button> | 
			
		
	
		
			
				
					|  |  |  |                         { | 
			
		
	
		
			
				
					|  |  |  |                             depMessage.length ? | 
			
		
	
		
			
				
					|  |  |  |                                 <Tree | 
			
		
	
	
		
			
				
					|  |  | @ -150,13 +175,14 @@ const UserManage = (props) => { | 
			
		
	
		
			
				
					|  |  |  |                                         key: 'id', | 
			
		
	
		
			
				
					|  |  |  |                                         children: 'subordinate' | 
			
		
	
		
			
				
					|  |  |  |                                     }} | 
			
		
	
		
			
				
					|  |  |  |                                     style={{ paddingTop: 20 }} | 
			
		
	
		
			
				
					|  |  |  |                                 /> : '' | 
			
		
	
		
			
				
					|  |  |  |                         } | 
			
		
	
		
			
				
					|  |  |  |                     </Card> | 
			
		
	
		
			
				
					|  |  |  |                 </Col> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |                 <Col /* flex="auto" */ style={{ width: "calc(100% - 260px)", height: '100%', display: "black" }}> | 
			
		
	
		
			
				
					|  |  |  |                     <Card title="用户" bordered={false} height={clientHeight} bodyStyle={{ padding: 8, paddingTop: 24, overflow: "hidden", width: "100%" }}> | 
			
		
	
		
			
				
					|  |  |  |                     <Card bordered={false} height={clientHeight} bodyStyle={{ padding: 8, paddingTop: 24, overflow: "hidden", width: "100%" }}> | 
			
		
	
		
			
				
					|  |  |  |                         <ProTable | 
			
		
	
		
			
				
					|  |  |  |                             columns={columns} | 
			
		
	
		
			
				
					|  |  |  |                             dataSource={depUser} | 
			
		
	
	
		
			
				
					|  |  | @ -184,7 +210,7 @@ const UserManage = (props) => { | 
			
		
	
		
			
				
					|  |  |  |                                         style={{ marginRight: 10 }} | 
			
		
	
		
			
				
					|  |  |  |                                         onClick={() => openModal('create')} | 
			
		
	
		
			
				
					|  |  |  |                                     >新建用户</Button> | 
			
		
	
		
			
				
					|  |  |  |                                     <Button style={{ marginRight: 10 }} onClick={() => { dispatch(getDepUser(depSelectedKeys[0])); }}>刷新</Button> | 
			
		
	
		
			
				
					|  |  |  |                                     {/* <Button style={{ marginRight: 10 }} onClick={() => { dispatch(getDepUser(depSelectedKeys[0])); }}>刷新</Button> */} | 
			
		
	
		
			
				
					|  |  |  |                                     <Popconfirm title="确认删除?" onConfirm={() => { delUsers(rowSelected, 'batch') }}> | 
			
		
	
		
			
				
					|  |  |  |                                         <Button>批量删除</Button> | 
			
		
	
		
			
				
					|  |  |  |                                     </Popconfirm> | 
			
		
	
	
		
			
				
					|  |  | 
 |