From 07006ee2ac17dd3fd7a8a9a931ca5227221a1b04 Mon Sep 17 00:00:00 2001 From: lxj <15683799673@163.com> Date: Fri, 12 Sep 2025 14:26:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E4=BA=BA=E5=83=8F=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/views/sis/personLibImg/data.tsx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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), }, }, {