const.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. import type { SelectProps } from 'ant-design-vue'
  2. // 设备列表表头
  3. export const columns = [
  4. {
  5. title: '设备ID',
  6. dataIndex: 'clientId',
  7. key: 'clientId',
  8. align: 'center',
  9. },
  10. {
  11. title: '设备名称',
  12. dataIndex: 'devName',
  13. key: 'devName',
  14. align: 'center',
  15. width: 300,
  16. },
  17. {
  18. title: '设备状态',
  19. key: 'online',
  20. dataIndex: 'online',
  21. align: 'center',
  22. },
  23. {
  24. title: '活动状态',
  25. key: 'activeState',
  26. dataIndex: 'activeState',
  27. align: 'center',
  28. width: 200,
  29. },
  30. {
  31. title: '归属租户',
  32. key: 'tenantName',
  33. dataIndex: 'tenantName',
  34. align: 'center',
  35. width: 300,
  36. },
  37. {
  38. title: '今日掉线次数',
  39. key: 'offlineCount',
  40. dataIndex: 'offlineCount',
  41. align: 'center',
  42. width: 150,
  43. },
  44. {
  45. title: '操作',
  46. key: 'action',
  47. dataIndex: 'action',
  48. align: 'center',
  49. // fixed: 'right',
  50. width: 150,
  51. },
  52. ]
  53. // 设备状态选项
  54. export const deviceStatusOptions: SelectProps['options'] = [
  55. {
  56. label: '全部',
  57. value: null,
  58. },
  59. {
  60. label: '在线',
  61. value: 1,
  62. },
  63. {
  64. label: '离线',
  65. value: 0,
  66. },
  67. {
  68. label: '未激活',
  69. value: 9,
  70. },
  71. ]