tables.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. import type { TableColumnProps } from '@/types/basic-table';
  2. // 基础表格样式配置
  3. export const TABLE_OPTIONS = {
  4. emptyText: '暂无数据',
  5. loading: true,
  6. maxHeight: 'calc(70vh - 150px)',
  7. };
  8. // 隐患台账列表字段:隐患问题、问题主要原因、入账时间、任务来源、整改要求、隐患问题类别、当前流程节点、状态、操作
  9. export const HIDDEN_DANGER_TABLE_COLUMNS: TableColumnProps[] = [
  10. {
  11. label: '编号',
  12. type: 'index',
  13. align: 'center',
  14. width: '80px',
  15. },
  16. {
  17. label: '隐患问题',
  18. prop: 'dangerProblem',
  19. align: 'left',
  20. minWidth: '200px',
  21. },
  22. {
  23. label: '问题主要原因',
  24. prop: 'reasonName',
  25. align: 'left',
  26. minWidth: '140px',
  27. },
  28. {
  29. label: '入账时间',
  30. prop: 'createdAt',
  31. align: 'left',
  32. minWidth: '160px',
  33. },
  34. {
  35. label: '任务来源',
  36. prop: 'taskSource',
  37. align: 'left',
  38. minWidth: '120px',
  39. },
  40. {
  41. label: '整改要求',
  42. prop: 'rectificationRequirement',
  43. align: 'left',
  44. minWidth: '200px',
  45. },
  46. {
  47. label: '隐患问题类别',
  48. prop: 'typeName',
  49. align: 'left',
  50. minWidth: '150px',
  51. },
  52. {
  53. label: '当前流程节点',
  54. // prop: 'currentNode',
  55. slot: 'currentNode',
  56. align: 'center',
  57. minWidth: '150px',
  58. },
  59. {
  60. label: '状态',
  61. prop: 'statusName',
  62. slot: 'status',
  63. align: 'center',
  64. minWidth: '100px',
  65. },
  66. {
  67. label: '操作',
  68. prop: 'action',
  69. slot: 'action',
  70. fixed: 'right',
  71. width: '300px',
  72. align: 'left',
  73. },
  74. ];