Commit 8c75c8bd7da72775bfd3cd12a211a544aa193c82
Merge branch 'fix/DEFECT-1581' into 'main_dev'
fix: 修改场景联动执行动作必选项没填写也新增成功了 See merge request yunteng/thingskit-front!876
Showing
1 changed file
with
4 additions
and
2 deletions
| ... | ... | @@ -267,8 +267,10 @@ | 
| 267 | 267 | const validate = getFieldsValue(); | 
| 268 | 268 | //ft-add-2022-11-22 | 
| 269 | 269 | const type = validate?.outTarget; | 
| 270 | - if (type === 'DEVICE_OUT' && validate.device == 'PART') { | |
| 271 | - if (validate.deviceId == undefined) return createMessage.error('请选择设备'); | |
| 270 | + if (type === 'DEVICE_OUT') { | |
| 271 | + if (!validate.deviceProfileId) return createMessage.error('请选择产品'); | |
| 272 | + if (validate.device == 'PART' && validate.deviceId == undefined) | |
| 273 | + return createMessage.error('请选择设备'); | |
| 272 | 274 | } | 
| 273 | 275 | //ft-add-2022-11-22 | 
| 274 | 276 | //TODO-fengtao-设备验证 | ... | ... |