json9.js 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. export default {
  2. "list": [
  3. {
  4. "type": "inline",
  5. "icon": "icon-inlineview",
  6. "options": {
  7. "customClass": "",
  8. "hidden": false,
  9. "spaceSize": 20,
  10. "remoteFunc": "func_d46e1lrz",
  11. "remoteOption": "option_d46e1lrz",
  12. "tableColumn": false,
  13. "subform": false
  14. },
  15. "list": [
  16. {
  17. "type": "input",
  18. "icon": "icon-input",
  19. "options": {
  20. "width": "",
  21. "defaultValue": "",
  22. "required": false,
  23. "requiredMessage": "",
  24. "dataType": "",
  25. "dataTypeCheck": false,
  26. "dataTypeMessage": "",
  27. "pattern": "",
  28. "patternCheck": false,
  29. "patternMessage": "",
  30. "validatorCheck": false,
  31. "validator": "",
  32. "placeholder": "",
  33. "customClass": "",
  34. "disabled": false,
  35. "labelWidth": 50,
  36. "isLabelWidth": true,
  37. "hidden": false,
  38. "dataBind": true,
  39. "showPassword": false,
  40. "clearable": false,
  41. "maxlength": "",
  42. "showWordLimit": false,
  43. "customProps": {},
  44. "tip": "",
  45. "extendProps": {},
  46. "remoteFunc": "func_kw3qbkyk",
  47. "remoteOption": "option_kw3qbkyk",
  48. "subform": false,
  49. "tableColumn": false
  50. },
  51. "events": {
  52. "onMounted": "",
  53. "onChange": "",
  54. "onFocus": "",
  55. "onBlur": ""
  56. },
  57. "name": "Name",
  58. "key": "kw3qbkyk",
  59. "model": "name",
  60. "rules": []
  61. },
  62. {
  63. "type": "input",
  64. "icon": "icon-input",
  65. "options": {
  66. "width": "",
  67. "defaultValue": "",
  68. "required": false,
  69. "requiredMessage": "",
  70. "dataType": "",
  71. "dataTypeCheck": false,
  72. "dataTypeMessage": "",
  73. "pattern": "",
  74. "patternCheck": false,
  75. "patternMessage": "",
  76. "validatorCheck": false,
  77. "validator": "",
  78. "placeholder": "",
  79. "customClass": "",
  80. "disabled": false,
  81. "labelWidth": 60,
  82. "isLabelWidth": true,
  83. "hidden": false,
  84. "dataBind": true,
  85. "showPassword": false,
  86. "clearable": false,
  87. "maxlength": "",
  88. "showWordLimit": false,
  89. "customProps": {},
  90. "tip": "",
  91. "extendProps": {},
  92. "remoteFunc": "func_kw3qbkyk",
  93. "remoteOption": "option_kw3qbkyk",
  94. "subform": false,
  95. "tableColumn": false
  96. },
  97. "events": {
  98. "onMounted": "",
  99. "onChange": "",
  100. "onFocus": "",
  101. "onBlur": ""
  102. },
  103. "name": "Address",
  104. "key": "28pqd4qt",
  105. "model": "address",
  106. "rules": []
  107. },
  108. {
  109. "type": "button",
  110. "icon": "icon-button",
  111. "options": {
  112. "customClass": "",
  113. "disabled": false,
  114. "labelWidth": 100,
  115. "isLabelWidth": false,
  116. "hideLabel": true,
  117. "hidden": false,
  118. "buttonSize": "default",
  119. "buttonType": "primary",
  120. "buttonPlain": false,
  121. "buttonRound": false,
  122. "buttonCircle": false,
  123. "buttonName": "查询",
  124. "width": "",
  125. "customProps": {},
  126. "tip": "",
  127. "extendProps": {},
  128. "remoteFunc": "func_zphsmx5c",
  129. "remoteOption": "option_zphsmx5c",
  130. "subform": false,
  131. "tableColumn": false
  132. },
  133. "events": {
  134. "onMounted": "",
  135. "onClick": "x2x2osab"
  136. },
  137. "name": "按钮",
  138. "key": "zphsmx5c",
  139. "model": "button_zphsmx5c",
  140. "rules": []
  141. }
  142. ],
  143. "name": "行内布局",
  144. "key": "d46e1lrz",
  145. "model": "inline_d46e1lrz",
  146. "rules": []
  147. },
  148. {
  149. "type": "list",
  150. "icon": "icon-shujubiaoge",
  151. "options": {
  152. "defaultValue": [],
  153. "width": "",
  154. "maxHeight": "",
  155. "stripe": false,
  156. "border": false,
  157. "customClass": "",
  158. "labelWidth": 100,
  159. "isLabelWidth": false,
  160. "hideLabel": true,
  161. "hidden": false,
  162. "dataBind": true,
  163. "columns": [
  164. {
  165. "label": "ID",
  166. "prop": "id",
  167. "width": 100,
  168. "sortable": false,
  169. "fixed": true,
  170. "align": "left",
  171. "headderAlign": "left",
  172. "fixedOption": "left",
  173. "defaultSlot": false,
  174. "defaultSlotTemplate": "",
  175. "headerSlot": false,
  176. "headerSlotTemplate": "",
  177. "key": "69vku4oh"
  178. },
  179. {
  180. "label": "Name",
  181. "prop": "name",
  182. "width": 200,
  183. "sortable": false,
  184. "fixed": false,
  185. "align": "left",
  186. "headderAlign": "left",
  187. "fixedOption": "left",
  188. "defaultSlot": false,
  189. "defaultSlotTemplate": "",
  190. "headerSlot": false,
  191. "headerSlotTemplate": "",
  192. "key": "8zm66bqm"
  193. },
  194. {
  195. "label": "State",
  196. "prop": "state",
  197. "width": 200,
  198. "sortable": false,
  199. "fixed": false,
  200. "align": "left",
  201. "headderAlign": "left",
  202. "fixedOption": "left",
  203. "defaultSlot": false,
  204. "defaultSlotTemplate": "",
  205. "headerSlot": false,
  206. "headerSlotTemplate": "",
  207. "key": "ariv7pud"
  208. },
  209. {
  210. "label": "City",
  211. "prop": "city",
  212. "width": 300,
  213. "sortable": false,
  214. "fixed": false,
  215. "align": "left",
  216. "headderAlign": "left",
  217. "fixedOption": "left",
  218. "defaultSlot": false,
  219. "defaultSlotTemplate": "",
  220. "headerSlot": false,
  221. "headerSlotTemplate": "",
  222. "key": "90qegs0f"
  223. },
  224. {
  225. "label": "Address",
  226. "prop": "address",
  227. "width": 400,
  228. "sortable": false,
  229. "fixed": false,
  230. "align": "left",
  231. "headderAlign": "left",
  232. "fixedOption": "left",
  233. "defaultSlot": false,
  234. "defaultSlotTemplate": "",
  235. "headerSlot": false,
  236. "headerSlotTemplate": "",
  237. "key": "8epbpp6e"
  238. },
  239. {
  240. "label": "Zip",
  241. "prop": "zip",
  242. "width": 200,
  243. "sortable": false,
  244. "fixed": false,
  245. "align": "left",
  246. "headderAlign": "left",
  247. "fixedOption": "left",
  248. "defaultSlot": false,
  249. "defaultSlotTemplate": "",
  250. "headerSlot": false,
  251. "headerSlotTemplate": "",
  252. "key": "y4o4zjv9"
  253. }
  254. ],
  255. "highlight": false,
  256. "selection": false,
  257. "showOperation": true,
  258. "operations": {
  259. "width": 200,
  260. "buttons": [
  261. {
  262. "name": "Edit",
  263. "type": "primary",
  264. "event": "yuz4gwgj",
  265. "key": "o82slu88"
  266. },
  267. {
  268. "name": "Delete",
  269. "type": "default",
  270. "event": "k5rlenw8",
  271. "key": "htzrpf8v"
  272. }
  273. ]
  274. },
  275. "pagination": {
  276. "paging": true,
  277. "pageSize": 10,
  278. "currentPage": 1,
  279. "pagerCount": 7,
  280. "pageSizes": "10",
  281. "background": true,
  282. "small": false,
  283. "props": {
  284. "list": "records",
  285. "total": "total",
  286. "size": "pageSize",
  287. "current": "currentPage"
  288. }
  289. },
  290. "tip": "",
  291. "remoteFunc": "func_6cllc2ne",
  292. "remoteOption": "option_6cllc2ne",
  293. "tableColumn": false,
  294. "subform": false
  295. },
  296. "events": {
  297. "onMounted": "",
  298. "onChange": "",
  299. "onPageChange": "zfhzth9n",
  300. "onCurrentRow": "",
  301. "onSelectionChange": ""
  302. },
  303. "name": "数据表格",
  304. "key": "6cllc2ne",
  305. "model": "list",
  306. "rules": []
  307. }
  308. ],
  309. "config": {
  310. "labelWidth": 100,
  311. "labelPosition": "left",
  312. "size": "default",
  313. "customClass": "",
  314. "ui": "antd",
  315. "layout": "horizontal",
  316. "width": "100%",
  317. "hideLabel": false,
  318. "hideErrorMessage": false,
  319. "eventScript": [
  320. {
  321. "key": "onFormChange",
  322. "name": "onFormChange",
  323. "type": "rule"
  324. },
  325. {
  326. "key": "mounted",
  327. "name": "mounted",
  328. "func": ""
  329. },
  330. {
  331. "key": "refresh",
  332. "name": "refresh",
  333. "func": ""
  334. },
  335. {
  336. "key": "aembtsf1",
  337. "name": "loadDataList",
  338. "func": "// 模拟数据\nconst {currentPage} = arguments[0]\n\nlet listdata = Array.from({length: 10}).map((_, index) => {\n let row = (currentPage - 1) * 10 + index + 1\n \n return {\n id: row,\n name: 'Tom' + row,\n state: 'California' + row,\n city: 'Los Angeles',\n address: 'No. 189, Grove St, Los Angeles',\n zip: 'CA 90036'\n }\n})\n\n// 给列表赋值\nthis.setData({\n list: {\n records: listdata,\n total: 100,\n pageSize: 10,\n currentPage\n }\n}) ",
  339. "type": "js"
  340. },
  341. {
  342. "key": "x2x2osab",
  343. "name": "onClick_x2x2osab",
  344. "func": "this.triggerEvent('loadDataList', {\n currentPage: 1\n})",
  345. "type": "js"
  346. },
  347. {
  348. "key": "yuz4gwgj",
  349. "name": "operate_0_yuz4gwgj",
  350. "func": "const {row} = arguments[0]\n\nthis.$message(`您点击了编辑操作:ID=${row.id}`)",
  351. "type": "js"
  352. },
  353. {
  354. "key": "k5rlenw8",
  355. "name": "operate_1_k5rlenw8",
  356. "func": "const {row} = arguments[0]\n\nthis.$message.error(`您点击了删除操作:ID=${row.id}`)",
  357. "type": "js"
  358. },
  359. {
  360. "key": "zfhzth9n",
  361. "name": "onPageChange_zfhzth9n",
  362. "func": "const {currentPage} = arguments[0]\n\nthis.triggerEvent('loadDataList', {\n currentPage\n})",
  363. "type": "js",
  364. "rules": []
  365. }
  366. ]
  367. }
  368. }