json11.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477
  1. export default {
  2. "list": [
  3. {
  4. "type": "inline",
  5. "icon": "icon-inlineview",
  6. "options": {
  7. "customClass": "",
  8. "hidden": false,
  9. "spaceSize": 0,
  10. "remoteFunc": "func_pxpb5htu",
  11. "remoteOption": "option_pxpb5htu",
  12. "tableColumn": false
  13. },
  14. "list": [
  15. {
  16. "type": "input",
  17. "icon": "icon-input",
  18. "options": {
  19. "width": "",
  20. "defaultValue": "",
  21. "required": false,
  22. "requiredMessage": "",
  23. "dataType": "",
  24. "dataTypeCheck": false,
  25. "dataTypeMessage": "",
  26. "pattern": "",
  27. "patternCheck": false,
  28. "patternMessage": "",
  29. "validatorCheck": false,
  30. "validator": "",
  31. "placeholder": "",
  32. "customClass": "",
  33. "disabled": true,
  34. "labelWidth": 100,
  35. "isLabelWidth": false,
  36. "hidden": false,
  37. "dataBind": true,
  38. "showPassword": false,
  39. "clearable": false,
  40. "remoteFunc": "func_us2fkmk9",
  41. "remoteOption": "option_us2fkmk9",
  42. "subform": false
  43. },
  44. "events": {
  45. "onChange": "",
  46. "onFocus": "",
  47. "onBlur": ""
  48. },
  49. "name": "用户选择",
  50. "key": "us2fkmk9",
  51. "model": "user",
  52. "rules": []
  53. },
  54. {
  55. "type": "button",
  56. "icon": "icon-button",
  57. "options": {
  58. "customClass": "",
  59. "disabled": false,
  60. "labelWidth": 100,
  61. "isLabelWidth": false,
  62. "hideLabel": true,
  63. "hidden": false,
  64. "buttonSize": "default",
  65. "buttonType": "",
  66. "buttonPlain": false,
  67. "buttonRound": false,
  68. "buttonCircle": false,
  69. "buttonName": "选择",
  70. "width": "",
  71. "remoteFunc": "func_kuwqw3gv",
  72. "remoteOption": "option_kuwqw3gv",
  73. "subform": false
  74. },
  75. "events": {
  76. "onClick": "kgwmsntc"
  77. },
  78. "name": "Button",
  79. "key": "kuwqw3gv",
  80. "model": "button_kuwqw3gv",
  81. "rules": []
  82. }
  83. ],
  84. "name": "Inline",
  85. "key": "pxpb5htu",
  86. "model": "inline_pxpb5htu",
  87. "rules": []
  88. },
  89. {
  90. "type": "dialog",
  91. "icon": "icon-Dialog",
  92. "options": {
  93. "defaultValue": {},
  94. "visible": false,
  95. "customClass": "",
  96. "title": "用户选择",
  97. "width": "1000px",
  98. "top": "10vh",
  99. "center": false,
  100. "cancelText": "Cancel",
  101. "showClose": true,
  102. "okText": "Confirm",
  103. "showCancel": false,
  104. "showOk": false,
  105. "confirmLoading": false,
  106. "dataBind": false,
  107. "remoteFunc": "func_3zn3pq87",
  108. "remoteOption": "option_3zn3pq87",
  109. "tableColumn": false
  110. },
  111. "list": [
  112. {
  113. "type": "inline",
  114. "icon": "icon-inlineview",
  115. "options": {
  116. "customClass": "",
  117. "hidden": false,
  118. "spaceSize": 20,
  119. "remoteFunc": "func_aej0q1ei",
  120. "remoteOption": "option_aej0q1ei",
  121. "tableColumn": false,
  122. "subform": true
  123. },
  124. "list": [
  125. {
  126. "type": "input",
  127. "icon": "icon-input",
  128. "options": {
  129. "width": "",
  130. "defaultValue": "",
  131. "required": false,
  132. "requiredMessage": "",
  133. "dataType": "",
  134. "dataTypeCheck": false,
  135. "dataTypeMessage": "",
  136. "pattern": "",
  137. "patternCheck": false,
  138. "patternMessage": "",
  139. "validatorCheck": false,
  140. "validator": "",
  141. "placeholder": "",
  142. "customClass": "",
  143. "disabled": false,
  144. "labelWidth": 40,
  145. "isLabelWidth": true,
  146. "hidden": false,
  147. "dataBind": true,
  148. "showPassword": false,
  149. "clearable": false,
  150. "remoteFunc": "func_bashcrkr",
  151. "remoteOption": "option_bashcrkr",
  152. "subform": false
  153. },
  154. "events": {
  155. "onChange": "",
  156. "onFocus": "",
  157. "onBlur": ""
  158. },
  159. "name": "账号",
  160. "key": "bashcrkr",
  161. "model": "name",
  162. "rules": []
  163. },
  164. {
  165. "type": "button",
  166. "icon": "icon-button",
  167. "options": {
  168. "customClass": "",
  169. "disabled": false,
  170. "labelWidth": 100,
  171. "isLabelWidth": false,
  172. "hideLabel": true,
  173. "hidden": false,
  174. "buttonSize": "default",
  175. "buttonType": "primary",
  176. "buttonPlain": false,
  177. "buttonRound": false,
  178. "buttonCircle": false,
  179. "buttonName": "查询",
  180. "width": "",
  181. "remoteFunc": "func_46j5xrvv",
  182. "remoteOption": "option_46j5xrvv",
  183. "subform": false
  184. },
  185. "events": {
  186. "onClick": "3kbo2wmb"
  187. },
  188. "name": "Button",
  189. "key": "46j5xrvv",
  190. "model": "button_46j5xrvv",
  191. "rules": []
  192. }
  193. ],
  194. "name": "Inline",
  195. "key": "aej0q1ei",
  196. "model": "inline_aej0q1ei",
  197. "rules": []
  198. },
  199. {
  200. "type": "table",
  201. "icon": "icon-table",
  202. "options": {
  203. "defaultValue": [],
  204. "customClass": "",
  205. "labelWidth": 100,
  206. "isLabelWidth": false,
  207. "hidden": false,
  208. "dataBind": true,
  209. "disabled": false,
  210. "required": false,
  211. "validatorCheck": false,
  212. "validator": "",
  213. "paging": false,
  214. "pageSize": 5,
  215. "isAdd": false,
  216. "isDelete": false,
  217. "showControl": false,
  218. "remoteFunc": "func_w8rl4u1u",
  219. "remoteOption": "option_w8rl4u1u",
  220. "tableColumn": false,
  221. "subform": true,
  222. "hideLabel": true
  223. },
  224. "events": {
  225. "onChange": "",
  226. "onRowAdd": "",
  227. "onRowRemove": "",
  228. "onPageChange": ""
  229. },
  230. "tableColumns": [
  231. {
  232. "type": "text",
  233. "icon": "icon-wenzishezhi-",
  234. "options": {
  235. "defaultValue": "",
  236. "customClass": "",
  237. "labelWidth": 100,
  238. "isLabelWidth": false,
  239. "hidden": false,
  240. "dataBind": true,
  241. "required": false,
  242. "width": "",
  243. "remoteFunc": "func_pg08nf6n",
  244. "remoteOption": "option_pg08nf6n",
  245. "tableColumn": true
  246. },
  247. "events": {
  248. "onChange": ""
  249. },
  250. "name": "ID",
  251. "novalid": {},
  252. "key": "pg08nf6n",
  253. "model": "id",
  254. "rules": []
  255. },
  256. {
  257. "type": "text",
  258. "icon": "icon-wenzishezhi-",
  259. "options": {
  260. "defaultValue": "",
  261. "customClass": "",
  262. "labelWidth": 100,
  263. "isLabelWidth": false,
  264. "hidden": false,
  265. "dataBind": true,
  266. "required": false,
  267. "width": "",
  268. "remoteFunc": "func_pg08nf6n",
  269. "remoteOption": "option_pg08nf6n",
  270. "tableColumn": true
  271. },
  272. "events": {
  273. "onChange": ""
  274. },
  275. "name": "账号",
  276. "novalid": {},
  277. "key": "bqzsgdpu",
  278. "model": "name",
  279. "rules": []
  280. },
  281. {
  282. "type": "text",
  283. "icon": "icon-wenzishezhi-",
  284. "options": {
  285. "defaultValue": "",
  286. "customClass": "",
  287. "labelWidth": 100,
  288. "isLabelWidth": false,
  289. "hidden": false,
  290. "dataBind": true,
  291. "required": false,
  292. "width": "",
  293. "remoteFunc": "func_pg08nf6n",
  294. "remoteOption": "option_pg08nf6n",
  295. "tableColumn": true
  296. },
  297. "events": {
  298. "onChange": ""
  299. },
  300. "name": "邮箱",
  301. "novalid": {},
  302. "key": "htpi04id",
  303. "model": "email",
  304. "rules": []
  305. },
  306. {
  307. "type": "text",
  308. "icon": "icon-wenzishezhi-",
  309. "options": {
  310. "defaultValue": "",
  311. "customClass": "",
  312. "labelWidth": 100,
  313. "isLabelWidth": false,
  314. "hidden": false,
  315. "dataBind": true,
  316. "required": false,
  317. "width": "",
  318. "remoteFunc": "func_pg08nf6n",
  319. "remoteOption": "option_pg08nf6n",
  320. "tableColumn": true
  321. },
  322. "events": {
  323. "onChange": ""
  324. },
  325. "name": "电话",
  326. "novalid": {},
  327. "key": "hrcxm2qf",
  328. "model": "phone",
  329. "rules": []
  330. },
  331. {
  332. "type": "text",
  333. "icon": "icon-wenzishezhi-",
  334. "options": {
  335. "defaultValue": "",
  336. "customClass": "",
  337. "labelWidth": 100,
  338. "isLabelWidth": false,
  339. "hidden": false,
  340. "dataBind": true,
  341. "required": false,
  342. "width": "",
  343. "remoteFunc": "func_pg08nf6n",
  344. "remoteOption": "option_pg08nf6n",
  345. "tableColumn": true
  346. },
  347. "events": {
  348. "onChange": ""
  349. },
  350. "name": "角色",
  351. "novalid": {},
  352. "key": "qe2xxku6",
  353. "model": "role",
  354. "rules": []
  355. },
  356. {
  357. "type": "component",
  358. "icon": "icon-component",
  359. "options": {
  360. "customClass": "",
  361. "labelWidth": 100,
  362. "isLabelWidth": false,
  363. "hidden": false,
  364. "dataBind": true,
  365. "template": "<div>\n <el-button size=\"small\" type=\"primary\" @click=\"triggerEvent('select')\">选择</el-button>\n</div>",
  366. "required": false,
  367. "pattern": "",
  368. "validator": "",
  369. "width": "",
  370. "remoteFunc": "func_2he43rs9",
  371. "remoteOption": "option_2he43rs9",
  372. "tableColumn": true
  373. },
  374. "events": {
  375. "onChange": ""
  376. },
  377. "name": "",
  378. "novalid": {},
  379. "key": "2he43rs9",
  380. "model": "component_2he43rs9",
  381. "rules": []
  382. }
  383. ],
  384. "name": "Sub-Form",
  385. "key": "w8rl4u1u",
  386. "model": "userList",
  387. "rules": []
  388. },
  389. {
  390. "type": "pagination",
  391. "icon": "icon-pagination",
  392. "options": {
  393. "defaultValue": 1,
  394. "customClass": "",
  395. "disabled": false,
  396. "labelWidth": 100,
  397. "isLabelWidth": false,
  398. "hideLabel": true,
  399. "hidden": false,
  400. "dataBind": true,
  401. "background": true,
  402. "pageSize": 10,
  403. "pagerCount": 7,
  404. "total": 0,
  405. "remoteFunc": "func_5acp377j",
  406. "remoteOption": "option_5acp377j",
  407. "tableColumn": false,
  408. "subform": true
  409. },
  410. "events": {
  411. "onChange": "mdhthplo"
  412. },
  413. "name": "Pagination",
  414. "key": "5acp377j",
  415. "model": "currentPage",
  416. "rules": []
  417. }
  418. ],
  419. "events": {
  420. "onCancel": "",
  421. "onConfirm": ""
  422. },
  423. "name": "Dialog",
  424. "key": "3zn3pq87",
  425. "model": "userDialog",
  426. "rules": []
  427. }
  428. ],
  429. "config": {
  430. "labelWidth": 100,
  431. "labelPosition": "right",
  432. "size": "default",
  433. "customClass": "",
  434. "ui": "element",
  435. "layout": "horizontal",
  436. "width": "100%",
  437. "hideLabel": false,
  438. "hideErrorMessage": false,
  439. "eventScript": [
  440. {
  441. "key": "mounted",
  442. "name": "mounted",
  443. "func": ""
  444. },
  445. {
  446. "key": "refresh",
  447. "name": "refresh",
  448. "func": "this.triggerEvent('loadUserList', {\n currentPage: 1\n})"
  449. },
  450. {
  451. "key": "kgwmsntc",
  452. "name": "onFocus_kgwmsntc",
  453. "func": "const userDialog = this.getComponent('userDialog')\n\nuserDialog.open()"
  454. },
  455. {
  456. "key": "qxn4ru2f",
  457. "name": "loadUserList",
  458. "func": "const {currentPage, query} = arguments[0]\n\nlet listData = localStorage.getItem('fmUserList') ?\n JSON.parse(localStorage.getItem('fmUserList')) : []\n \nif (query) {\n listData = listData.filter(item => \n item.name.includes(query.name || ''))\n}\n \nthis.setData({\n userDialog: {\n name: query && query.name,\n userList: listData.slice((currentPage - 1) * 10, (currentPage - 1) * 10 + 10),\n currentPage\n }\n})\n\nthis.getComponent('userDialog').setOptions(['currentPage'], {\n total: listData.length\n})"
  459. },
  460. {
  461. "key": "3kbo2wmb",
  462. "name": "onClick_3kbo2wmb",
  463. "func": "const userDialogValues = this.getValue('userDialog')\n\nconsole.log(userDialogValues)\n\nthis.triggerEvent('loadUserList', {\n currentPage: 1,\n query: {\n name: userDialogValues.name\n }\n})"
  464. },
  465. {
  466. "key": "uc0aw1f8",
  467. "name": "select",
  468. "func": "const {rowIndex} = arguments[0]\n\nconst userDialogValue = this.getValue('userDialog')\n\nconst selectUser = userDialogValue.userList[rowIndex]\n\nthis.setData({\n user: selectUser.name\n})\n\nthis.getComponent('userDialog').close()"
  469. },
  470. {
  471. "key": "mdhthplo",
  472. "name": "onChange_mdhthplo",
  473. "func": "const {value} = arguments[0]\n\nthis.triggerEvent('loadUserList', {\n currentPage: value\n})"
  474. }
  475. ]
  476. }
  477. }