mirror of
https://github.com/PlayEdu/backend
synced 2025-06-28 17:12:50 +08:00
管理人员角色相关优化
This commit is contained in:
parent
ab06c731aa
commit
1a73f08a74
@ -9,6 +9,7 @@ interface Option {
|
||||
}
|
||||
|
||||
interface PropInterface {
|
||||
refresh: boolean;
|
||||
type: string;
|
||||
text: string;
|
||||
onUpdate: (keys: any, title: any) => void;
|
||||
@ -34,7 +35,7 @@ export const TreeAdminroles = (props: PropInterface) => {
|
||||
setTreeData(new_arr);
|
||||
}
|
||||
});
|
||||
}, []);
|
||||
}, [props.refresh]);
|
||||
const onSelect = (selectedKeys: any, info: any) => {
|
||||
let label = "全部" + props.text;
|
||||
if (info) {
|
||||
|
@ -185,6 +185,7 @@ const SystemAdministratorPage = () => {
|
||||
<div className="tree-main-body">
|
||||
<div className="left-box">
|
||||
<TreeAdminroles
|
||||
refresh={refresh}
|
||||
type=""
|
||||
text={"管理员"}
|
||||
onUpdate={(keys: any, title: any) => {
|
||||
|
@ -152,7 +152,7 @@ export const SystemAdminrolesUpdate: React.FC<PropInterface> = ({
|
||||
return (
|
||||
<>
|
||||
<Drawer
|
||||
title="新建角色"
|
||||
title="编辑角色权限"
|
||||
onClose={onCancel}
|
||||
maskClosable={false}
|
||||
open={open}
|
||||
|
Loading…
x
Reference in New Issue
Block a user