equip.data.ts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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 passwordFormSchema: FormSchema[] = [
  27. {
  28. label: '值',
  29. field: 'devicekind',
  30. component: 'Input',
  31. show: false,
  32. },
  33. {
  34. label: '名称',
  35. field: 'itemText',
  36. component: 'Input',
  37. },
  38. {
  39. label: '是否校验密码',
  40. field: 'bpass',
  41. component: 'RadioGroup',
  42. defaultValue: 0,
  43. componentProps: {
  44. options: [
  45. {
  46. label: '是',
  47. value: 1,
  48. },
  49. {
  50. label: '否',
  51. value: 0,
  52. },
  53. ],
  54. },
  55. },
  56. {
  57. label: '旧密码',
  58. field: 'oldPassword',
  59. component: 'InputPassword',
  60. },
  61. {
  62. label: '新密码',
  63. field: 'password',
  64. component: 'InputPassword',
  65. },
  66. ];
  67. export const formSchema: FormSchema[] = [
  68. {
  69. label: '',
  70. field: 'id',
  71. component: 'Input',
  72. show: false,
  73. },
  74. {
  75. label: '',
  76. field: 'dictId',
  77. component: 'Input',
  78. show: false,
  79. },
  80. {
  81. label: '名称',
  82. field: 'itemText',
  83. component: 'Input',
  84. },
  85. {
  86. label: '数据值',
  87. field: 'itemValue',
  88. component: 'Input',
  89. },
  90. // {
  91. // label: '描述',
  92. // field: 'description',
  93. // component: 'Input',
  94. // },
  95. {
  96. label: '所属系统',
  97. field: 'description',
  98. component: 'JDictSelectTag',
  99. componentProps: {
  100. dictCode: 'kindtype ',
  101. placeholder: '请选择所属系统',
  102. },
  103. // colProps: { span: 6 },
  104. },
  105. {
  106. label: '排序值',
  107. field: 'sortOrder',
  108. suffix: '值越小越靠前',
  109. component: 'InputNumber',
  110. },
  111. ];