mirror of
https://github.com/PlayEdu/backend
synced 2025-06-10 20:46:24 +08:00
部门默认展开
This commit is contained in:
parent
7bc01276b5
commit
72a91d642a
@ -486,6 +486,7 @@ export const CourseCreate: React.FC<PropInterface> = ({
|
||||
treeData={departments}
|
||||
multiple
|
||||
allowClear
|
||||
treeDefaultExpandAll
|
||||
placeholder="请选择部门"
|
||||
/>
|
||||
</Form.Item>
|
||||
|
@ -242,6 +242,7 @@ export const CourseUpdate: React.FC<PropInterface> = ({
|
||||
treeData={departments}
|
||||
multiple
|
||||
allowClear
|
||||
treeDefaultExpandAll
|
||||
placeholder="请选择部门"
|
||||
/>
|
||||
</Form.Item>
|
||||
|
@ -364,15 +364,18 @@ const DepartmentPage = () => {
|
||||
</div>
|
||||
<div className="playedu-main-body">
|
||||
<div style={{ width: 366 }}>
|
||||
<Tree
|
||||
onSelect={onSelect}
|
||||
treeData={treeData}
|
||||
draggable
|
||||
blockNode
|
||||
onDragEnter={onDragEnter}
|
||||
onDrop={onDrop}
|
||||
switcherIcon={<i className="iconfont icon-icon-fold c-gray" />}
|
||||
/>
|
||||
{treeData.length > 0 && (
|
||||
<Tree
|
||||
onSelect={onSelect}
|
||||
treeData={treeData}
|
||||
draggable
|
||||
blockNode
|
||||
onDragEnter={onDragEnter}
|
||||
onDrop={onDrop}
|
||||
defaultExpandAll={true}
|
||||
switcherIcon={<i className="iconfont icon-icon-fold c-gray" />}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
<DepartmentCreate
|
||||
open={createVisible}
|
||||
|
@ -172,6 +172,7 @@ export const MemberCreate: React.FC<PropInterface> = ({ open, onCancel }) => {
|
||||
treeData={departments}
|
||||
multiple
|
||||
allowClear
|
||||
treeDefaultExpandAll
|
||||
placeholder="请选择学员所属部门"
|
||||
/>
|
||||
</Form.Item>
|
||||
|
@ -202,6 +202,7 @@ export const MemberUpdate: React.FC<PropInterface> = ({
|
||||
treeData={departments}
|
||||
multiple
|
||||
allowClear
|
||||
treeDefaultExpandAll
|
||||
placeholder="请选择学员所属部门"
|
||||
/>
|
||||
</Form.Item>
|
||||
|
@ -30,7 +30,9 @@ export const SystemAdministratorUpdate: React.FC<PropInterface> = ({
|
||||
if (id === 0) {
|
||||
return;
|
||||
}
|
||||
getDetail();
|
||||
if (open) {
|
||||
getDetail();
|
||||
}
|
||||
}, [id, open]);
|
||||
|
||||
const getParams = () => {
|
||||
|
@ -35,7 +35,9 @@ export const SystemAdminrolesUpdate: React.FC<PropInterface> = ({
|
||||
if (id === undefined) {
|
||||
return;
|
||||
}
|
||||
getDetail();
|
||||
if (open) {
|
||||
getDetail();
|
||||
}
|
||||
}, [id, open]);
|
||||
|
||||
const getParams = () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user