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,7 +113,7 @@ export const step1Schemas: FormSchema[] = [ | ||
| 113 | }, | 113 | }, |
| 114 | { | 114 | { |
| 115 | field: 'code', | 115 | field: 'code', |
| 116 | - label: '设备标识', | 116 | + label: '设备标识/地址码', |
| 117 | dynamicRules({ values }) { | 117 | dynamicRules({ values }) { |
| 118 | return [ | 118 | return [ |
| 119 | { | 119 | { |
| @@ -129,6 +129,7 @@ export const step1Schemas: FormSchema[] = [ | @@ -129,6 +129,7 @@ export const step1Schemas: FormSchema[] = [ | ||
| 129 | maxLength: 255, | 129 | maxLength: 255, |
| 130 | placeholder: '请输入设备标识或设备地址码', | 130 | placeholder: '请输入设备标识或设备地址码', |
| 131 | }, | 131 | }, |
| 132 | + helpMessage: ['标准Modbus地址码值为1-255', '其他协议自定义'], | ||
| 132 | ifShow: ({ values }) => | 133 | ifShow: ({ values }) => |
| 133 | values?.transportType === TransportTypeEnum.TCP && | 134 | values?.transportType === TransportTypeEnum.TCP && |
| 134 | (values.deviceType === DeviceTypeEnum.SENSOR || values.deviceType === DeviceTypeEnum.GATEWAY), | 135 | (values.deviceType === DeviceTypeEnum.SENSOR || values.deviceType === DeviceTypeEnum.GATEWAY), |
| @@ -187,7 +187,7 @@ | @@ -187,7 +187,7 @@ | ||
| 187 | 187 | ||
| 188 | const [register, { validate, resetFields, setFieldsValue, getFieldsValue, updateSchema }] = | 188 | const [register, { validate, resetFields, setFieldsValue, getFieldsValue, updateSchema }] = |
| 189 | useForm({ | 189 | useForm({ |
| 190 | - labelWidth: 120, | 190 | + labelWidth: 140, |
| 191 | schemas: step1Schemas, | 191 | schemas: step1Schemas, |
| 192 | actionColOptions: { | 192 | actionColOptions: { |
| 193 | span: 14, | 193 | span: 14, |