account.data.ts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. import { BasicColumn } from '/@/components/Table';
  2. import { FormSchema } from '/@/components/Table';
  3. export const columns: BasicColumn[] = [
  4. {
  5. title: 'ID',
  6. dataIndex: 'id',
  7. width: 80,
  8. },
  9. {
  10. title: '用户名',
  11. dataIndex: 'account',
  12. width: 120,
  13. },
  14. {
  15. title: '昵称',
  16. dataIndex: 'nickname',
  17. width: 120,
  18. },
  19. {
  20. title: '邮箱',
  21. dataIndex: 'email',
  22. width: 200,
  23. },
  24. {
  25. title: '更新时间',
  26. dataIndex: 'updateTime',
  27. width: 180,
  28. },
  29. {
  30. title: '角色',
  31. dataIndex: 'role',
  32. width: 200,
  33. },
  34. {
  35. title: '备注',
  36. dataIndex: 'remark',
  37. width: 200,
  38. },
  39. ];
  40. export const searchFormSchema: FormSchema[] = [
  41. {
  42. field: 'account',
  43. label: '用户名',
  44. component: 'Input',
  45. colProps: { span: 8 },
  46. },
  47. {
  48. field: 'nickname',
  49. label: '昵称',
  50. component: 'Input',
  51. colProps: { span: 8 },
  52. },
  53. ];
  54. export const accountFormSchema: FormSchema[] = [
  55. {
  56. field: 'account',
  57. label: '用户名',
  58. component: 'Input',
  59. required: true,
  60. },
  61. {
  62. field: 'nickname',
  63. label: '昵称',
  64. component: 'Input',
  65. required: true,
  66. },
  67. {
  68. label: '邮箱',
  69. field: 'email',
  70. component: 'Input',
  71. required: true,
  72. },
  73. // TODO
  74. {
  75. label: '角色',
  76. field: 'role',
  77. component: 'Input',
  78. required: true,
  79. },
  80. {
  81. label: '备注',
  82. field: 'remark',
  83. component: 'InputTextArea',
  84. },
  85. ];