Commit 0c5536662c07180ad8557c8c104454b82f80cafc

Authored by xp.Huang
2 parents 6a646de1 82acaee7

Merge branch 'fix/device-code-range' into 'main_dev'

fix: 修复设备地址码取值范围提示

See merge request yunteng/thingskit-front!755
@@ -129,7 +129,7 @@ export const step1Schemas: FormSchema[] = [ @@ -129,7 +129,7 @@ export const step1Schemas: FormSchema[] = [
129 maxLength: 255, 129 maxLength: 255,
130 placeholder: '请输入设备标识或设备地址码', 130 placeholder: '请输入设备标识或设备地址码',
131 }, 131 },
132 - helpMessage: ['标准Modbus地址码值为16进制1-255值', '其他协议自定义'], 132 + helpMessage: ['标准Modbus地址码值为16进制1-247值', '其他协议自定义'],
133 ifShow: ({ values }) => 133 ifShow: ({ values }) =>
134 values?.transportType === TransportTypeEnum.TCP && 134 values?.transportType === TransportTypeEnum.TCP &&
135 (values.deviceType === DeviceTypeEnum.SENSOR || values.deviceType === DeviceTypeEnum.GATEWAY), 135 (values.deviceType === DeviceTypeEnum.SENSOR || values.deviceType === DeviceTypeEnum.GATEWAY),