judges.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. export const tableOption = {
  2. addBtn: false,
  3. editBtn: false,
  4. border: true,
  5. index: true,
  6. indexLabel: '序号',
  7. stripe: true,
  8. menuAlign: 'center',
  9. align: 'center',
  10. refreshBtn: false,
  11. showClomnuBtn: false,
  12. searchMenuSpan: 6,
  13. searchSize: 'mini',
  14. menuWidth: 120,
  15. column: [{
  16. fixed: true,
  17. label: 'id',
  18. prop: 'id',
  19. hide: true,
  20. editDisplay: false,
  21. addDisplay: false
  22. },{
  23. label: '头像',
  24. prop: 'picUrl',
  25. type: 'upload',
  26. listType: 'picture-img',
  27. span:24,
  28. propsHttp: {
  29. // home类似axios中的baseurl会拼接到返回的url前面
  30. res:'data',
  31. },
  32. canvasOption: {
  33. text: 'avue',
  34. ratio: 0.1
  35. },
  36. tip: '只能上传jpg/png用户头像,且不超过500kb',
  37. action: '/project/upload',
  38. }, {
  39. fixed: true,
  40. label: '姓名',
  41. prop: 'name',
  42. search: true,
  43. searchSpan: 8,
  44. rules: [{
  45. required: true,
  46. message: '请输入比赛名称'
  47. },
  48. {
  49. min: 3,
  50. max: 100,
  51. message: '长度在 3 到 20 个字符',
  52. trigger: 'blur'
  53. }
  54. ]
  55. }, {
  56. label: '电话',
  57. prop: 'phone',
  58. value: '',
  59. }, {
  60. label: '出生日期',
  61. prop: 'birthday',
  62. type: 'date',
  63. value: '',
  64. format: 'yyyy-MM-dd',
  65. valueFormat: 'yyyy-MM-dd ',
  66. showColumn: false
  67. },{
  68. label: '工作单位',
  69. prop: 'workUnit',
  70. },{
  71. label: '工作年限',
  72. prop: 'workYear',
  73. addDisplay: true,
  74. editDisplay: true,
  75. }, {
  76. label: '学历',
  77. prop: 'recordSchool',
  78. }, {
  79. label: '专家介绍',
  80. span: 24,
  81. prop: 'comment',
  82. type: 'textarea'
  83. }, {
  84. label: '擅长领域',
  85. span: 24,
  86. prop: 'engageProfession',
  87. type: 'textarea'
  88. }]
  89. }
  90. export const tableDictItemOption = {
  91. border: true,
  92. index: true,
  93. indexLabel: '序号',
  94. stripe: true,
  95. menuAlign: 'center',
  96. align: 'center',
  97. refreshBtn: false,
  98. showClomnuBtn: false,
  99. searchSize: 'mini',
  100. column: [{
  101. fixed: true,
  102. label: 'id',
  103. prop: 'id',
  104. hide: true,
  105. editDisplay: false,
  106. addDisplay: false
  107. }, {
  108. label: '赛道名称',
  109. prop: 'name',
  110. }, {
  111. width: 150,
  112. label: '最大项目数',
  113. prop: 'maxNum',
  114. rules: [{
  115. required: true,
  116. message: '请输入数据值',
  117. trigger: 'blur'
  118. }]
  119. },]
  120. }