comment.data.ts 1006 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import { BasicColumn } from '/@/components/Table';
  2. export const columns: BasicColumn[] = [
  3. {
  4. title: '序号',
  5. width: 60,
  6. align: 'center',
  7. customRender: ({ index }: { index: number }) => `${index + 1}`
  8. },
  9. {
  10. title: '当前环节',
  11. dataIndex: 'name',
  12. key: 'name',
  13. align: 'center',
  14. ellipsis: true,
  15. },
  16. {
  17. title: '审批人',
  18. dataIndex: 'username',
  19. key: 'username',
  20. align: 'center',
  21. ellipsis: true,
  22. },
  23. {
  24. title: '审批结果',
  25. dataIndex: 'deleteReason',
  26. key: 'deleteReason',
  27. align: 'center',
  28. ellipsis: true,
  29. },
  30. {
  31. title: '审批开始时间',
  32. dataIndex: 'startTime',
  33. key: 'startTime',
  34. align: 'center',
  35. ellipsis: true,
  36. width: 150,
  37. },
  38. {
  39. title: '审批结束时间',
  40. dataIndex: 'endTime',
  41. key: 'endTime',
  42. align: 'center',
  43. ellipsis: true,
  44. width: 150
  45. },
  46. {
  47. title: '状态',
  48. dataIndex: 'status',
  49. key: 'status',
  50. align: 'center',
  51. ellipsis: true,
  52. },
  53. ]