Showing
1 changed file
with
4 additions
and
3 deletions
| ... | ... | @@ -37,7 +37,8 @@ |
| 37 | 37 | const { name, detail, identifier, deviceDetail, extensionDesc } = record; |
| 38 | 38 | const { dataType } = detail; |
| 39 | 39 | const { type } = dataType || {}; |
| 40 | - const { codeType } = deviceDetail || {}; | |
| 40 | + const { codeType, deviceProfile } = deviceDetail || {}; | |
| 41 | + const { transportType } = deviceProfile || {}; | |
| 41 | 42 | const { registerAddress, actionType } = extensionDesc || {}; |
| 42 | 43 | formField.value = identifier; |
| 43 | 44 | |
| ... | ... | @@ -53,8 +54,8 @@ |
| 53 | 54 | isShowActionType.value = actionType ? true : false; //判断modBUS类型时 物模型是否填写扩展描述 |
| 54 | 55 | |
| 55 | 56 | //是modBUS类型的就用另外的表单 |
| 56 | - //判断是否是modBus的下发命令 | |
| 57 | - if (codeType == TaskTypeEnum.MODBUS) { | |
| 57 | + //判断是否是TCP ==> modBus的下发命令 | |
| 58 | + if (codeType == TaskTypeEnum.MODBUS && transportType == 'TCP') { | |
| 58 | 59 | isShowModBUS.value = true; |
| 59 | 60 | modBUSForm.value = { |
| 60 | 61 | crc: 'CRC_16_LOWER', | ... | ... |