table.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /**
  2. * 治安重点部位表格配置
  3. */
  4. import type { TableColumnProps } from '@/types/basic-table';
  5. export const SECURITY_POSITION_LIST_TABLE_MAX_HEIGHT_DEFAULT = 'calc(70vh - 30px)';
  6. export const SECURITY_POSITION_LIST_TABLE_MAX_HEIGHT_PERMISSION = 'calc(70vh - 80px)';
  7. // 基础表格样式配置
  8. const TABLE_OPTIONS = {
  9. emptyText: '暂无数据',
  10. loading: true,
  11. };
  12. // 应急处置表格样式配置
  13. export const SECURITY_POSITION_LIST_TABLE_OPTIONS = {
  14. ...TABLE_OPTIONS,
  15. };
  16. // 应急处置表格列配置
  17. export const SECURITY_POSITION_LIST_TABLE_COLUMNS: TableColumnProps[] = [
  18. {
  19. label: '序号',
  20. prop: 'index',
  21. width: '80px',
  22. type: 'index',
  23. align: 'center',
  24. },
  25. {
  26. label: '重点部位名称',
  27. prop: 'groupName',
  28. // align: 'center',
  29. minWidth: '120px',
  30. },
  31. {
  32. label: '关联相机',
  33. prop: 'cameraName',
  34. slot: 'cameraName',
  35. // align: 'center',
  36. minWidth: '180px',
  37. },
  38. {
  39. label: '创建时间',
  40. prop: 'createdAt',
  41. // align: 'center',
  42. width: '200px',
  43. },
  44. {
  45. prop: 'action',
  46. label: '操作',
  47. // align: 'center',
  48. slot: 'action',
  49. fixed: 'right',
  50. width: '230px',
  51. },
  52. ];