|
|
@ -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: "卫生行政部门" |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|