Browse Source

优化联合技术审查

master
zhouhaibin 3 months ago
parent
commit
5201b5a6bc
  1. 24
      src/views/projectLib/projectInfo/projectInfo.data.ts

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

Loading…
Cancel
Save