Commit 5948b4077679f39fb6c74609acff4921f13b41ce
1 parent
97a9628f
perf: 创建设备时deviceCode字段新增tooltip提示
Showing
2 changed files
with
3 additions
and
2 deletions
... | ... | @@ -113,7 +113,7 @@ export const step1Schemas: FormSchema[] = [ |
113 | 113 | }, |
114 | 114 | { |
115 | 115 | field: 'code', |
116 | - label: '设备标识', | |
116 | + label: '设备标识/地址码', | |
117 | 117 | dynamicRules({ values }) { |
118 | 118 | return [ |
119 | 119 | { |
... | ... | @@ -129,6 +129,7 @@ export const step1Schemas: FormSchema[] = [ |
129 | 129 | maxLength: 255, |
130 | 130 | placeholder: '请输入设备标识或设备地址码', |
131 | 131 | }, |
132 | + helpMessage: ['标准Modbus地址码值为1-255', '其他协议自定义'], | |
132 | 133 | ifShow: ({ values }) => |
133 | 134 | values?.transportType === TransportTypeEnum.TCP && |
134 | 135 | (values.deviceType === DeviceTypeEnum.SENSOR || values.deviceType === DeviceTypeEnum.GATEWAY), | ... | ... |