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