Showing
1 changed file
with
12 additions
and
1 deletions
@@ -576,7 +576,18 @@ export const actionSchema: FormSchema[] = [ | @@ -576,7 +576,18 @@ export const actionSchema: FormSchema[] = [ | ||
576 | const { setFieldsValue } = formActionType; | 576 | const { setFieldsValue } = formActionType; |
577 | return { | 577 | return { |
578 | placeholder: '请选择类型', | 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 | labelField: 'itemText', | 591 | labelField: 'itemText', |
581 | valueField: 'itemValue', | 592 | valueField: 'itemValue', |
582 | params: { | 593 | params: { |