|
|
@ -117,6 +117,19 @@ export const searchFormSchema: FormSchema[] = [ |
|
|
|
}, |
|
|
|
}, |
|
|
|
colProps: { span: 5 }, |
|
|
|
colProps: { span: 5 }, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
field: 'organType', |
|
|
|
|
|
|
|
label: '组织类型', |
|
|
|
|
|
|
|
component: 'Select', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
|
|
options: [ |
|
|
|
|
|
|
|
{label: '医院',value: '1'}, |
|
|
|
|
|
|
|
{label: '医检',value: '2'} |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
colProps: {span: 5} |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
field: 'dateRange', |
|
|
|
field: 'dateRange', |
|
|
|
label: '创建时间', |
|
|
|
label: '创建时间', |
|
|
@ -199,29 +212,29 @@ export const doctorFormSchema: FormSchema[] = [ |
|
|
|
}, |
|
|
|
}, |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
// {
|
|
|
|
field: 'organId', |
|
|
|
// field: 'organId',
|
|
|
|
label: '所属组织', |
|
|
|
// label: '所属组织',
|
|
|
|
component: 'ApiSelect', |
|
|
|
// component: 'ApiSelect',
|
|
|
|
required: true, |
|
|
|
// required: true,
|
|
|
|
renderComponentContent: ({ schema, values, model, field }) => { |
|
|
|
// renderComponentContent: ({ schema, values, model, field }) => {
|
|
|
|
const organType = model.organType; |
|
|
|
// const organType = model.organType;
|
|
|
|
watch(organType, |
|
|
|
// watch(organType,
|
|
|
|
() => { |
|
|
|
// () => {
|
|
|
|
const dataApi = organType=='1' ? hospitalList : institutionList; |
|
|
|
// const dataApi = organType=='1' ? hospitalList : institutionList;
|
|
|
|
console.log(schema); |
|
|
|
// console.log(schema);
|
|
|
|
schema.componentProps = deepMerge({ |
|
|
|
// schema.componentProps = deepMerge({
|
|
|
|
api: dataApi, |
|
|
|
// api: dataApi,
|
|
|
|
labelField: 'name', |
|
|
|
// labelField: 'name',
|
|
|
|
valueField: 'id' |
|
|
|
// valueField: 'id'
|
|
|
|
}); |
|
|
|
// });
|
|
|
|
}, |
|
|
|
// },
|
|
|
|
{ |
|
|
|
// {
|
|
|
|
immediate: true, |
|
|
|
// immediate: true,
|
|
|
|
} |
|
|
|
// }
|
|
|
|
); |
|
|
|
// );
|
|
|
|
} |
|
|
|
// }
|
|
|
|
}, |
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// {
|
|
|
|
// field: 'officeId',
|
|
|
|
// field: 'officeId',
|
|
|
|
// label: '所属科室',
|
|
|
|
// label: '所属科室',
|
|
|
|