RenderRulesDemo.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. import MxConst from "@/common/MxConst";
  2. export default [
  3. {
  4. enumRuleCategory: MxConst.enum.ai.ruleCategory.enroll.value,
  5. fieldName: 'scoreUnion',
  6. enumInputType: MxConst.enum.ai.inputType.text,
  7. required: undefined,
  8. min: undefined,
  9. max: undefined,
  10. regex: undefined,
  11. dictOptions: '',
  12. options: null,
  13. label: '文本输入',
  14. description: '简短描述1',
  15. placeholder: null,
  16. tips: '此处呈现特殊说明1'
  17. },
  18. {
  19. enumRuleCategory: MxConst.enum.ai.ruleCategory.enroll.value,
  20. fieldName: 'scoreBase',
  21. enumInputType: MxConst.enum.ai.inputType.number,
  22. required: undefined,
  23. min: undefined,
  24. max: undefined,
  25. regex: undefined,
  26. dictOptions: '',
  27. options: null,
  28. label: '数值输入',
  29. description: null,
  30. placeholder: null,
  31. tips: null
  32. },
  33. {
  34. enumRuleCategory: MxConst.enum.ai.ruleCategory.enroll.value,
  35. fieldName: 'scoreRate',
  36. enumInputType: MxConst.enum.ai.inputType.number,
  37. required: undefined,
  38. min: 0,
  39. max: 100,
  40. regex: undefined,
  41. dictOptions: '',
  42. options: null,
  43. label: '得分率',
  44. description: '%',
  45. placeholder: null,
  46. tips: '得分率说明'
  47. },
  48. {
  49. enumRuleCategory: MxConst.enum.ai.ruleCategory.enroll.value,
  50. fieldName: 'scoreSkill',
  51. enumInputType: MxConst.enum.ai.inputType.score,
  52. required: undefined,
  53. min: undefined,
  54. max: undefined,
  55. regex: undefined,
  56. dictOptions: '',
  57. options: [300, 450],
  58. label: '分数输入',
  59. description: null,
  60. placeholder: null,
  61. tips: null
  62. },
  63. {
  64. enumRuleCategory: MxConst.enum.ai.ruleCategory.special.value,
  65. fieldName: 'pickerField',
  66. enumInputType: MxConst.enum.ai.inputType.picker,
  67. required: undefined,
  68. min: undefined,
  69. max: undefined,
  70. regex: undefined,
  71. dictOptions: '',
  72. options: ['选项A', '选项B', '选项C'],
  73. label: '单项选择',
  74. description: null,
  75. placeholder: null,
  76. tips: null
  77. },
  78. {
  79. enumRuleCategory: MxConst.enum.ai.ruleCategory.special.value,
  80. fieldName: 'eyesightL',
  81. enumInputType: MxConst.enum.ai.inputType.eyesight,
  82. required: undefined,
  83. min: undefined,
  84. max: undefined,
  85. regex: undefined,
  86. dictOptions: '',
  87. options: null,
  88. label: '左眼视力',
  89. description: null,
  90. placeholder: null,
  91. tips: null
  92. },
  93. {
  94. enumRuleCategory: MxConst.enum.ai.ruleCategory.special.value,
  95. fieldName: 'nation',
  96. enumInputType: MxConst.enum.ai.inputType.picker,
  97. required: undefined,
  98. min: undefined,
  99. max: undefined,
  100. regex: undefined,
  101. dictOptions: 'multiple_way_nation',
  102. options: null,
  103. label: '词典选择',
  104. description: null,
  105. placeholder: null,
  106. tips: null
  107. },
  108. {
  109. enumRuleCategory: MxConst.enum.ai.ruleCategory.special.value,
  110. fieldName: 'gender',
  111. enumInputType: MxConst.enum.ai.inputType.radio,
  112. required: undefined,
  113. min: undefined,
  114. max: undefined,
  115. regex: undefined,
  116. dictOptions: 'multiple_way_gender',
  117. options: null,
  118. label: '单选按钮',
  119. description: null,
  120. placeholder: null,
  121. tips: null
  122. },
  123. {
  124. enumRuleCategory: MxConst.enum.ai.ruleCategory.special.value,
  125. fieldName: 'disease',
  126. enumInputType: MxConst.enum.ai.inputType.checkbox,
  127. required: undefined,
  128. min: 2,
  129. max: 5,
  130. regex: undefined,
  131. dictOptions: 'multiple_way_disease',
  132. options: null,
  133. label: '复选按钮',
  134. description: null,
  135. placeholder: null,
  136. tips: null
  137. },
  138. ]