FileAttachments.data.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. import {BasicColumn} from '/@/components/Table';
  2. import {FormSchema} from '/@/components/Table';
  3. import { rules} from '/@/utils/helper/validator';
  4. import { render } from '/@/utils/common/renderUtils';
  5. import { getWeekMonthQuarterYear } from '/@/utils';
  6. //列表数据
  7. export const columns: BasicColumn[] = [
  8. {
  9. title: '文件名称',
  10. align:"center",
  11. dataIndex: 'fileName'
  12. },
  13. {
  14. title: '文件地址',
  15. align:"center",
  16. dataIndex: 'fileAddress'
  17. },
  18. {
  19. title: '文件id',
  20. align:"center",
  21. dataIndex: 'fileId'
  22. },
  23. ];
  24. //查询数据
  25. export const searchFormSchema: FormSchema[] = [
  26. ];
  27. //表单数据
  28. export const formSchema: FormSchema[] = [
  29. {
  30. label: '文件名称',
  31. field: 'fileName',
  32. component: 'Input',
  33. },
  34. {
  35. label: '文件地址',
  36. field: 'fileAddress',
  37. component: 'Input',
  38. },
  39. {
  40. label: '文件id',
  41. field: 'fileId',
  42. component: 'Input',
  43. },
  44. // TODO 主键隐藏字段,目前写死为ID
  45. {
  46. label: '',
  47. field: 'id',
  48. component: 'Input',
  49. show: false
  50. },
  51. ];
  52. // 高级查询数据
  53. export const superQuerySchema = {
  54. fileName: {title: '文件名称',order: 0,view: 'text', type: 'string',},
  55. fileAddress: {title: '文件地址',order: 1,view: 'text', type: 'string',},
  56. fileId: {title: '文件id',order: 2,view: 'text', type: 'string',},
  57. };
  58. /**
  59. * 流程表单调用这个方法获取formSchema
  60. * @param param
  61. */
  62. export function getBpmFormSchema(_formData): FormSchema[]{
  63. // 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
  64. return formSchema;
  65. }