reportManager.data.ts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. import { BasicColumn } from '/@/components/Table';
  2. import { FormSchema } from '/@/components/Table';
  3. import { render } from '/@/utils/common/renderUtils';
  4. export const columns: BasicColumn[] = [
  5. {
  6. title: '主键',
  7. dataIndex: 'id',
  8. ifShow: false,
  9. },
  10. {
  11. title: '创建人',
  12. dataIndex: 'createBy',
  13. width: 100,
  14. },
  15. {
  16. title: '创建日期',
  17. dataIndex: 'createTime',
  18. width: 160,
  19. // sorter:true,
  20. },
  21. {
  22. title: '文件名称',
  23. dataIndex: 'fileName',
  24. width: 160,
  25. },
  26. // {
  27. // title: '文件路径',
  28. // dataIndex: 'filePath',
  29. // width: 160,
  30. // },
  31. // {
  32. // title: '所属部门',
  33. // dataIndex: 'orgCode',
  34. // width: 160,
  35. // },
  36. {
  37. title: '报表类型',
  38. dataIndex: 'reportType',
  39. width: 160,
  40. customRender: ({ text }) => {
  41. return render.renderDict(text, 'reportType');
  42. },
  43. },
  44. {
  45. title: '报表版本',
  46. dataIndex: 'reportVersion',
  47. width: 100,
  48. },
  49. // {
  50. // title: '所属矿编号',
  51. // dataIndex: 'sysOrgCode',
  52. // width: 100,
  53. // },
  54. ];
  55. // export const searchFormSchema: FormSchema[] = [
  56. // {
  57. // label: '报表类型',
  58. // field: 'reportType',
  59. // component: 'JDictSelectTag',
  60. // componentProps: {
  61. // dictCode: 'reportType',
  62. // placeholder: '请选择报表类型',
  63. // },
  64. // colProps: { span: 6 },
  65. // },
  66. // ];
  67. //报表历史记录
  68. export const columnsHis: BasicColumn[] = [
  69. {
  70. title: '主键',
  71. dataIndex: 'id',
  72. ifShow: false,
  73. },
  74. {
  75. title: '创建人',
  76. dataIndex: 'createBy',
  77. width: 100,
  78. },
  79. {
  80. title: '创建日期',
  81. dataIndex: 'createTime',
  82. width: 160,
  83. },
  84. {
  85. title: '文件名称',
  86. dataIndex: 'fileName',
  87. width: 160,
  88. },
  89. // {
  90. // title: '文件路径',
  91. // dataIndex: 'filePath',
  92. // width: 160,
  93. // },
  94. {
  95. title: '报表类型',
  96. dataIndex: 'reportType',
  97. width: 100,
  98. },
  99. {
  100. title: '报表版本',
  101. dataIndex: 'reportVersion',
  102. width: 100,
  103. },
  104. ];