|
|
|
@ -87,6 +87,12 @@ export const userFormSchema: FormSchema[] = [
@@ -87,6 +87,12 @@ export const userFormSchema: FormSchema[] = [
|
|
|
|
|
component: 'Input', |
|
|
|
|
show: false |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
field: 'nickName', |
|
|
|
|
label: '昵称', |
|
|
|
|
component: 'Input', |
|
|
|
|
required: true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
field: 'userName', |
|
|
|
|
label: '用户名', |
|
|
|
@ -97,10 +103,16 @@ export const userFormSchema: FormSchema[] = [
@@ -97,10 +103,16 @@ export const userFormSchema: FormSchema[] = [
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
field: 'nickName', |
|
|
|
|
label: '用户昵称', |
|
|
|
|
component: 'Input', |
|
|
|
|
field: 'sex', |
|
|
|
|
label: '性别', |
|
|
|
|
component: 'Select', |
|
|
|
|
required: true, |
|
|
|
|
componentProps: { |
|
|
|
|
options: [ |
|
|
|
|
{ label: '男', value: '0' }, |
|
|
|
|
{ label: '女', value: '1' } |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
colProps: { |
|
|
|
|
span: 12 |
|
|
|
|
} |
|
|
|
@ -109,9 +121,6 @@ export const userFormSchema: FormSchema[] = [
@@ -109,9 +121,6 @@ export const userFormSchema: FormSchema[] = [
|
|
|
|
|
field: 'password', |
|
|
|
|
label: '密码', |
|
|
|
|
component: 'InputPassword', |
|
|
|
|
colProps: { |
|
|
|
|
span: 12 |
|
|
|
|
}, |
|
|
|
|
rules: [ |
|
|
|
|
{ |
|
|
|
|
required: true, |
|
|
|
@ -162,30 +171,12 @@ export const userFormSchema: FormSchema[] = [
@@ -162,30 +171,12 @@ export const userFormSchema: FormSchema[] = [
|
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
field: 'sex', |
|
|
|
|
label: '性别', |
|
|
|
|
component: 'Select', |
|
|
|
|
required: true, |
|
|
|
|
componentProps: { |
|
|
|
|
options: [ |
|
|
|
|
{ label: '男', value: '0' }, |
|
|
|
|
{ label: '女', value: '1' } |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
colProps: { |
|
|
|
|
span: 12 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
field: 'remarks', |
|
|
|
|
label: '备注', |
|
|
|
|
component: 'InputTextArea', |
|
|
|
|
componentProps: { |
|
|
|
|
rows: 6 |
|
|
|
|
}, |
|
|
|
|
colProps: { |
|
|
|
|
span: 24 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
]; |
|
|
|
|