Showing
1 changed file
with
12 additions
and
1 deletions
... | ... | @@ -576,7 +576,18 @@ export const actionSchema: FormSchema[] = [ |
576 | 576 | const { setFieldsValue } = formActionType; |
577 | 577 | return { |
578 | 578 | placeholder: '请选择类型', |
579 | - api: findDictItemByCode, | |
579 | + api: async (parmas: Recordable) => { | |
580 | + try { | |
581 | + const record = await findDictItemByCode(parmas); | |
582 | + console.log(record, 'record'); | |
583 | + return record.filter( | |
584 | + (item) => | |
585 | + item.itemValue !== CommandTypeEnum.ATTRIBUTE.toString() || item.itemText != '属性' | |
586 | + ); | |
587 | + } catch (error) { | |
588 | + return []; | |
589 | + } | |
590 | + }, | |
580 | 591 | labelField: 'itemText', |
581 | 592 | valueField: 'itemValue', |
582 | 593 | params: { | ... | ... |