处理人像页面BUG
This commit is contained in:
@@ -7,17 +7,13 @@ import { getPopupContainer } from '@vben/utils';
|
|||||||
import { getDictOptions } from '#/utils/dict';
|
import { getDictOptions } from '#/utils/dict';
|
||||||
import { renderDict } from '#/utils/render';
|
import { renderDict } from '#/utils/render';
|
||||||
|
|
||||||
const rosterTypeOption = getDictOptions(DictEnum.ROSTER_TYPE, true);
|
|
||||||
const userSexOption = getDictOptions(DictEnum.SYS_USER_SEX, true);
|
|
||||||
const certificateOption = getDictOptions(DictEnum.SYS_CERTIFICATE_TYPE, true);
|
|
||||||
|
|
||||||
export const querySchema: FormSchemaGetter = () => [
|
export const querySchema: FormSchemaGetter = () => [
|
||||||
{
|
{
|
||||||
label: '人员标签',
|
label: '人员标签',
|
||||||
fieldName: 'rosterType',
|
fieldName: 'rosterType',
|
||||||
component: 'Select',
|
component: 'Select',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
options: rosterTypeOption,
|
options: getDictOptions(DictEnum.ROSTER_TYPE, true),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -29,7 +25,7 @@ export const querySchema: FormSchemaGetter = () => [
|
|||||||
component: 'Select',
|
component: 'Select',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
getPopupContainer,
|
getPopupContainer,
|
||||||
options: userSexOption,
|
options: getDictOptions(DictEnum.SYS_USER_SEX, true),
|
||||||
},
|
},
|
||||||
fieldName: 'sex',
|
fieldName: 'sex',
|
||||||
label: '性别',
|
label: '性别',
|
||||||
@@ -118,7 +114,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
|||||||
rules: 'required',
|
rules: 'required',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
getPopupContainer,
|
getPopupContainer,
|
||||||
options: rosterTypeOption,
|
options: getDictOptions(DictEnum.ROSTER_TYPE, true),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -133,7 +129,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
|||||||
component: 'Select',
|
component: 'Select',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
getPopupContainer,
|
getPopupContainer,
|
||||||
options: userSexOption,
|
options: getDictOptions(DictEnum.SYS_USER_SEX, true),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -152,7 +148,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
|||||||
component: 'Select',
|
component: 'Select',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
getPopupContainer,
|
getPopupContainer,
|
||||||
options: certificateOption,
|
options: getDictOptions(DictEnum.SYS_CERTIFICATE_TYPE, true),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user