diff --git a/apps/web-antd/src/views/sis/personLibImg/data.tsx b/apps/web-antd/src/views/sis/personLibImg/data.tsx index e87fc88f..ea9491f3 100644 --- a/apps/web-antd/src/views/sis/personLibImg/data.tsx +++ b/apps/web-antd/src/views/sis/personLibImg/data.tsx @@ -7,17 +7,13 @@ import { getPopupContainer } from '@vben/utils'; import { getDictOptions } from '#/utils/dict'; 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 = () => [ { label: '人员标签', fieldName: 'rosterType', component: 'Select', componentProps: { - options: rosterTypeOption, + options: getDictOptions(DictEnum.ROSTER_TYPE, true), }, }, { @@ -29,7 +25,7 @@ export const querySchema: FormSchemaGetter = () => [ component: 'Select', componentProps: { getPopupContainer, - options: userSexOption, + options: getDictOptions(DictEnum.SYS_USER_SEX, true), }, fieldName: 'sex', label: '性别', @@ -118,7 +114,7 @@ export const modalSchema: FormSchemaGetter = () => [ rules: 'required', componentProps: { getPopupContainer, - options: rosterTypeOption, + options: getDictOptions(DictEnum.ROSTER_TYPE, true), }, }, { @@ -133,7 +129,7 @@ export const modalSchema: FormSchemaGetter = () => [ component: 'Select', componentProps: { getPopupContainer, - options: userSexOption, + options: getDictOptions(DictEnum.SYS_USER_SEX, true), }, }, { @@ -152,7 +148,7 @@ export const modalSchema: FormSchemaGetter = () => [ component: 'Select', componentProps: { getPopupContainer, - options: certificateOption, + options: getDictOptions(DictEnum.SYS_CERTIFICATE_TYPE, true), }, }, {