Browse Source

优化联合技术审查

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

22
src/views/projectLib/projectInfo/projectInfo.data.ts

@ -5,7 +5,7 @@ import { useUserStore } from '@/store/modules/user';
const userStore = useUserStore(); const userStore = useUserStore();
const dictStore = useDictStore(); const dictStore = useDictStore();
import { getWorkPlaceTypeDict, getContactorDict, getUserDictByRoles } from '../initiatesProjects/initiatesProjects.api' 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() { async function getDutyWorkplaceOptions() {
let dutyWorkplaceOption = await getDutyWorkplaceList(); let dutyWorkplaceOption = await getDutyWorkplaceList();
@ -125,9 +125,11 @@ export const searchFormSchema: FormSchema[] = [
//字段 //字段
field: 'dutyWorkplace', field: 'dutyWorkplace',
//组件 支持组件详见 components/Form/src/types/index.ts 中的 ComponentType //组件 支持组件详见 components/Form/src/types/index.ts 中的 ComponentType
component: 'Select', component: 'ApiSelect',
componentProps:{ componentProps: () => {
options:await getDutyWorkplaceOptions() return {
api: () =>getDutyWorkplaceOptions()
}
}, },
labelWidth: 'auto' labelWidth: 'auto'
}, },
@ -138,15 +140,15 @@ export const searchFormSchema: FormSchema[] = [
field: 'workplaceProperties', field: 'workplaceProperties',
//组件 支持组件详见 components/Form/src/types/index.ts 中的 ComponentType //组件 支持组件详见 components/Form/src/types/index.ts 中的 ComponentType
component: 'Select', component: 'Select',
componentProps:{ componentProps: {
options:[ options: [
{ {
label:"医疗机构", label: "医疗机构",
value:"医疗机构" value: "医疗机构"
}, },
{ {
label:"卫生行政部门", label: "卫生行政部门",
value:"卫生行政部门" value: "卫生行政部门"
} }
] ]
}, },

Loading…
Cancel
Save