系统管理人员新建、编辑初步

This commit is contained in:
禺狨 2023-03-06 17:02:38 +08:00
parent 84dd2e03c1
commit 8b4e66619a
4 changed files with 38 additions and 20 deletions

View File

@ -79,7 +79,7 @@ export const MemberCreatePage: React.FC = () => {
name="basic"
labelCol={{ span: 8 }}
wrapperCol={{ span: 16 }}
style={{ maxWidth: 600 }}
style={{ width: 600 }}
initialValues={{ remember: true }}
onFinish={onFinish}
onFinishFailed={onFinishFailed}

View File

@ -101,7 +101,7 @@ export const MemberUpdatePage: React.FC = () => {
name="basic"
labelCol={{ span: 8 }}
wrapperCol={{ span: 16 }}
style={{ maxWidth: 600 }}
style={{ width: 600 }}
initialValues={{ remember: true }}
onFinish={onFinish}
onFinishFailed={onFinishFailed}

View File

@ -67,13 +67,14 @@ export const AdministratorCreatePage: React.FC = () => {
name="basic"
labelCol={{ span: 8 }}
wrapperCol={{ span: 16 }}
style={{ maxWidth: 600 }}
style={{ width: 600 }}
initialValues={{ remember: true }}
onFinish={onFinish}
onFinishFailed={onFinishFailed}
autoComplete="off"
>
<Form.Item label="角色" name="roleIds">
<div className="d-flex">
<Select
style={{ width: 300 }}
mode="multiple"
@ -82,6 +83,14 @@ export const AdministratorCreatePage: React.FC = () => {
onChange={handleChange}
options={roles}
/>
<Button
type="link"
danger
onClick={() => navigate(`/system/adminroles`)}
>
</Button>
</div>
</Form.Item>
<Form.Item
label="姓名"

View File

@ -85,13 +85,14 @@ export const AdministratorUpdatePage: React.FC = () => {
name="basic"
labelCol={{ span: 8 }}
wrapperCol={{ span: 16 }}
style={{ maxWidth: 600 }}
style={{ width: 600 }}
initialValues={{ remember: true }}
onFinish={onFinish}
onFinishFailed={onFinishFailed}
autoComplete="off"
>
<Form.Item label="角色" name="roleIds">
<div className="d-flex">
<Select
style={{ width: 300 }}
mode="multiple"
@ -100,6 +101,14 @@ export const AdministratorUpdatePage: React.FC = () => {
onChange={handleChange}
options={roles}
/>
<Button
type="link"
danger
onClick={() => navigate(`/system/adminroles`)}
>
</Button>
</div>
</Form.Item>
<Form.Item
label="姓名"