From 5201b5a6bc723e0822394e21b6995169ad855130 Mon Sep 17 00:00:00 2001 From: zhouhaibin Date: Thu, 4 Jul 2024 10:49:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=81=94=E5=90=88=E6=8A=80?= =?UTF-8?q?=E6=9C=AF=E5=AE=A1=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projectInfo/projectInfo.data.ts | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/views/projectLib/projectInfo/projectInfo.data.ts b/src/views/projectLib/projectInfo/projectInfo.data.ts index 408dc12..6df196a 100644 --- a/src/views/projectLib/projectInfo/projectInfo.data.ts +++ b/src/views/projectLib/projectInfo/projectInfo.data.ts @@ -5,7 +5,7 @@ import { useUserStore } from '@/store/modules/user'; const userStore = useUserStore(); const dictStore = useDictStore(); import { getWorkPlaceTypeDict, getContactorDict, getUserDictByRoles } from '../initiatesProjects/initiatesProjects.api' -import {getDutyWorkplaceList} from '@/views/informationSub/countStatistics/countStatistics.api'; +import { getDutyWorkplaceList } from '@/views/informationSub/countStatistics/countStatistics.api'; async function getDutyWorkplaceOptions() { let dutyWorkplaceOption = await getDutyWorkplaceList(); @@ -125,10 +125,12 @@ export const searchFormSchema: FormSchema[] = [ //字段 field: 'dutyWorkplace', //组件 支持组件详见 components/Form/src/types/index.ts 中的 ComponentType - component: 'Select', - componentProps:{ - options:await getDutyWorkplaceOptions() - }, + component: 'ApiSelect', + componentProps: () => { + return { + api: () =>getDutyWorkplaceOptions() + } + }, labelWidth: 'auto' }, { @@ -138,15 +140,15 @@ export const searchFormSchema: FormSchema[] = [ field: 'workplaceProperties', //组件 支持组件详见 components/Form/src/types/index.ts 中的 ComponentType component: 'Select', - componentProps:{ - options:[ + componentProps: { + options: [ { - label:"医疗机构", - value:"医疗机构" + label: "医疗机构", + value: "医疗机构" }, { - label:"卫生行政部门", - value:"卫生行政部门" + label: "卫生行政部门", + value: "卫生行政部门" } ] },