员工管理——新增角色.txt 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. {
  2. "fields": [{
  3. "__config__": {
  4. "label": "",
  5. "showLabel": true,
  6. "changeTag": true,
  7. "labelWidth": 1,
  8. "tag": "el-button",
  9. "tagIcon": "button",
  10. "span": 21,
  11. "layout": "colFormItem",
  12. "document": "https://element.eleme.cn/#/zh-CN/component/button",
  13. "formId": 101,
  14. "renderKey": "1011613805763485"
  15. },
  16. "__slot__": {
  17. "default": "员工管理》新增角色"
  18. },
  19. "type": "text",
  20. "icon": "el-icon-user-solid",
  21. "round": false,
  22. "size": "medium",
  23. "plain": false,
  24. "circle": false,
  25. "disabled": false,
  26. "__vModel__": "field101"
  27. }, {
  28. "__config__": {
  29. "label": "角色名称",
  30. "labelWidth": null,
  31. "showLabel": true,
  32. "changeTag": true,
  33. "tag": "el-input",
  34. "tagIcon": "input",
  35. "required": true,
  36. "layout": "colFormItem",
  37. "span": 13,
  38. "document": "https://element.eleme.cn/#/zh-CN/component/input",
  39. "regList": [],
  40. "formId": 102,
  41. "renderKey": "1021613805837891"
  42. },
  43. "__slot__": {
  44. "prepend": "",
  45. "append": ""
  46. },
  47. "placeholder": "请输入角色名称",
  48. "style": {
  49. "width": "100%"
  50. },
  51. "clearable": true,
  52. "prefix-icon": "",
  53. "suffix-icon": "",
  54. "maxlength": null,
  55. "show-word-limit": false,
  56. "readonly": false,
  57. "disabled": false,
  58. "__vModel__": "field102"
  59. }, {
  60. "__config__": {
  61. "label": "角色编号",
  62. "labelWidth": null,
  63. "showLabel": true,
  64. "changeTag": true,
  65. "tag": "el-input",
  66. "tagIcon": "input",
  67. "required": true,
  68. "layout": "colFormItem",
  69. "span": 13,
  70. "document": "https://element.eleme.cn/#/zh-CN/component/input",
  71. "regList": [],
  72. "formId": 103,
  73. "renderKey": "1031613805865036"
  74. },
  75. "__slot__": {
  76. "prepend": "",
  77. "append": ""
  78. },
  79. "placeholder": "请输入角色编号",
  80. "style": {
  81. "width": "100%"
  82. },
  83. "clearable": true,
  84. "prefix-icon": "",
  85. "suffix-icon": "",
  86. "maxlength": null,
  87. "show-word-limit": false,
  88. "readonly": false,
  89. "disabled": false,
  90. "__vModel__": "field103"
  91. }, {
  92. "__config__": {
  93. "label": "角色备注",
  94. "labelWidth": null,
  95. "showLabel": true,
  96. "changeTag": true,
  97. "tag": "el-input",
  98. "tagIcon": "input",
  99. "required": false,
  100. "layout": "colFormItem",
  101. "span": 13,
  102. "document": "https://element.eleme.cn/#/zh-CN/component/input",
  103. "regList": [],
  104. "formId": 104,
  105. "renderKey": "1041613805894636"
  106. },
  107. "__slot__": {
  108. "prepend": "",
  109. "append": ""
  110. },
  111. "placeholder": "请输入角色备注",
  112. "style": {
  113. "width": "100%"
  114. },
  115. "clearable": true,
  116. "prefix-icon": "",
  117. "suffix-icon": "",
  118. "maxlength": null,
  119. "show-word-limit": false,
  120. "readonly": false,
  121. "disabled": false,
  122. "__vModel__": "field104"
  123. }, {
  124. "__config__": {
  125. "label": "菜单权限",
  126. "url": "https://www.fastmock.site/mock/f8d7a54fb1e60561e2f720d5a810009d/fg/cascaderList",
  127. "method": "get",
  128. "dataPath": "list",
  129. "dataConsumer": "options",
  130. "showLabel": true,
  131. "labelWidth": null,
  132. "tag": "el-cascader",
  133. "tagIcon": "cascader",
  134. "layout": "colFormItem",
  135. "defaultValue": [],
  136. "dataType": "dynamic",
  137. "span": 13,
  138. "required": true,
  139. "regList": [],
  140. "changeTag": true,
  141. "document": "https://element.eleme.cn/#/zh-CN/component/cascader",
  142. "formId": 105,
  143. "renderKey": "1051613805913726"
  144. },
  145. "options": [{
  146. "id": 1,
  147. "value": 1,
  148. "label": "动态选项1",
  149. "children": [{
  150. "id": 2,
  151. "value": 2,
  152. "label": "动态选项1-1"
  153. }]
  154. }],
  155. "placeholder": "请选择菜单权限",
  156. "style": {
  157. "width": "100%"
  158. },
  159. "props": {
  160. "props": {
  161. "multiple": false,
  162. "label": "label",
  163. "value": "value",
  164. "children": "children"
  165. }
  166. },
  167. "show-all-levels": true,
  168. "disabled": false,
  169. "clearable": true,
  170. "filterable": false,
  171. "separator": "/",
  172. "__vModel__": "field105"
  173. }, {
  174. "__config__": {
  175. "layout": "rowFormItem",
  176. "tagIcon": "row",
  177. "layoutTree": true,
  178. "document": "https://element.eleme.cn/#/zh-CN/component/layout#row-attributes",
  179. "span": 13,
  180. "formId": 111,
  181. "renderKey": "1111613813548097",
  182. "componentName": "row111",
  183. "children": [{
  184. "__config__": {
  185. "label": "",
  186. "showLabel": true,
  187. "changeTag": true,
  188. "labelWidth": null,
  189. "tag": "el-button",
  190. "tagIcon": "button",
  191. "span": 4,
  192. "layout": "colFormItem",
  193. "document": "https://element.eleme.cn/#/zh-CN/component/button",
  194. "formId": 106,
  195. "renderKey": "1061613805933260"
  196. },
  197. "__slot__": {
  198. "default": "确定"
  199. },
  200. "type": "primary",
  201. "icon": "el-icon-check",
  202. "round": false,
  203. "size": "mini",
  204. "plain": false,
  205. "circle": false,
  206. "disabled": false,
  207. "__vModel__": "field106"
  208. }, {
  209. "__config__": {
  210. "label": "",
  211. "showLabel": true,
  212. "changeTag": true,
  213. "labelWidth": 100,
  214. "tag": "el-button",
  215. "tagIcon": "button",
  216. "span": 4,
  217. "layout": "colFormItem",
  218. "document": "https://element.eleme.cn/#/zh-CN/component/button",
  219. "formId": 107,
  220. "renderKey": "1071613805968382"
  221. },
  222. "__slot__": {
  223. "default": "取消"
  224. },
  225. "type": "danger",
  226. "icon": "el-icon-close",
  227. "round": false,
  228. "size": "mini",
  229. "plain": false,
  230. "circle": false,
  231. "disabled": false,
  232. "__vModel__": "field107"
  233. }]
  234. },
  235. "type": "default",
  236. "justify": "start",
  237. "align": "top"
  238. }],
  239. "formRef": "elForm",
  240. "formModel": "formData",
  241. "size": "mini",
  242. "labelPosition": "left",
  243. "labelWidth": 100,
  244. "formRules": "rules",
  245. "gutter": 10,
  246. "disabled": false,
  247. "span": 13,
  248. "formBtns": true
  249. }