tables.ts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * @Author: liuJie
  3. * @Date: 2026-01-27 16:29:28
  4. * @LastEditors: liuJie
  5. * @LastEditTime: 2026-04-10 14:03:52
  6. * @Describe: file describe
  7. */
  8. import type { TableColumnProps } from '@/types/basic-table';
  9. // 基础表格样式配置
  10. export const TABLE_OPTIONS = {
  11. emptyText: '暂无数据',
  12. loading: true,
  13. maxHeight: 'calc(70vh - 150px)',
  14. };
  15. export const TABLE_COLUMNS: TableColumnProps[] = [
  16. {
  17. label: '编号',
  18. type: 'index',
  19. align: 'center',
  20. width: '80px',
  21. },
  22. {
  23. label: '员工姓名',
  24. prop: 'employeeName',
  25. align: 'center',
  26. minWidth: '120px',
  27. },
  28. {
  29. label: '员工工号',
  30. prop: 'employeeId',
  31. align: 'center',
  32. minWidth: '120px',
  33. },
  34. {
  35. label: '状态',
  36. prop: 'status',
  37. slot: 'status',
  38. align: 'center',
  39. minWidth: '90px',
  40. },
  41. {
  42. label: '组织名称',
  43. prop: 'orgName',
  44. align: 'center',
  45. minWidth: '140px',
  46. },
  47. {
  48. label: '岗位名称',
  49. prop: 'jobName',
  50. align: 'center',
  51. minWidth: '150px',
  52. showOverflowTooltip: true,
  53. },
  54. {
  55. label: '岗位职责',
  56. prop: 'jobResp',
  57. align: 'center',
  58. minWidth: '150px',
  59. showOverflowTooltip: true,
  60. },
  61. {
  62. label: '添加时间',
  63. prop: 'createdAt',
  64. align: 'center',
  65. minWidth: '140px',
  66. },
  67. {
  68. label: '操作',
  69. prop: 'action',
  70. slot: 'action',
  71. fixed: 'right',
  72. width: '180px',
  73. align: 'left',
  74. },
  75. ];