setting.data.ts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. import { BasicColumn, FormSchema } from '/@/components/Table';
  2. import { ThemeEnum } from '/@/enums/appEnum';
  3. export const columns: BasicColumn[] = [
  4. {
  5. title: '系统标题',
  6. width: 150,
  7. dataIndex: 'systemTitle',
  8. },
  9. {
  10. title: 'logo',
  11. dataIndex: 'logoIcon',
  12. helpMessage: ['这是简单模式的图片列表', '只会显示一张在表格中', '但点击可预览多张图片'],
  13. width: 140,
  14. },
  15. {
  16. title: '系统风格',
  17. dataIndex: 'defaultTheme',
  18. width: 140,
  19. },
  20. {
  21. title: '登录背景图',
  22. dataIndex: 'loginBack',
  23. helpMessage: ['这是简单模式的图片列表', '只会显示一张在表格中', '但点击可预览多张图片'],
  24. width: 140,
  25. },
  26. {
  27. title: '操作',
  28. width: 150,
  29. dataIndex: 'operation',
  30. },
  31. ];
  32. export const formSchema: FormSchema[] = [
  33. {
  34. field: 'id',
  35. label: 'id',
  36. component: 'Input',
  37. show: false,
  38. },
  39. {
  40. field: 'systemTitle',
  41. label: '系统标题',
  42. required: true,
  43. component: 'Input',
  44. },
  45. {
  46. field: 'logoIcon',
  47. label: 'logo',
  48. component: 'JImageUpload',
  49. componentProps: {
  50. fileMax: 1,
  51. },
  52. },
  53. {
  54. field: 'defaultTheme',
  55. label: '系统风格',
  56. component: 'RadioGroup',
  57. defaultValue: 1,
  58. required: true,
  59. componentProps: {
  60. options: [
  61. {
  62. label: '6.0',
  63. value: 'styleOne',
  64. },
  65. {
  66. label: '5.5',
  67. value: 'styleTwo',
  68. },
  69. {
  70. label: '默认(开发中)',
  71. value: ThemeEnum.VENT1,
  72. },
  73. {
  74. label: '明亮(开发中)',
  75. value: ThemeEnum.LIGHT,
  76. },
  77. {
  78. label: '深色(开发中)',
  79. value: ThemeEnum.DARK,
  80. },
  81. {
  82. label: '深蓝(开发中)',
  83. value: ThemeEnum.DEEPBLUE,
  84. },
  85. ],
  86. },
  87. },
  88. {
  89. field: 'loginBack',
  90. label: '登录背景图',
  91. component: 'JImageUpload',
  92. componentProps: {
  93. fileMax: 1,
  94. },
  95. },
  96. {
  97. field: 'voiceAlarmType',
  98. label: '语音报警协议类型',
  99. component: 'Input',
  100. },
  101. {
  102. field: 'voiceAlarmAddress',
  103. label: '语音报警服务地址',
  104. component: 'Input',
  105. },
  106. ];