mirror of
https://github.com/PlayEdu/backend
synced 2025-06-22 03:32:47 +08:00
学员列表变化关联部门组件刷新
This commit is contained in:
parent
b8bb5234ca
commit
746a48d4d6
@ -11,6 +11,7 @@ interface Option {
|
|||||||
interface PropInterface {
|
interface PropInterface {
|
||||||
type: string;
|
type: string;
|
||||||
text: string;
|
text: string;
|
||||||
|
refresh: boolean;
|
||||||
showNum: boolean;
|
showNum: boolean;
|
||||||
onUpdate: (keys: any, title: any) => void;
|
onUpdate: (keys: any, title: any) => void;
|
||||||
}
|
}
|
||||||
@ -47,7 +48,7 @@ export const TreeDepartment = (props: PropInterface) => {
|
|||||||
}
|
}
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
});
|
});
|
||||||
}, []);
|
}, [props.refresh]);
|
||||||
|
|
||||||
const checkNewArr = (departments: any[], id: number, counts: any) => {
|
const checkNewArr = (departments: any[], id: number, counts: any) => {
|
||||||
const arr = [];
|
const arr = [];
|
||||||
|
@ -89,6 +89,7 @@ const CoursePage = () => {
|
|||||||
children: (
|
children: (
|
||||||
<div className="float-left">
|
<div className="float-left">
|
||||||
<TreeDepartment
|
<TreeDepartment
|
||||||
|
refresh={refresh}
|
||||||
showNum={false}
|
showNum={false}
|
||||||
type="no-course"
|
type="no-course"
|
||||||
text={"部门"}
|
text={"部门"}
|
||||||
|
@ -247,6 +247,7 @@ const MemberPage = () => {
|
|||||||
<div className="tree-main-body">
|
<div className="tree-main-body">
|
||||||
<div className="left-box">
|
<div className="left-box">
|
||||||
<TreeDepartment
|
<TreeDepartment
|
||||||
|
refresh={refresh}
|
||||||
showNum={true}
|
showNum={true}
|
||||||
type=""
|
type=""
|
||||||
text={"部门"}
|
text={"部门"}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user