Browse Source

feat:新建部门按钮隐藏

dev
zhaobing 2 years ago
parent
commit
899b4ed435
  1. 4
      web/client/src/sections/organization/containers/user.js

4
web/client/src/sections/organization/containers/user.js

@ -269,11 +269,11 @@ const UserManage = (props) => {
<div style={{ width: '30%' }} > <div style={{ width: '30%' }} >
{ {
selectedTree == id ? <> selectedTree == id ? <>
<FormOutlined onClick={() => { {user?.username === 'SuperAdmin' ? <FormOutlined onClick={() => {
setDepModalRecord(item) setDepModalRecord(item)
setDepModalVisible(true) setDepModalVisible(true)
setDepModalType('edit') setDepModalType('edit')
}} /> }} /> : null}
{user?.username === 'SuperAdmin' ? <Popconfirm title='是否确认删除?' onConfirm={() => { delDepartment(id) }} > {user?.username === 'SuperAdmin' ? <Popconfirm title='是否确认删除?' onConfirm={() => { delDepartment(id) }} >
<DeleteOutlined style={{ marginLeft: 5 }} /> <DeleteOutlined style={{ marginLeft: 5 }} />
</Popconfirm> : ''} </Popconfirm> : ''}

Loading…
Cancel
Save