mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 11:19:45 +08:00
左侧菜单和右上角管理员模块优化
This commit is contained in:
@@ -4,7 +4,6 @@ import styles from "./create.module.less";
|
||||
import { adminUser } from "../../../api/index";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { BackBartment } from "../../../compenents";
|
||||
import { PerButton } from "../../../compenents";
|
||||
|
||||
export const AdministratorCreatePage: React.FC = () => {
|
||||
const navigate = useNavigate();
|
||||
@@ -80,24 +79,14 @@ export const AdministratorCreatePage: React.FC = () => {
|
||||
autoComplete="off"
|
||||
>
|
||||
<Form.Item label="角色" name="roleIds">
|
||||
<div className="d-flex">
|
||||
<Select
|
||||
style={{ width: 300 }}
|
||||
mode="multiple"
|
||||
allowClear
|
||||
placeholder="请选择角色"
|
||||
onChange={handleChange}
|
||||
options={roles}
|
||||
/>
|
||||
<PerButton
|
||||
type="link"
|
||||
text="角色管理"
|
||||
class="c-red"
|
||||
icon={null}
|
||||
p="admin-role"
|
||||
onClick={() => navigate(`/system/adminroles`)}
|
||||
/>
|
||||
</div>
|
||||
<Select
|
||||
style={{ width: 300 }}
|
||||
mode="multiple"
|
||||
allowClear
|
||||
placeholder="请选择角色"
|
||||
onChange={handleChange}
|
||||
options={roles}
|
||||
/>
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
label="姓名"
|
||||
|
||||
@@ -4,7 +4,6 @@ import styles from "./update.module.less";
|
||||
import { adminUser } from "../../../api/index";
|
||||
import { useParams, useNavigate } from "react-router-dom";
|
||||
import { BackBartment } from "../../../compenents";
|
||||
import { PerButton } from "../../../compenents";
|
||||
|
||||
export const AdministratorUpdatePage: React.FC = () => {
|
||||
const params = useParams();
|
||||
@@ -98,24 +97,14 @@ export const AdministratorUpdatePage: React.FC = () => {
|
||||
autoComplete="off"
|
||||
>
|
||||
<Form.Item label="角色" name="roleIds">
|
||||
<div className="d-flex">
|
||||
<Select
|
||||
style={{ width: 300 }}
|
||||
mode="multiple"
|
||||
allowClear
|
||||
placeholder="请选择角色"
|
||||
onChange={handleChange}
|
||||
options={roles}
|
||||
/>
|
||||
<PerButton
|
||||
type="link"
|
||||
text="角色管理"
|
||||
class="c-red"
|
||||
icon={null}
|
||||
p="admin-role"
|
||||
onClick={() => navigate(`/system/adminroles`)}
|
||||
/>
|
||||
</div>
|
||||
<Select
|
||||
style={{ width: 300 }}
|
||||
mode="multiple"
|
||||
allowClear
|
||||
placeholder="请选择角色"
|
||||
onChange={handleChange}
|
||||
options={roles}
|
||||
/>
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
label="姓名"
|
||||
|
||||
@@ -6,7 +6,6 @@ import { PlusOutlined, ReloadOutlined } from "@ant-design/icons";
|
||||
import { adminRole } from "../../../api/index";
|
||||
import { dateFormat } from "../../../utils/index";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
import { BackBartment } from "../../../compenents";
|
||||
|
||||
interface DataType {
|
||||
id: React.Key;
|
||||
@@ -89,9 +88,6 @@ export const SystemAdminrolesPage: React.FC = () => {
|
||||
return (
|
||||
<>
|
||||
<div className="playedu-main-body">
|
||||
<div className="float-left mb-24">
|
||||
<BackBartment title="管理员角色" />
|
||||
</div>
|
||||
<div className="float-left j-b-flex mb-24">
|
||||
<div className="d-flex">
|
||||
<Link
|
||||
|
||||
Reference in New Issue
Block a user