fileDetail.data.ts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. import { BasicColumn } from '/@/components/Table';
  2. import { FormSchema } from '/@/components/Table';
  3. import { TreeItem } from '/@/components/Tree/index';
  4. //tree
  5. export const treeData: TreeItem[] = [
  6. {
  7. title: '全部',
  8. key: '0-0',
  9. icon: 'home|svg',
  10. children: [
  11. { title: '台账类文件', icon: 'home|svg', key: '0-0-1' },
  12. { title: '法律法规', icon: 'home|svg', key: '0-0-2' },
  13. { title: '其他', icon: 'home|svg', key: '0-0-3' },
  14. ],
  15. },
  16. ];
  17. export const searchFormSchema: FormSchema[] = [
  18. {
  19. label: '文件名称',
  20. field: 'fileName',
  21. component: 'Input',
  22. colProps: { span: 8 },
  23. },
  24. ];
  25. export const columns: BasicColumn[] = [
  26. {
  27. title: '文件名称',
  28. dataIndex: 'fileName',
  29. width: 260,
  30. },
  31. {
  32. title: '文件类型',
  33. dataIndex: 'type',
  34. },
  35. {
  36. title: '文件格式',
  37. dataIndex: 'fileSuffix',
  38. },
  39. {
  40. title: '创建人',
  41. dataIndex: 'createUser',
  42. },
  43. {
  44. title: '创建时间',
  45. dataIndex: 'updateUser',
  46. },
  47. {
  48. title: '修改人',
  49. dataIndex: 'updateUser',
  50. },
  51. {
  52. title: '修改时间',
  53. dataIndex: 'updateDt',
  54. },
  55. ];
  56. export const formSchema: FormSchema[] = [
  57. {
  58. label: '',
  59. field: 'id',
  60. component: 'Input',
  61. show: false,
  62. },
  63. // {
  64. // label: '点表类型',
  65. // field: 'devicetype',
  66. // component: 'ApiSelect',
  67. // componentProps: ({ formModel, formActionType }) => {
  68. // // debugger;
  69. // return {
  70. // // options: provincesOptions,
  71. // componentProps: {},
  72. // api: (params) => defHttp.get({ url: `/sys/dict/getDictItems/${formModel.devicekind + 'kind'}` }, params),
  73. // resultField: 'result',
  74. // labelField: 'title',
  75. // valueField: 'value',
  76. // };
  77. // },
  78. // },
  79. {
  80. label: '文件名称',
  81. field: 'fileName',
  82. component: 'Input',
  83. },
  84. {
  85. label: '文件类型',
  86. field: 'type',
  87. component: 'JDictSelectTag',
  88. componentProps: {
  89. dictCode: 'valuetype',
  90. placeholder: '请选择文件类型',
  91. stringToNumber: true,
  92. },
  93. },
  94. {
  95. label: '文件格式',
  96. field: 'fileSuffix',
  97. component: 'JDictSelectTag',
  98. componentProps: {
  99. dictCode: 'valuetype',
  100. placeholder: '请选择文件来源',
  101. stringToNumber: true,
  102. },
  103. },
  104. {
  105. label: '文件路径',
  106. field: 'fileServerPath',
  107. component: 'Input',
  108. },
  109. ];