| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- import type { SelectProps } from 'ant-design-vue'
- // 设备列表表头
- export const columns = [
- {
- title: '设备ID\n设备名称',
- dataIndex: 'info',
- key: 'info',
- align: 'center',
- customHeaderCell: () => {
- return {
- style: {
- whiteSpace: 'pre-line',
- },
- }
- },
- },
- {
- title: '固件版本',
- key: 'hardware',
- dataIndex: 'hardware',
- align: 'center',
- width: 200,
- },
- {
- title: '设备状态\n活动状态',
- dataIndex: 'online',
- key: 'online',
- align: 'center',
- customHeaderCell: () => {
- return {
- style: {
- whiteSpace: 'pre-line',
- },
- }
- },
- },
- {
- title: '归属租户',
- key: 'tenantName',
- dataIndex: 'tenantName',
- align: 'center',
- width: 300,
- },
- {
- title: '今日掉线次数\n今日进出次数',
- dataIndex: 'offlineCount',
- key: 'offlineCount',
- align: 'center',
- customHeaderCell: () => {
- return {
- style: {
- whiteSpace: 'pre-line',
- },
- }
- },
- width: 150,
- },
- {
- title: '操作',
- key: 'action',
- dataIndex: 'action',
- align: 'center',
- width: 150,
- },
- ]
- // 设备状态选项
- export const deviceStatusOptions: SelectProps['options'] = [
- {
- label: '全部',
- value: null,
- },
- {
- label: '在线',
- value: 1,
- },
- {
- label: '离线',
- value: 0,
- },
- {
- label: '未激活',
- value: 9,
- },
- ]
|