Showing
1 changed file
with
23 additions
and
0 deletions
| ... | ... | @@ -235,6 +235,21 @@ export const step2Schemas: FormSchema[] = [ |
| 235 | 235 | }, |
| 236 | 236 | ]; |
| 237 | 237 | |
| 238 | +const deviceTypeStatic = [ | |
| 239 | + { | |
| 240 | + key: 'DIRECT_CONNECTION', | |
| 241 | + value: '直连设备', | |
| 242 | + }, | |
| 243 | + { | |
| 244 | + key: 'GATEWAY', | |
| 245 | + value: '网关设备', | |
| 246 | + }, | |
| 247 | + { | |
| 248 | + key: 'SENSOR', | |
| 249 | + value: '网关子设备', | |
| 250 | + }, | |
| 251 | +]; | |
| 252 | + | |
| 238 | 253 | export const columns: BasicColumn[] = [ |
| 239 | 254 | { |
| 240 | 255 | title: '配置图片', //图标 |
| ... | ... | @@ -248,6 +263,14 @@ export const columns: BasicColumn[] = [ |
| 248 | 263 | width: 120, |
| 249 | 264 | }, |
| 250 | 265 | { |
| 266 | + title: '设备类型', | |
| 267 | + dataIndex: 'deviceType', | |
| 268 | + width: 90, | |
| 269 | + format: (text) => { | |
| 270 | + return deviceTypeStatic.find((f) => f.key === text)!.value; | |
| 271 | + }, | |
| 272 | + }, | |
| 273 | + { | |
| 251 | 274 | title: '配置类型', |
| 252 | 275 | dataIndex: 'type', |
| 253 | 276 | width: 90, | ... | ... |