BaseProjectArchive.data.ts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. import {BasicColumn} from '/@/components/Table';
  2. import {FormSchema} from '/@/components/Table';
  3. //列表数据
  4. export const columns: BasicColumn[] = [
  5. {
  6. title: '编码(code)',
  7. align:"center",
  8. dataIndex: 'code'
  9. },
  10. {
  11. title: '名称(name)',
  12. align:"center",
  13. dataIndex: 'name'
  14. },
  15. {
  16. title: '客户(customer)',
  17. align:"center",
  18. dataIndex: 'customerId_dictText'
  19. },
  20. {
  21. title: '备注(notes)',
  22. align:"center",
  23. dataIndex: 'notes'
  24. },
  25. {
  26. title: '创建时间(create time)',
  27. align:"center",
  28. dataIndex: 'createTime'
  29. },
  30. {
  31. title: '创建人(create by)',
  32. align:"center",
  33. dataIndex: 'createBy'
  34. },
  35. ];
  36. //查询数据
  37. export const searchFormSchema: FormSchema[] = [
  38. {
  39. label: "编码(code)",
  40. field: 'code',
  41. component: 'Input',
  42. componentProps:{
  43. },
  44. //colProps: {span: 6},
  45. },
  46. {
  47. label: "名称(name)",
  48. field: 'name',
  49. component: 'Input',
  50. //colProps: {span: 6},
  51. },
  52. {
  53. label: "客户(customer)",
  54. field: 'customerId',
  55. component: 'JDictSelectTag',
  56. componentProps:{
  57. dictCode: 'customer',
  58. },
  59. //colProps: {span: 6},
  60. },
  61. {
  62. label: "创建时间(create time)",
  63. field: "createTime",
  64. component: 'RangePicker',
  65. labelWidth: 150,
  66. componentProps: {
  67. valueType: 'Date',
  68. showTime:true
  69. },
  70. //colProps: {span: 6},
  71. },
  72. {
  73. label: "创建人(create by)",
  74. field: 'createBy',
  75. component: 'Input',
  76. labelWidth: 120,
  77. //colProps: {span: 6},
  78. },
  79. ];