equip.data.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import { BasicColumn } from '/@/components/Table';
  2. import { FormSchema } from '/@/components/Table';
  3. export const columns: BasicColumn[] = [
  4. {
  5. title: '类型名称',
  6. dataIndex: 'itemText',
  7. align: 'left',
  8. width: 120,
  9. },
  10. {
  11. title: '值',
  12. dataIndex: 'itemValue',
  13. width: 100,
  14. },
  15. {
  16. title: '描述',
  17. dataIndex: 'description',
  18. width: 100,
  19. },
  20. {
  21. title: '排序',
  22. dataIndex: 'sortOrder',
  23. width: 100,
  24. },
  25. ];
  26. export const formSchema: FormSchema[] = [
  27. {
  28. label: '',
  29. field: 'id',
  30. component: 'Input',
  31. show: false,
  32. },
  33. {
  34. label: '',
  35. field: 'dictId',
  36. component: 'Input',
  37. show: false,
  38. },
  39. {
  40. label: '名称',
  41. field: 'itemText',
  42. component: 'Input',
  43. },
  44. {
  45. label: '数据值',
  46. field: 'itemValue',
  47. component: 'Input',
  48. },
  49. {
  50. label: '描述',
  51. field: 'description',
  52. component: 'Input',
  53. },
  54. {
  55. label: '排序值',
  56. field: 'sortOrder',
  57. suffix: '值越小越靠前',
  58. component: 'InputNumber',
  59. },
  60. ];