Commit d40606034600585f38e0816ca07fa044efc5e97c
1 parent
8c579a52
fix: DEFECT-980 linkedge action echo data type not of line
Showing
1 changed file
with
4 additions
and
6 deletions
| ... | ... | @@ -522,14 +522,12 @@ export const actionSchema: FormSchema[] = [ | 
| 522 | 522 | const { setFieldsValue } = formActionType; | 
| 523 | 523 | return { | 
| 524 | 524 | placeholder: '请选择类型', | 
| 525 | - api: async () => { | |
| 526 | - const record = await findDictItemByCode({ | |
| 527 | - dictCode: 'custom_define', | |
| 528 | - }); | |
| 529 | - return record.map((item) => ({ ...item, itemValue: Number(item.itemValue) })); | |
| 530 | - }, | |
| 525 | + api: findDictItemByCode, | |
| 531 | 526 | labelField: 'itemText', | 
| 532 | 527 | valueField: 'itemValue', | 
| 528 | + params: { | |
| 529 | + dictCode: 'custom_define', | |
| 530 | + }, | |
| 533 | 531 | getPopupContainer: () => document.body, | 
| 534 | 532 | onChange: () => { | 
| 535 | 533 | setFieldsValue({ doContext: null, thingsModelId: null }); | ... | ... |