Commit ad6f08cef217478bbf910d3b21c9648c4964574d
Merge branch 'fix/DEFECT-1855' into 'main_dev'
fix: 修复TCP类型设备整型未使用缩放因子 See merge request yunteng/thingskit-scada!206
Showing
1 changed file
with
2 additions
and
0 deletions
@@ -44,6 +44,8 @@ export function useGetModbusCommand() { | @@ -44,6 +44,8 @@ export function useGetModbusCommand() { | ||
44 | createMessage.warning(`属性下发值不能超过${REGISTER_MAX_VALUE},缩放因子是${zoomFactor}`) | 44 | createMessage.warning(`属性下发值不能超过${REGISTER_MAX_VALUE},缩放因子是${zoomFactor}`) |
45 | return | 45 | return |
46 | } | 46 | } |
47 | + | ||
48 | + params.registerValues = [newValue] | ||
47 | } | 49 | } |
48 | else if (actionType === TCPObjectModelActionTypeEnum.DOUBLE) { | 50 | else if (actionType === TCPObjectModelActionTypeEnum.DOUBLE) { |
49 | const regex = /^-?\d+(\.\d{0,2})?$/ | 51 | const regex = /^-?\d+(\.\d{0,2})?$/ |