table.ts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /**
  2. * 监控调阅记录表格配置
  3. */
  4. import type { TableColumnProps } from '@/types/basic-table';
  5. export const SURVEILLANCE_LIST_TABLE_MAX_HEIGHT_DEFAULT = 'calc(70vh - 80px)';
  6. export const SURVEILLANCE_LIST_TABLE_MAX_HEIGHT_PERMISSION = 'calc(70vh - 130px)';
  7. // 基础表格样式配置
  8. const TABLE_OPTIONS = {
  9. emptyText: '暂无数据',
  10. loading: true,
  11. };
  12. // 监控调阅记录表格样式配置
  13. export const SURVEILLANCE_LIST_TABLE_OPTIONS = {
  14. ...TABLE_OPTIONS,
  15. };
  16. // 监控调阅记录表格列配置
  17. export const SURVEILLANCE_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: 'userName',
  28. align: 'left',
  29. minWidth: '100px',
  30. },
  31. {
  32. label: '工号',
  33. prop: 'staffNo',
  34. align: 'left',
  35. minWidth: '100px',
  36. },
  37. {
  38. label: '部门',
  39. prop: 'deptName',
  40. align: 'left',
  41. minWidth: '150px',
  42. },
  43. {
  44. label: '调阅位置',
  45. prop: 'accessLocation',
  46. align: 'left',
  47. minWidth: '150px',
  48. },
  49. {
  50. label: '调阅时段',
  51. prop: 'accessTimePeriod',
  52. align: 'left',
  53. minWidth: '200px',
  54. slot: 'accessTimePeriod',
  55. },
  56. {
  57. label: '是否拷贝',
  58. prop: 'isCopy',
  59. align: 'center',
  60. width: '110px',
  61. slot: 'isCopy',
  62. },
  63. {
  64. label: '审批单',
  65. prop: 'approvalForm',
  66. align: 'center',
  67. width: '180px',
  68. slot: 'approvalForm',
  69. },
  70. {
  71. label: '调阅状态',
  72. prop: 'accessStatus',
  73. align: 'center',
  74. width: '110px',
  75. slot: 'accessStatus',
  76. },
  77. {
  78. label: '记录人',
  79. prop: 'createdByName',
  80. align: 'left',
  81. minWidth: '100px',
  82. },
  83. {
  84. label: '操作',
  85. prop: 'action',
  86. align: 'left',
  87. slot: 'action',
  88. fixed: 'right',
  89. width: '128px',
  90. },
  91. ];