Commit 27d0c0c698e565d84375eab0e65bc71d731638b1
Merge branch 'fix/DEFECT-1585' into 'main_dev'
fix: 修改场景联动设备输出 See merge request yunteng/thingskit-front!877
Showing
1 changed file
with
11 additions
and
1 deletions
| ... | ... | @@ -576,7 +576,17 @@ 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 | + return record.filter( | |
| 583 | + (item) => | |
| 584 | + item.itemValue !== CommandTypeEnum.ATTRIBUTE.toString() || item.itemText != '属性' | |
| 585 | + ); | |
| 586 | + } catch (error) { | |
| 587 | + return []; | |
| 588 | + } | |
| 589 | + }, | |
| 580 | 590 | labelField: 'itemText', |
| 581 | 591 | valueField: 'itemValue', |
| 582 | 592 | params: { | ... | ... |