|
|
|
@ -22,7 +22,6 @@ export const searchFormSchema: FormSchema[] = [ |
|
|
|
componentProps: ({ schema, tableAction, formActionType, formModel }) => { |
|
|
|
return { |
|
|
|
// xxxx props
|
|
|
|
allowClear: false, |
|
|
|
placeholder: '全部机组', |
|
|
|
options: optionList.units.map(unit => ({ value: unit.id, label: unit.name })), |
|
|
|
onChange: async (e: any) => { |
|
|
|
@ -35,7 +34,7 @@ export const searchFormSchema: FormSchema[] = [ |
|
|
|
typeId: formModel.type, |
|
|
|
} |
|
|
|
//如果typeId是空,则不设置system'Options
|
|
|
|
if (!param.typeId) { |
|
|
|
if (!param.typeId || !param.unitId) { |
|
|
|
systemOptions.value = [] |
|
|
|
return |
|
|
|
} |
|
|
|
@ -55,7 +54,6 @@ export const searchFormSchema: FormSchema[] = [ |
|
|
|
colProps: { span: 4 }, |
|
|
|
componentProps: ({ formModel }) => { |
|
|
|
return { |
|
|
|
allowClear: false, |
|
|
|
placeholder: '全部系统', |
|
|
|
options: optionList.types.map(type => ({ value: type.id, label: type.name })), |
|
|
|
onChange: async (e: any) => { |
|
|
|
@ -68,7 +66,7 @@ export const searchFormSchema: FormSchema[] = [ |
|
|
|
typeId: e, |
|
|
|
} |
|
|
|
//如果typeId是空,则不设置system'Options
|
|
|
|
if (!param.typeId) { |
|
|
|
if (!param.typeId || !param.unitId) { |
|
|
|
systemOptions.value = [] |
|
|
|
return |
|
|
|
} |
|
|
|
@ -86,7 +84,6 @@ export const searchFormSchema: FormSchema[] = [ |
|
|
|
colProps: { span: 4 }, |
|
|
|
componentProps: () => { |
|
|
|
return { |
|
|
|
allowClear: false, |
|
|
|
placeholder: '全部子系统', |
|
|
|
options: systemOptions.value.map(system => ({ value: system.id, label: system.name })), |
|
|
|
} |
|
|
|
|