mirror of
https://github.com/PlayEdu/backend
synced 2025-06-08 23:34:08 +08:00
部门同步ldap后不显示新建部门按钮
This commit is contained in:
parent
3b3be12cac
commit
54b47dc105
@ -413,16 +413,6 @@ const DepartmentPage = () => {
|
|||||||
<div className="playedu-main-top mb-24">
|
<div className="playedu-main-top mb-24">
|
||||||
{contextHolder}
|
{contextHolder}
|
||||||
<div className="d-flex">
|
<div className="d-flex">
|
||||||
<PerButton
|
|
||||||
type="primary"
|
|
||||||
text="新建部门"
|
|
||||||
class="mr-16"
|
|
||||||
icon={<PlusOutlined />}
|
|
||||||
p="department-cud"
|
|
||||||
onClick={() => setCreateVisible(true)}
|
|
||||||
disabled={null}
|
|
||||||
/>
|
|
||||||
|
|
||||||
{ldapEnabled ? (
|
{ldapEnabled ? (
|
||||||
<PerButton
|
<PerButton
|
||||||
type="primary"
|
type="primary"
|
||||||
@ -433,7 +423,17 @@ const DepartmentPage = () => {
|
|||||||
onClick={() => ldapSync()}
|
onClick={() => ldapSync()}
|
||||||
disabled={null}
|
disabled={null}
|
||||||
/>
|
/>
|
||||||
) : null}
|
) : (
|
||||||
|
<PerButton
|
||||||
|
type="primary"
|
||||||
|
text="新建部门"
|
||||||
|
class="mr-16"
|
||||||
|
icon={<PlusOutlined />}
|
||||||
|
p="department-cud"
|
||||||
|
onClick={() => setCreateVisible(true)}
|
||||||
|
disabled={null}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user