|
|
@ -25,7 +25,7 @@ const UserManage = (props) => { |
|
|
|
const [depModalRecord, setDepModalRecord] = useState(); |
|
|
|
const [selectedTree, setSelectedTree] = useState(); |
|
|
|
const [depCrumbs, setDepCrumbs] = useState([]); |
|
|
|
const [depUserCopy, setDepUserCopy] = useState([])//用于存放除了自己的管理的数组,即自己不能调整自己是否为管理员
|
|
|
|
const [depUserCopy, setDepUserCopy] = useState([]) |
|
|
|
const [uid, setuid] = useState() |
|
|
|
const [editAble, setEditAble] = useState(user?.username !== 'SuperAdmin' && user?.userResources?.find(i => i.resourceId === 'USERMANAGE')?.isshow === "true" ? true : '')//控制操作(新增删除等操作,对应权限的'不可编辑')是否可操作
|
|
|
|
const [depMessagedata, setdepMessagedata] = useState(depMessage) |
|
|
@ -274,9 +274,9 @@ const UserManage = (props) => { |
|
|
|
setDepModalVisible(true) |
|
|
|
setDepModalType('edit') |
|
|
|
}} /> |
|
|
|
<Popconfirm title='是否确认删除?' onConfirm={() => { delDepartment(id) }}> |
|
|
|
{user?.username === 'SuperAdmin' ? <Popconfirm title='是否确认删除?' onConfirm={() => { delDepartment(id) }} > |
|
|
|
<DeleteOutlined style={{ marginLeft: 5 }} /> |
|
|
|
</Popconfirm> |
|
|
|
</Popconfirm> : ''} |
|
|
|
</> : null |
|
|
|
} |
|
|
|
</div> |
|
|
|