12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- import type { SelectProps } from 'ant-design-vue'
- // 设备列表表头
- export const columns = [
- {
- title: '设备ID',
- dataIndex: 'clientId',
- key: 'clientId',
- align: 'center',
- },
- {
- title: '设备名称',
- dataIndex: 'devName',
- key: 'devName',
- align: 'center',
- width: 300,
- },
- {
- title: '设备状态',
- key: 'online',
- dataIndex: 'online',
- align: 'center',
- },
- {
- title: '活动状态',
- key: 'activeState',
- dataIndex: 'activeState',
- align: 'center',
- width: 200,
- },
- {
- title: '归属租户',
- key: 'tenantName',
- dataIndex: 'tenantName',
- align: 'center',
- width: 300,
- },
- {
- title: '今日掉线次数',
- key: 'offlineCount',
- dataIndex: 'offlineCount',
- align: 'center',
- width: 150,
- },
- {
- title: '操作',
- key: 'action',
- dataIndex: 'action',
- align: 'center',
- // fixed: 'right',
- width: 150,
- },
- ]
- // 设备状态选项
- export const deviceStatusOptions: SelectProps['options'] = [
- {
- label: '全部',
- value: null,
- },
- {
- label: '在线',
- value: 1,
- },
- {
- label: '离线',
- value: 0,
- },
- {
- label: '未激活',
- value: 9,
- },
- ]
|