学员列表变化关联部门组件刷新

This commit is contained in:
禺狨 2023-04-20 11:55:48 +08:00
parent b8bb5234ca
commit 746a48d4d6
3 changed files with 4 additions and 1 deletions

View File

@ -11,6 +11,7 @@ interface Option {
interface PropInterface {
type: string;
text: string;
refresh: boolean;
showNum: boolean;
onUpdate: (keys: any, title: any) => void;
}
@ -47,7 +48,7 @@ export const TreeDepartment = (props: PropInterface) => {
}
setLoading(false);
});
}, []);
}, [props.refresh]);
const checkNewArr = (departments: any[], id: number, counts: any) => {
const arr = [];

View File

@ -89,6 +89,7 @@ const CoursePage = () => {
children: (
<div className="float-left">
<TreeDepartment
refresh={refresh}
showNum={false}
type="no-course"
text={"部门"}

View File

@ -247,6 +247,7 @@ const MemberPage = () => {
<div className="tree-main-body">
<div className="left-box">
<TreeDepartment
refresh={refresh}
showNum={true}
type=""
text={"部门"}