Showing
1 changed file
with
4 additions
and
2 deletions
@@ -267,8 +267,10 @@ | @@ -267,8 +267,10 @@ | ||
267 | const validate = getFieldsValue(); | 267 | const validate = getFieldsValue(); |
268 | //ft-add-2022-11-22 | 268 | //ft-add-2022-11-22 |
269 | const type = validate?.outTarget; | 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 | //ft-add-2022-11-22 | 275 | //ft-add-2022-11-22 |
274 | //TODO-fengtao-设备验证 | 276 | //TODO-fengtao-设备验证 |