|
|
@ -12,13 +12,13 @@ const TreeNode = Tree.TreeNode; |
|
|
|
|
|
|
|
const UserManage = (props) => { |
|
|
|
const user = JSON.parse(sessionStorage.getItem('user')); |
|
|
|
|
|
|
|
const { dispatch, loading, depMessage, depUser, clientHeight } = props; |
|
|
|
const [tableList, settableList] = useState([]) |
|
|
|
const { dispatch, loading, depMessage, depUser, clientHeight,actions } = props; |
|
|
|
// 部门
|
|
|
|
const [deptModalVisible, setDeptModalVisible] = useState(false); |
|
|
|
const [deptModalType, setDeptModalType] = useState(); |
|
|
|
const [deptModalRecord, setDeptModalRecord] = useState(); |
|
|
|
|
|
|
|
const { projectRegime } = actions |
|
|
|
// 成员
|
|
|
|
const [modalVisible, setModalVisible] = useState(false); |
|
|
|
const [modalType, setModalType] = useState(); |
|
|
@ -29,8 +29,20 @@ const UserManage = (props) => { |
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
dispatch(getDepMessage()) |
|
|
|
projectList() |
|
|
|
}, []) |
|
|
|
|
|
|
|
const projectList = (obj) => { |
|
|
|
|
|
|
|
dispatch(projectRegime.getProjectList()).then(res => { |
|
|
|
// console.log(res)
|
|
|
|
if (res.success) { |
|
|
|
settableList(res.payload.data?.rows) |
|
|
|
// setLimits(res.payload.data?.count)
|
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
if (depMessage.length) { |
|
|
|
setDepSelectedKeys([depMessage[0].id]) |
|
|
@ -197,7 +209,7 @@ const UserManage = (props) => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
} |
|
|
|
|
|
|
|
console.log(tableList,'tableList') |
|
|
|
return (<div > |
|
|
|
<Spin spinning={loading} /* style={{ height: "calc(100vh - 70px)" }} */> |
|
|
|
<Row gutter={16} /* style={{ overflow: "scroll" }} */> |
|
|
@ -304,6 +316,7 @@ const UserManage = (props) => { |
|
|
|
modalType={modalType} |
|
|
|
onConfirm={onConfirm} |
|
|
|
editData={modalRecord} |
|
|
|
tableList={tableList} |
|
|
|
/> |
|
|
|
: '' |
|
|
|
} |
|
|
@ -325,7 +338,8 @@ function mapStateToProps(state) { |
|
|
|
clientHeight: global.clientHeight, |
|
|
|
loading: depMessage.isRequesting, |
|
|
|
depMessage: depMessage.data || [], |
|
|
|
depUser: depUser.data || [] |
|
|
|
depUser: depUser.data || [], |
|
|
|
actions: global.actions |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|