Showing
1 changed file
with
6 additions
and
6 deletions
| ... | ... | @@ -6,6 +6,12 @@ import { DeviceTypeEnum, DeviceState } from '/@/api/device/model/deviceModel'; |
| 6 | 6 | // 表格列数据 |
| 7 | 7 | export const columns: BasicColumn[] = [ |
| 8 | 8 | { |
| 9 | + title: '状态', | |
| 10 | + dataIndex: 'deviceState', | |
| 11 | + width: 120, | |
| 12 | + slots: { customRender: 'deviceState' }, | |
| 13 | + }, | |
| 14 | + { | |
| 9 | 15 | title: '设备图片', |
| 10 | 16 | dataIndex: 'deviceInfo.avatar', |
| 11 | 17 | width: 120, |
| ... | ... | @@ -45,12 +51,6 @@ export const columns: BasicColumn[] = [ |
| 45 | 51 | width: 180, |
| 46 | 52 | }, |
| 47 | 53 | { |
| 48 | - title: '状态', | |
| 49 | - dataIndex: 'deviceState', | |
| 50 | - width: 120, | |
| 51 | - slots: { customRender: 'deviceState' }, | |
| 52 | - }, | |
| 53 | - { | |
| 54 | 54 | title: '最后连接时间', |
| 55 | 55 | dataIndex: 'lastOnlineTime', |
| 56 | 56 | format: (text) => text && formatToDate(text, 'YYYY-MM-DD HH:mm:ss'), | ... | ... |