mirror of
https://github.com/PlayEdu/backend
synced 2025-07-20 00:19:44 +08:00
系统管理人员新建、编辑初步
This commit is contained in:
parent
84dd2e03c1
commit
8b4e66619a
@ -79,7 +79,7 @@ export const MemberCreatePage: React.FC = () => {
|
|||||||
name="basic"
|
name="basic"
|
||||||
labelCol={{ span: 8 }}
|
labelCol={{ span: 8 }}
|
||||||
wrapperCol={{ span: 16 }}
|
wrapperCol={{ span: 16 }}
|
||||||
style={{ maxWidth: 600 }}
|
style={{ width: 600 }}
|
||||||
initialValues={{ remember: true }}
|
initialValues={{ remember: true }}
|
||||||
onFinish={onFinish}
|
onFinish={onFinish}
|
||||||
onFinishFailed={onFinishFailed}
|
onFinishFailed={onFinishFailed}
|
||||||
|
@ -101,7 +101,7 @@ export const MemberUpdatePage: React.FC = () => {
|
|||||||
name="basic"
|
name="basic"
|
||||||
labelCol={{ span: 8 }}
|
labelCol={{ span: 8 }}
|
||||||
wrapperCol={{ span: 16 }}
|
wrapperCol={{ span: 16 }}
|
||||||
style={{ maxWidth: 600 }}
|
style={{ width: 600 }}
|
||||||
initialValues={{ remember: true }}
|
initialValues={{ remember: true }}
|
||||||
onFinish={onFinish}
|
onFinish={onFinish}
|
||||||
onFinishFailed={onFinishFailed}
|
onFinishFailed={onFinishFailed}
|
||||||
|
@ -67,21 +67,30 @@ export const AdministratorCreatePage: React.FC = () => {
|
|||||||
name="basic"
|
name="basic"
|
||||||
labelCol={{ span: 8 }}
|
labelCol={{ span: 8 }}
|
||||||
wrapperCol={{ span: 16 }}
|
wrapperCol={{ span: 16 }}
|
||||||
style={{ maxWidth: 600 }}
|
style={{ width: 600 }}
|
||||||
initialValues={{ remember: true }}
|
initialValues={{ remember: true }}
|
||||||
onFinish={onFinish}
|
onFinish={onFinish}
|
||||||
onFinishFailed={onFinishFailed}
|
onFinishFailed={onFinishFailed}
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
>
|
>
|
||||||
<Form.Item label="角色" name="roleIds">
|
<Form.Item label="角色" name="roleIds">
|
||||||
<Select
|
<div className="d-flex">
|
||||||
style={{ width: 300 }}
|
<Select
|
||||||
mode="multiple"
|
style={{ width: 300 }}
|
||||||
allowClear
|
mode="multiple"
|
||||||
placeholder="请选择角色"
|
allowClear
|
||||||
onChange={handleChange}
|
placeholder="请选择角色"
|
||||||
options={roles}
|
onChange={handleChange}
|
||||||
/>
|
options={roles}
|
||||||
|
/>
|
||||||
|
<Button
|
||||||
|
type="link"
|
||||||
|
danger
|
||||||
|
onClick={() => navigate(`/system/adminroles`)}
|
||||||
|
>
|
||||||
|
角色管理
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label="姓名"
|
label="姓名"
|
||||||
|
@ -85,21 +85,30 @@ export const AdministratorUpdatePage: React.FC = () => {
|
|||||||
name="basic"
|
name="basic"
|
||||||
labelCol={{ span: 8 }}
|
labelCol={{ span: 8 }}
|
||||||
wrapperCol={{ span: 16 }}
|
wrapperCol={{ span: 16 }}
|
||||||
style={{ maxWidth: 600 }}
|
style={{ width: 600 }}
|
||||||
initialValues={{ remember: true }}
|
initialValues={{ remember: true }}
|
||||||
onFinish={onFinish}
|
onFinish={onFinish}
|
||||||
onFinishFailed={onFinishFailed}
|
onFinishFailed={onFinishFailed}
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
>
|
>
|
||||||
<Form.Item label="角色" name="roleIds">
|
<Form.Item label="角色" name="roleIds">
|
||||||
<Select
|
<div className="d-flex">
|
||||||
style={{ width: 300 }}
|
<Select
|
||||||
mode="multiple"
|
style={{ width: 300 }}
|
||||||
allowClear
|
mode="multiple"
|
||||||
placeholder="请选择角色"
|
allowClear
|
||||||
onChange={handleChange}
|
placeholder="请选择角色"
|
||||||
options={roles}
|
onChange={handleChange}
|
||||||
/>
|
options={roles}
|
||||||
|
/>
|
||||||
|
<Button
|
||||||
|
type="link"
|
||||||
|
danger
|
||||||
|
onClick={() => navigate(`/system/adminroles`)}
|
||||||
|
>
|
||||||
|
角色管理
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label="姓名"
|
label="姓名"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user