@luck-design-biz/luckda 1.0.2-2 → 1.0.2-20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/es/components/Builder/index.js +13 -10
  2. package/es/components/ComplexItem/index.js +5 -3
  3. package/es/components/ComplexItem/service.js +6 -3
  4. package/es/components/LDActions/index.js +1 -0
  5. package/es/components/LdAutoForm/index.js +5 -4
  6. package/es/components/LdCard/index.js +10 -8
  7. package/es/components/LdCom/index.js +3 -2
  8. package/es/components/LdFormList/index.js +10 -7
  9. package/es/components/LdGrid/index.js +11 -12
  10. package/es/components/LdGridForm/index.js +5 -4
  11. package/es/helper/FromItems.js +64 -5
  12. package/es/helper/action.js +2 -0
  13. package/es/helper/ldBuilder.js +5 -4
  14. package/es/helper/ldComBuild.js +16 -11
  15. package/es/locales/zh-CN.js +61 -6
  16. package/es/lowcode/constants/api-url.js +359 -190
  17. package/es/lowcode/constants/event-topics.js +4 -0
  18. package/es/lowcode/constants/index.js +5 -4
  19. package/es/lowcode/engine/meta/box.props.default.json +1 -1
  20. package/es/lowcode/engine/meta/box.props.json +1 -1
  21. package/es/lowcode/engine/meta/cardlist.props.json +3 -5
  22. package/es/lowcode/engine/meta/components-list.json +6 -0
  23. package/es/lowcode/engine/meta/dialog.props.default.json +4 -1
  24. package/es/lowcode/engine/meta/dialog.props.json +24 -4
  25. package/es/lowcode/engine/meta/drawer.props.json +1 -1
  26. package/es/lowcode/engine/meta/fielddate.props.default.json +1 -0
  27. package/es/lowcode/engine/meta/fielddate.props.json +48 -1
  28. package/es/lowcode/engine/meta/fieldeditor.props.json +0 -1
  29. package/es/lowcode/engine/meta/fieldgroup.props.json +0 -1
  30. package/es/lowcode/engine/meta/fieldyear.props.json +0 -1
  31. package/es/lowcode/engine/meta/form.props.json +3 -19
  32. package/es/lowcode/engine/meta/grouptree.props.json +0 -1
  33. package/es/lowcode/engine/meta/js-editor/auto-complete.json +5 -0
  34. package/es/lowcode/engine/meta/jsx.props.default.json +1 -2
  35. package/es/lowcode/engine/meta/jsx.props.json +4 -3
  36. package/es/lowcode/engine/meta/layout.props.default.json +1 -1
  37. package/es/lowcode/engine/meta/layout.props.json +1 -1
  38. package/es/lowcode/engine/meta/proxy.props.default.json +15 -0
  39. package/es/lowcode/engine/meta/proxy.props.json +66 -0
  40. package/es/lowcode/engine/meta/section.props.json +2 -2
  41. package/es/lowcode/engine/meta/table.props.json +0 -7
  42. package/es/lowcode/engine/meta/tabs.props.json +1 -1
  43. package/es/lowcode/engine/meta/tree.props.json +1 -5
  44. package/es/lowcode/engine/provider/ContextProvider/index.js +45 -9
  45. package/es/lowcode/engine/provider/ContextProvider/router.js +21 -1
  46. package/es/lowcode/engine/provider/ContextProvider/usePageDataStore.js +36 -30
  47. package/es/lowcode/engine/provider/ContextProvider/usePageVar.js +11 -5
  48. package/es/lowcode/engine/provider/ContextProvider/useTodo.js +2 -4
  49. package/es/lowcode/engine/provider/EventBusProvider.js +14 -4
  50. package/es/lowcode/engine/provider/PageProxyProvider.js +95 -0
  51. package/es/lowcode/engine/provider/RemoteSourceProvider.js +10 -12
  52. package/es/lowcode/engine/tools/helper.js +25 -1
  53. package/es/lowcode/engine/tools/initDS.js +4 -4
  54. package/es/lowcode/painter/Design.js +1 -0
  55. package/es/lowcode/painter/DesignOperator.js +135 -27
  56. package/es/lowcode/painter/DesignToolbar.js +102 -188
  57. package/es/lowcode/painter/History.js +300 -0
  58. package/es/lowcode/painter/Panel.js +1 -1
  59. package/es/lowcode/painter/Ribbon.js +37 -1
  60. package/es/lowcode/painter/components/AdvancePanel.js +55 -51
  61. package/es/lowcode/painter/components/DragDrop/DragDropContext.js +10 -3
  62. package/es/lowcode/painter/components/TipIcon.js +12 -4
  63. package/es/lowcode/painter/components/TreeEditor.js +76 -8
  64. package/es/lowcode/painter/components/code-editor/BaseEditor.js +10 -6
  65. package/es/lowcode/painter/components/code-editor/DiffEditor.js +41 -0
  66. package/es/lowcode/painter/components/field-setting/FieldAttrs.js +2 -2
  67. package/es/lowcode/painter/components/field-setting/SettingUI.js +56 -5
  68. package/es/lowcode/painter/components/field-setting/index.js +24 -1
  69. package/es/lowcode/painter/components/shortcut-modal/KeyIcon.js +11 -0
  70. package/es/lowcode/painter/components/shortcut-modal/index.js +208 -0
  71. package/es/lowcode/painter/panel-section/BlockEditor/index.js +10 -19
  72. package/es/lowcode/painter/panel-section/BlocksEditor/index.js +4 -1
  73. package/es/lowcode/painter/panel-section/ConditionCheck.js +70 -0
  74. package/es/lowcode/painter/panel-section/DataSetSelector.js +6 -3
  75. package/es/lowcode/painter/panel-section/DialogSize.js +76 -0
  76. package/es/lowcode/painter/panel-section/DialogWidthHeight.js +60 -0
  77. package/es/lowcode/painter/panel-section/FieldsSetting.js +1 -1
  78. package/es/lowcode/painter/panel-section/IconConditionSelector.js +2 -2
  79. package/es/lowcode/painter/panel-section/JSEditor/ToolBar.js +174 -0
  80. package/es/lowcode/painter/panel-section/JSEditor/index.js +181 -0
  81. package/es/lowcode/painter/panel-section/JSEditor/index.less +4 -0
  82. package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +7 -2
  83. package/es/lowcode/painter/panel-section/ProxyLinker.js +137 -0
  84. package/es/lowcode/painter/panel-section/ProxyParams.js +28 -0
  85. package/es/lowcode/painter/panel-section/ProxyParamsSetter.js +240 -0
  86. package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +37 -26
  87. package/es/lowcode/painter/style/action-bind-modal.less +1 -1
  88. package/es/lowcode/painter/style/components.less +1 -1
  89. package/es/lowcode/painter/style/history.less +46 -0
  90. package/es/lowcode/painter/style/outline.less +1 -1
  91. package/es/lowcode/painter/style/panel-item.less +1 -0
  92. package/es/lowcode/preview/DebugTool.js +78 -0
  93. package/es/lowcode/preview/DebugToolDetail.js +103 -0
  94. package/es/lowcode/preview/index.js +10 -17
  95. package/es/lowcode/preview/useDebugSettings.js +62 -0
  96. package/es/lowcode/view/Canvas.js +5 -1
  97. package/es/lowcode/view/ErrorBoundary.js +80 -0
  98. package/es/lowcode/view/Page.js +11 -6
  99. package/es/lowcode/view/lc-components/Box/FunctionDesign.js +4 -2
  100. package/es/lowcode/view/lc-components/Box/index.less +2 -2
  101. package/es/lowcode/view/lc-components/Box/meta.json +1 -1
  102. package/es/lowcode/view/lc-components/CardList/index.js +3 -0
  103. package/es/lowcode/view/lc-components/CardList/meta.json +3 -5
  104. package/es/lowcode/view/lc-components/Dialog/index.js +13 -5
  105. package/es/lowcode/view/lc-components/Dialog/meta.json +24 -4
  106. package/es/lowcode/view/lc-components/Drawer/index.js +5 -3
  107. package/es/lowcode/view/lc-components/Drawer/meta.json +1 -1
  108. package/es/lowcode/view/lc-components/FieldDate/meta.json +48 -1
  109. package/es/lowcode/view/lc-components/FieldEditor/meta.json +0 -1
  110. package/es/lowcode/view/lc-components/FieldGroup/meta.json +0 -1
  111. package/es/lowcode/view/lc-components/FieldYear/meta.json +0 -1
  112. package/es/lowcode/view/lc-components/Form/index.js +15 -19
  113. package/es/lowcode/view/lc-components/Form/meta.json +3 -19
  114. package/es/lowcode/view/lc-components/GroupTree/meta.json +0 -1
  115. package/es/lowcode/view/lc-components/JSX/RuntimeComp.js +32 -16
  116. package/es/lowcode/view/lc-components/JSX/meta.json +4 -3
  117. package/es/lowcode/view/lc-components/Layout/meta.json +1 -1
  118. package/es/lowcode/view/lc-components/PageLayout/index.js +1 -1
  119. package/es/lowcode/view/lc-components/Proxy/FunctionDesign.js +17 -0
  120. package/es/lowcode/view/lc-components/Proxy/FunctionLive.js +23 -0
  121. package/es/lowcode/view/lc-components/Proxy/FunctionPreview.js +23 -0
  122. package/es/lowcode/view/lc-components/Proxy/index.js +42 -0
  123. package/es/lowcode/view/lc-components/Proxy/index.less +5 -0
  124. package/es/lowcode/view/lc-components/Proxy/meta.json +66 -0
  125. package/es/lowcode/view/lc-components/Section/meta.json +2 -2
  126. package/es/lowcode/view/lc-components/Table/components/TopImex.js +16 -13
  127. package/es/lowcode/view/lc-components/Table/index.js +11 -3
  128. package/es/lowcode/view/lc-components/Table/meta.json +0 -7
  129. package/es/lowcode/view/lc-components/Tabs/index.js +6 -2
  130. package/es/lowcode/view/lc-components/Tabs/meta.json +1 -1
  131. package/es/lowcode/view/lc-components/Tree/index.js +3 -0
  132. package/es/lowcode/view/lc-components/Tree/meta.json +1 -5
  133. package/es/lowcode/view/lc-components/Wrapper.js +9 -1
  134. package/es/upload/FilesWall/index.js +16 -6
  135. package/es/upload/Form/gridForm.js +16 -6
  136. package/es/upload/FormItem/index.js +16 -4
  137. package/es/utils/action.js +3 -2
  138. package/es/utils/form.js +4 -3
  139. package/es/utils/grid.js +10 -2
  140. package/lib/components/Builder/index.js +13 -10
  141. package/lib/components/ComplexItem/index.js +5 -3
  142. package/lib/components/ComplexItem/service.js +6 -3
  143. package/lib/components/LDActions/index.js +1 -0
  144. package/lib/components/LdAutoForm/index.js +3 -2
  145. package/lib/components/LdCard/index.js +10 -8
  146. package/lib/components/LdCom/index.js +3 -2
  147. package/lib/components/LdFormList/index.js +9 -6
  148. package/lib/components/LdGrid/index.js +11 -12
  149. package/lib/components/LdGridForm/index.js +3 -2
  150. package/lib/helper/FromItems.js +64 -5
  151. package/lib/helper/action.js +2 -0
  152. package/lib/helper/ldBuilder.js +4 -4
  153. package/lib/helper/ldComBuild.js +14 -9
  154. package/lib/locales/zh-CN.js +61 -6
  155. package/lib/lowcode/constants/api-url.js +360 -190
  156. package/lib/lowcode/constants/event-topics.js +5 -1
  157. package/lib/lowcode/constants/index.js +6 -5
  158. package/lib/lowcode/engine/meta/box.props.default.json +1 -1
  159. package/lib/lowcode/engine/meta/box.props.json +1 -1
  160. package/lib/lowcode/engine/meta/cardlist.props.json +3 -5
  161. package/lib/lowcode/engine/meta/components-list.json +6 -0
  162. package/lib/lowcode/engine/meta/dialog.props.default.json +4 -1
  163. package/lib/lowcode/engine/meta/dialog.props.json +24 -4
  164. package/lib/lowcode/engine/meta/drawer.props.json +1 -1
  165. package/lib/lowcode/engine/meta/fielddate.props.default.json +1 -0
  166. package/lib/lowcode/engine/meta/fielddate.props.json +48 -1
  167. package/lib/lowcode/engine/meta/fieldeditor.props.json +0 -1
  168. package/lib/lowcode/engine/meta/fieldgroup.props.json +0 -1
  169. package/lib/lowcode/engine/meta/fieldyear.props.json +0 -1
  170. package/lib/lowcode/engine/meta/form.props.json +3 -19
  171. package/lib/lowcode/engine/meta/grouptree.props.json +0 -1
  172. package/lib/lowcode/engine/meta/js-editor/auto-complete.json +5 -0
  173. package/lib/lowcode/engine/meta/jsx.props.default.json +1 -2
  174. package/lib/lowcode/engine/meta/jsx.props.json +4 -3
  175. package/lib/lowcode/engine/meta/layout.props.default.json +1 -1
  176. package/lib/lowcode/engine/meta/layout.props.json +1 -1
  177. package/lib/lowcode/engine/meta/proxy.props.default.json +15 -0
  178. package/lib/lowcode/engine/meta/proxy.props.json +66 -0
  179. package/lib/lowcode/engine/meta/section.props.json +2 -2
  180. package/lib/lowcode/engine/meta/table.props.json +0 -7
  181. package/lib/lowcode/engine/meta/tabs.props.json +1 -1
  182. package/lib/lowcode/engine/meta/tree.props.json +1 -5
  183. package/lib/lowcode/engine/provider/ContextProvider/index.js +50 -13
  184. package/lib/lowcode/engine/provider/ContextProvider/router.js +22 -1
  185. package/lib/lowcode/engine/provider/ContextProvider/usePageDataStore.js +37 -31
  186. package/lib/lowcode/engine/provider/ContextProvider/usePageVar.js +10 -4
  187. package/lib/lowcode/engine/provider/ContextProvider/useTodo.js +1 -3
  188. package/lib/lowcode/engine/provider/EventBusProvider.js +14 -4
  189. package/lib/lowcode/engine/provider/PageProxyProvider.js +103 -0
  190. package/lib/lowcode/engine/provider/RemoteSourceProvider.js +10 -12
  191. package/lib/lowcode/engine/tools/helper.js +25 -0
  192. package/lib/lowcode/engine/tools/initDS.js +4 -4
  193. package/lib/lowcode/painter/Design.js +1 -0
  194. package/lib/lowcode/painter/DesignOperator.js +132 -24
  195. package/lib/lowcode/painter/DesignToolbar.js +98 -184
  196. package/lib/lowcode/painter/History.js +308 -0
  197. package/lib/lowcode/painter/Panel.js +1 -1
  198. package/lib/lowcode/painter/Ribbon.js +37 -1
  199. package/lib/lowcode/painter/components/AdvancePanel.js +53 -49
  200. package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +10 -3
  201. package/lib/lowcode/painter/components/TipIcon.js +12 -4
  202. package/lib/lowcode/painter/components/TreeEditor.js +76 -8
  203. package/lib/lowcode/painter/components/code-editor/BaseEditor.js +10 -6
  204. package/lib/lowcode/painter/components/code-editor/DiffEditor.js +49 -0
  205. package/lib/lowcode/painter/components/field-setting/FieldAttrs.js +2 -2
  206. package/lib/lowcode/painter/components/field-setting/SettingUI.js +55 -4
  207. package/lib/lowcode/painter/components/field-setting/index.js +24 -1
  208. package/lib/lowcode/painter/components/shortcut-modal/KeyIcon.js +18 -0
  209. package/lib/lowcode/painter/components/shortcut-modal/index.js +215 -0
  210. package/lib/lowcode/painter/panel-section/BlockEditor/index.js +9 -18
  211. package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +4 -1
  212. package/lib/lowcode/painter/panel-section/ConditionCheck.js +78 -0
  213. package/lib/lowcode/painter/panel-section/DataSetSelector.js +6 -3
  214. package/lib/lowcode/painter/panel-section/DialogSize.js +83 -0
  215. package/lib/lowcode/painter/panel-section/DialogWidthHeight.js +67 -0
  216. package/lib/lowcode/painter/panel-section/FieldsSetting.js +1 -1
  217. package/lib/lowcode/painter/panel-section/IconConditionSelector.js +2 -2
  218. package/lib/lowcode/painter/panel-section/JSEditor/ToolBar.js +181 -0
  219. package/lib/lowcode/painter/panel-section/JSEditor/index.js +189 -0
  220. package/lib/lowcode/painter/panel-section/JSEditor/index.less +4 -0
  221. package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +7 -2
  222. package/lib/lowcode/painter/panel-section/ProxyLinker.js +145 -0
  223. package/lib/lowcode/painter/panel-section/ProxyParams.js +35 -0
  224. package/lib/lowcode/painter/panel-section/ProxyParamsSetter.js +248 -0
  225. package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +37 -26
  226. package/lib/lowcode/painter/style/action-bind-modal.less +1 -1
  227. package/lib/lowcode/painter/style/components.less +1 -1
  228. package/lib/lowcode/painter/style/history.less +46 -0
  229. package/lib/lowcode/painter/style/outline.less +1 -1
  230. package/lib/lowcode/painter/style/panel-item.less +1 -0
  231. package/lib/lowcode/preview/DebugTool.js +86 -0
  232. package/lib/lowcode/preview/DebugToolDetail.js +111 -0
  233. package/lib/lowcode/preview/index.js +10 -18
  234. package/lib/lowcode/preview/useDebugSettings.js +69 -0
  235. package/lib/lowcode/view/Canvas.js +5 -1
  236. package/lib/lowcode/view/ErrorBoundary.js +88 -0
  237. package/lib/lowcode/view/Page.js +12 -7
  238. package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +4 -2
  239. package/lib/lowcode/view/lc-components/Box/index.less +2 -2
  240. package/lib/lowcode/view/lc-components/Box/meta.json +1 -1
  241. package/lib/lowcode/view/lc-components/CardList/index.js +3 -0
  242. package/lib/lowcode/view/lc-components/CardList/meta.json +3 -5
  243. package/lib/lowcode/view/lc-components/Dialog/index.js +11 -3
  244. package/lib/lowcode/view/lc-components/Dialog/meta.json +24 -4
  245. package/lib/lowcode/view/lc-components/Drawer/index.js +3 -1
  246. package/lib/lowcode/view/lc-components/Drawer/meta.json +1 -1
  247. package/lib/lowcode/view/lc-components/FieldDate/meta.json +48 -1
  248. package/lib/lowcode/view/lc-components/FieldEditor/meta.json +0 -1
  249. package/lib/lowcode/view/lc-components/FieldGroup/meta.json +0 -1
  250. package/lib/lowcode/view/lc-components/FieldYear/meta.json +0 -1
  251. package/lib/lowcode/view/lc-components/Form/index.js +15 -19
  252. package/lib/lowcode/view/lc-components/Form/meta.json +3 -19
  253. package/lib/lowcode/view/lc-components/GroupTree/meta.json +0 -1
  254. package/lib/lowcode/view/lc-components/JSX/RuntimeComp.js +33 -16
  255. package/lib/lowcode/view/lc-components/JSX/meta.json +4 -3
  256. package/lib/lowcode/view/lc-components/Layout/meta.json +1 -1
  257. package/lib/lowcode/view/lc-components/PageLayout/index.js +1 -1
  258. package/lib/lowcode/view/lc-components/Proxy/FunctionDesign.js +24 -0
  259. package/lib/lowcode/view/lc-components/Proxy/FunctionLive.js +30 -0
  260. package/lib/lowcode/view/lc-components/Proxy/FunctionPreview.js +30 -0
  261. package/lib/lowcode/view/lc-components/Proxy/index.js +50 -0
  262. package/lib/lowcode/view/lc-components/Proxy/index.less +5 -0
  263. package/lib/lowcode/view/lc-components/Proxy/meta.json +66 -0
  264. package/lib/lowcode/view/lc-components/Section/meta.json +2 -2
  265. package/lib/lowcode/view/lc-components/Table/components/TopImex.js +16 -13
  266. package/lib/lowcode/view/lc-components/Table/index.js +11 -3
  267. package/lib/lowcode/view/lc-components/Table/meta.json +0 -7
  268. package/lib/lowcode/view/lc-components/Tabs/index.js +5 -1
  269. package/lib/lowcode/view/lc-components/Tabs/meta.json +1 -1
  270. package/lib/lowcode/view/lc-components/Tree/index.js +3 -0
  271. package/lib/lowcode/view/lc-components/Tree/meta.json +1 -5
  272. package/lib/lowcode/view/lc-components/Wrapper.js +8 -0
  273. package/lib/upload/FilesWall/index.js +13 -3
  274. package/lib/upload/Form/gridForm.js +13 -3
  275. package/lib/upload/FormItem/index.js +15 -3
  276. package/lib/utils/action.js +6 -0
  277. package/lib/utils/form.js +3 -2
  278. package/lib/utils/grid.js +11 -3
  279. package/package.json +1 -2
  280. package/es/lowcode/painter/panel-section/JSEditor.js +0 -49
  281. package/es/lowcode/view/errorBoundary.js +0 -61
  282. package/lib/lowcode/painter/panel-section/JSEditor.js +0 -57
  283. package/lib/lowcode/view/errorBoundary.js +0 -69
@@ -16,11 +16,132 @@ var API_PREFIX_PAGE = "".concat(api.LUCKDA_HOST, "/page");
16
16
  var API_PREFIX_MODULE = "".concat(api.LUCKDA_HOST, "/module");
17
17
  var API_RREFIX_DATASET = "".concat(API_PREFIX_MODULE, "/dataset");
18
18
 
19
+ /**
20
+ * 获取历史版本列表
21
+ * @async
22
+ * @function fetchHistoryVersionList
23
+ * @param {Object} params - 请求参数
24
+ * @param {string} params.pageCode - 菜单编码
25
+ * @returns {Promise<Object>} 返回历史版本列表的Promise
26
+ */
27
+ export function fetchHistoryVersionList(_x) {
28
+ return _fetchHistoryVersionList.apply(this, arguments);
29
+ }
30
+
31
+ /**
32
+ * 添加历史版本
33
+ * @async
34
+ * @function fetchAddHistoryVersion
35
+ * @param {Object} data - 要添加的历史版本数据
36
+ * @param {string} params.pageCode - 菜单编码
37
+ * @param {string} params.backupName - 版本名称
38
+ * @param {string} params.backupNote - 版本描述
39
+ * @returns {Promise<Object>} 返回添加历史版本的Promise
40
+ */
41
+ function _fetchHistoryVersionList() {
42
+ _fetchHistoryVersionList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
43
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
44
+ while (1) switch (_context.prev = _context.next) {
45
+ case 0:
46
+ return _context.abrupt("return", request("".concat(API_PREFIX_PAGE, "/data/readPageBackupList"), {
47
+ params: params
48
+ }));
49
+ case 1:
50
+ case "end":
51
+ return _context.stop();
52
+ }
53
+ }, _callee);
54
+ }));
55
+ return _fetchHistoryVersionList.apply(this, arguments);
56
+ }
57
+ export function fetchAddHistoryVersion(_x2) {
58
+ return _fetchAddHistoryVersion.apply(this, arguments);
59
+ }
60
+
61
+ /**
62
+ * 删除历史版本
63
+ * @async
64
+ * @function fetchDelHistoryVersion
65
+ * @param {Object} data - 要删除的历史版本数据
66
+ * @param {string} data.uid - 历史版本的唯一标识
67
+ * @returns {Promise<Object>} 返回删除历史版本的Promise
68
+ */
69
+ function _fetchAddHistoryVersion() {
70
+ _fetchAddHistoryVersion = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(data) {
71
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
72
+ while (1) switch (_context2.prev = _context2.next) {
73
+ case 0:
74
+ return _context2.abrupt("return", request("".concat(API_PREFIX_PAGE, "/data/backup"), {
75
+ method: 'POST',
76
+ data: data
77
+ }));
78
+ case 1:
79
+ case "end":
80
+ return _context2.stop();
81
+ }
82
+ }, _callee2);
83
+ }));
84
+ return _fetchAddHistoryVersion.apply(this, arguments);
85
+ }
86
+ export function fetchDelHistoryVersion(_x3) {
87
+ return _fetchDelHistoryVersion.apply(this, arguments);
88
+ }
89
+
90
+ /**
91
+ * 恢复历史版本
92
+ * @async
93
+ * @function fetchRecoverHistoryVersion
94
+ * @param {Object} data - 要恢复的历史版本数据
95
+ * @param {string} data.uid - 历史版本的唯一标识
96
+ * @returns {Promise<Object>} 返回恢复历史版本的Promise
97
+ */
98
+ function _fetchDelHistoryVersion() {
99
+ _fetchDelHistoryVersion = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(data) {
100
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
101
+ while (1) switch (_context3.prev = _context3.next) {
102
+ case 0:
103
+ return _context3.abrupt("return", request("".concat(API_PREFIX_PAGE, "/data/deleteBackup"), {
104
+ method: 'POST',
105
+ data: data
106
+ }));
107
+ case 1:
108
+ case "end":
109
+ return _context3.stop();
110
+ }
111
+ }, _callee3);
112
+ }));
113
+ return _fetchDelHistoryVersion.apply(this, arguments);
114
+ }
115
+ export function fetchRecoverHistoryVersion(_x4) {
116
+ return _fetchRecoverHistoryVersion.apply(this, arguments);
117
+ }
118
+
19
119
  /**
20
120
  * 通过菜单编码获取page相关数据
21
- * @param {{code: string}} -code: 菜单编码
121
+ * @async
122
+ * @function fetchPageData
123
+ * @param {Object} params - 请求参数
124
+ * @param {string} params.code - 菜单编码
125
+ * @returns {Promise<Object>} 返回page相关数据的Promise
22
126
  */
23
- export function fetchPageData(_x) {
127
+ function _fetchRecoverHistoryVersion() {
128
+ _fetchRecoverHistoryVersion = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(data) {
129
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
130
+ while (1) switch (_context4.prev = _context4.next) {
131
+ case 0:
132
+ return _context4.abrupt("return", request("".concat(API_PREFIX_PAGE, "/data/recover"), {
133
+ method: 'POST',
134
+ data: data
135
+ }));
136
+ case 1:
137
+ case "end":
138
+ return _context4.stop();
139
+ }
140
+ }, _callee4);
141
+ }));
142
+ return _fetchRecoverHistoryVersion.apply(this, arguments);
143
+ }
144
+ export function fetchPageData(_x5) {
24
145
  return _fetchPageData.apply(this, arguments);
25
146
  }
26
147
 
@@ -29,22 +150,22 @@ export function fetchPageData(_x) {
29
150
  * @param {{moduleCode: string}} params
30
151
  */
31
152
  function _fetchPageData() {
32
- _fetchPageData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
33
- return _regeneratorRuntime().wrap(function _callee$(_context) {
34
- while (1) switch (_context.prev = _context.next) {
153
+ _fetchPageData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(params) {
154
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
155
+ while (1) switch (_context5.prev = _context5.next) {
35
156
  case 0:
36
- return _context.abrupt("return", request("".concat(API_PREFIX_PAGE, "/option/noAuthTransformCodeAndPageData"), {
157
+ return _context5.abrupt("return", request("".concat(API_PREFIX_PAGE, "/option/noAuthTransformCodeAndPageData"), {
37
158
  params: params
38
159
  }));
39
160
  case 1:
40
161
  case "end":
41
- return _context.stop();
162
+ return _context5.stop();
42
163
  }
43
- }, _callee);
164
+ }, _callee5);
44
165
  }));
45
166
  return _fetchPageData.apply(this, arguments);
46
167
  }
47
- export function fetchDesignModlueData(_x2, _x3) {
168
+ export function fetchDesignModlueData(_x6, _x7) {
48
169
  return _fetchDesignModlueData.apply(this, arguments);
49
170
  }
50
171
 
@@ -55,23 +176,23 @@ export function fetchDesignModlueData(_x2, _x3) {
55
176
  * @returns
56
177
  */
57
178
  function _fetchDesignModlueData() {
58
- _fetchDesignModlueData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_, params) {
59
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
60
- while (1) switch (_context2.prev = _context2.next) {
179
+ _fetchDesignModlueData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(_, params) {
180
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
181
+ while (1) switch (_context6.prev = _context6.next) {
61
182
  case 0:
62
- return _context2.abrupt("return", request("".concat(API_PREFIX_PAGE, "/fetchModuleInfo"), {
183
+ return _context6.abrupt("return", request("".concat(API_PREFIX_PAGE, "/fetchModuleInfos"), {
63
184
  params: params,
64
185
  headers: _defineProperty({}, LC_RUNTIME_KEY, getMetaAttr(LC_RUNTIME_KEY))
65
186
  }));
66
187
  case 1:
67
188
  case "end":
68
- return _context2.stop();
189
+ return _context6.stop();
69
190
  }
70
- }, _callee2);
191
+ }, _callee6);
71
192
  }));
72
193
  return _fetchDesignModlueData.apply(this, arguments);
73
194
  }
74
- export function fetchPreviewModlueData(_x4, _x5) {
195
+ export function fetchPreviewModlueData(_x8, _x9) {
75
196
  return _fetchPreviewModlueData.apply(this, arguments);
76
197
  }
77
198
 
@@ -80,23 +201,23 @@ export function fetchPreviewModlueData(_x4, _x5) {
80
201
  * @param {{moduleCode: string}} params
81
202
  */
82
203
  function _fetchPreviewModlueData() {
83
- _fetchPreviewModlueData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(dmCode, params) {
84
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
85
- while (1) switch (_context3.prev = _context3.next) {
204
+ _fetchPreviewModlueData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(dmCode, params) {
205
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
206
+ while (1) switch (_context7.prev = _context7.next) {
86
207
  case 0:
87
- return _context3.abrupt("return", request("".concat(api.API_HOST, "/").concat(dmCode, "/ui/builder/fetchModuleForPreview"), {
208
+ return _context7.abrupt("return", request("".concat(api.API_HOST, "/").concat(dmCode, "/ui/builder/fetchModulesForPreview"), {
88
209
  params: params,
89
210
  headers: _defineProperty({}, LC_RUNTIME_KEY, getMetaAttr(LC_RUNTIME_KEY))
90
211
  }));
91
212
  case 1:
92
213
  case "end":
93
- return _context3.stop();
214
+ return _context7.stop();
94
215
  }
95
- }, _callee3);
216
+ }, _callee7);
96
217
  }));
97
218
  return _fetchPreviewModlueData.apply(this, arguments);
98
219
  }
99
- export function fetchModlueData(_x6, _x7) {
220
+ export function fetchModlueData(_x10, _x11) {
100
221
  return _fetchModlueData.apply(this, arguments);
101
222
  }
102
223
 
@@ -105,23 +226,23 @@ export function fetchModlueData(_x6, _x7) {
105
226
  * @param {{ dataModelKey }} params
106
227
  */
107
228
  function _fetchModlueData() {
108
- _fetchModlueData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(dmCode, params) {
109
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
110
- while (1) switch (_context4.prev = _context4.next) {
229
+ _fetchModlueData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(dmCode, params) {
230
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
231
+ while (1) switch (_context8.prev = _context8.next) {
111
232
  case 0:
112
- return _context4.abrupt("return", request("".concat(api.API_HOST, "/").concat(dmCode, "/ui/builder/noAuthFetchModule"), {
233
+ return _context8.abrupt("return", request("".concat(api.API_HOST, "/").concat(dmCode, "/ui/builder/noAuthFetchModules"), {
113
234
  params: params,
114
235
  headers: _defineProperty({}, LC_RUNTIME_KEY, getMetaAttr(LC_RUNTIME_KEY))
115
236
  }));
116
237
  case 1:
117
238
  case "end":
118
- return _context4.stop();
239
+ return _context8.stop();
119
240
  }
120
- }, _callee4);
241
+ }, _callee8);
121
242
  }));
122
243
  return _fetchModlueData.apply(this, arguments);
123
244
  }
124
- export function fetchAllDataset(_x8) {
245
+ export function fetchAllDataset(_x12) {
125
246
  return _fetchAllDataset.apply(this, arguments);
126
247
  }
127
248
 
@@ -130,47 +251,71 @@ export function fetchAllDataset(_x8) {
130
251
  * @data {{ uid, dataModelKey, addList: { code, datasetUid }}} body数据
131
252
  */
132
253
  function _fetchAllDataset() {
133
- _fetchAllDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(params) {
134
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
135
- while (1) switch (_context5.prev = _context5.next) {
254
+ _fetchAllDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(params) {
255
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
256
+ while (1) switch (_context9.prev = _context9.next) {
136
257
  case 0:
137
- return _context5.abrupt("return", request("".concat(API_PREFIX_PAGE, "/option/noAuthGetDataset"), {
258
+ return _context9.abrupt("return", request("".concat(API_PREFIX_PAGE, "/option/noAuthGetDataset"), {
138
259
  params: params
139
260
  }));
140
261
  case 1:
141
262
  case "end":
142
- return _context5.stop();
263
+ return _context9.stop();
143
264
  }
144
- }, _callee5);
265
+ }, _callee9);
145
266
  }));
146
267
  return _fetchAllDataset.apply(this, arguments);
147
268
  }
148
- export function fetchAddDataset(_x9) {
269
+ export function fetchAddDataset(_x13) {
149
270
  return _fetchAddDataset.apply(this, arguments);
150
271
  }
151
272
 
152
273
  /**
153
- * 获取数据集下的所有字段
154
- * @param {{datasetUid}} params
274
+ * 获取数据模型下的菜单
275
+ * @param {{ dataModelKey, menuType }} params
155
276
  */
156
277
  function _fetchAddDataset() {
157
- _fetchAddDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(data) {
158
- return _regeneratorRuntime().wrap(function _callee6$(_context6) {
159
- while (1) switch (_context6.prev = _context6.next) {
278
+ _fetchAddDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(data) {
279
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
280
+ while (1) switch (_context10.prev = _context10.next) {
160
281
  case 0:
161
- return _context6.abrupt("return", request("".concat(API_RREFIX_DATASET, "/add"), {
282
+ return _context10.abrupt("return", request("".concat(API_RREFIX_DATASET, "/add"), {
162
283
  data: data,
163
284
  method: 'POST'
164
285
  }));
165
286
  case 1:
166
287
  case "end":
167
- return _context6.stop();
288
+ return _context10.stop();
168
289
  }
169
- }, _callee6);
290
+ }, _callee10);
170
291
  }));
171
292
  return _fetchAddDataset.apply(this, arguments);
172
293
  }
173
- export function fetchFieldsByDataset(_x10) {
294
+ export function fetchMenuTree(_x14) {
295
+ return _fetchMenuTree.apply(this, arguments);
296
+ }
297
+
298
+ /**
299
+ * 获取数据集下的所有字段
300
+ * @param {{datasetUid}} params
301
+ */
302
+ function _fetchMenuTree() {
303
+ _fetchMenuTree = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(params) {
304
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
305
+ while (1) switch (_context11.prev = _context11.next) {
306
+ case 0:
307
+ return _context11.abrupt("return", request("".concat(API_PREFIX_PAGE, "/readMenuTree"), {
308
+ params: params
309
+ }));
310
+ case 1:
311
+ case "end":
312
+ return _context11.stop();
313
+ }
314
+ }, _callee11);
315
+ }));
316
+ return _fetchMenuTree.apply(this, arguments);
317
+ }
318
+ export function fetchFieldsByDataset(_x15) {
174
319
  return _fetchFieldsByDataset.apply(this, arguments);
175
320
  }
176
321
 
@@ -180,22 +325,22 @@ export function fetchFieldsByDataset(_x10) {
180
325
  * @returns
181
326
  */
182
327
  function _fetchFieldsByDataset() {
183
- _fetchFieldsByDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(params) {
184
- return _regeneratorRuntime().wrap(function _callee7$(_context7) {
185
- while (1) switch (_context7.prev = _context7.next) {
328
+ _fetchFieldsByDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(params) {
329
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
330
+ while (1) switch (_context12.prev = _context12.next) {
186
331
  case 0:
187
- return _context7.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/readAll"), {
332
+ return _context12.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/readAll"), {
188
333
  params: params
189
334
  }));
190
335
  case 1:
191
336
  case "end":
192
- return _context7.stop();
337
+ return _context12.stop();
193
338
  }
194
- }, _callee7);
339
+ }, _callee12);
195
340
  }));
196
341
  return _fetchFieldsByDataset.apply(this, arguments);
197
342
  }
198
- export function fetchFieldCondition(_x11) {
343
+ export function fetchFieldCondition(_x16) {
199
344
  return _fetchFieldCondition.apply(this, arguments);
200
345
  }
201
346
 
@@ -204,22 +349,22 @@ export function fetchFieldCondition(_x11) {
204
349
  * @param {{moduleId,datasetId,moduleFieldId}} params
205
350
  */
206
351
  function _fetchFieldCondition() {
207
- _fetchFieldCondition = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(params) {
208
- return _regeneratorRuntime().wrap(function _callee8$(_context8) {
209
- while (1) switch (_context8.prev = _context8.next) {
352
+ _fetchFieldCondition = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(params) {
353
+ return _regeneratorRuntime().wrap(function _callee13$(_context13) {
354
+ while (1) switch (_context13.prev = _context13.next) {
210
355
  case 0:
211
- return _context8.abrupt("return", request("".concat(API_PREFIX_PAGE, "/readFieldCondition"), {
356
+ return _context13.abrupt("return", request("".concat(API_PREFIX_PAGE, "/readFieldCondition"), {
212
357
  params: params
213
358
  }));
214
359
  case 1:
215
360
  case "end":
216
- return _context8.stop();
361
+ return _context13.stop();
217
362
  }
218
- }, _callee8);
363
+ }, _callee13);
219
364
  }));
220
365
  return _fetchFieldCondition.apply(this, arguments);
221
366
  }
222
- export function fetchUpdateTitleField(_x12) {
367
+ export function fetchUpdateTitleField(_x17) {
223
368
  return _fetchUpdateTitleField.apply(this, arguments);
224
369
  }
225
370
 
@@ -229,23 +374,23 @@ export function fetchUpdateTitleField(_x12) {
229
374
  * @returns
230
375
  */
231
376
  function _fetchUpdateTitleField() {
232
- _fetchUpdateTitleField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(data) {
233
- return _regeneratorRuntime().wrap(function _callee9$(_context9) {
234
- while (1) switch (_context9.prev = _context9.next) {
377
+ _fetchUpdateTitleField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(data) {
378
+ return _regeneratorRuntime().wrap(function _callee14$(_context14) {
379
+ while (1) switch (_context14.prev = _context14.next) {
235
380
  case 0:
236
- return _context9.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/updateTitleField"), {
381
+ return _context14.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/updateTitleField"), {
237
382
  method: 'POST',
238
383
  data: data
239
384
  }));
240
385
  case 1:
241
386
  case "end":
242
- return _context9.stop();
387
+ return _context14.stop();
243
388
  }
244
- }, _callee9);
389
+ }, _callee14);
245
390
  }));
246
391
  return _fetchUpdateTitleField.apply(this, arguments);
247
392
  }
248
- export function fetchUpdateUniqueField(_x13) {
393
+ export function fetchUpdateUniqueField(_x18) {
249
394
  return _fetchUpdateUniqueField.apply(this, arguments);
250
395
  }
251
396
 
@@ -254,23 +399,23 @@ export function fetchUpdateUniqueField(_x13) {
254
399
  * @param {*} data
255
400
  */
256
401
  function _fetchUpdateUniqueField() {
257
- _fetchUpdateUniqueField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(data) {
258
- return _regeneratorRuntime().wrap(function _callee10$(_context10) {
259
- while (1) switch (_context10.prev = _context10.next) {
402
+ _fetchUpdateUniqueField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(data) {
403
+ return _regeneratorRuntime().wrap(function _callee15$(_context15) {
404
+ while (1) switch (_context15.prev = _context15.next) {
260
405
  case 0:
261
- return _context10.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/updateUniqueField"), {
406
+ return _context15.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/updateUniqueField"), {
262
407
  method: 'POST',
263
408
  data: data
264
409
  }));
265
410
  case 1:
266
411
  case "end":
267
- return _context10.stop();
412
+ return _context15.stop();
268
413
  }
269
- }, _callee10);
414
+ }, _callee15);
270
415
  }));
271
416
  return _fetchUpdateUniqueField.apply(this, arguments);
272
417
  }
273
- export function fetchAddFieldAttrs(_x14) {
418
+ export function fetchAddFieldAttrs(_x19) {
274
419
  return _fetchAddFieldAttrs.apply(this, arguments);
275
420
  }
276
421
 
@@ -279,23 +424,23 @@ export function fetchAddFieldAttrs(_x14) {
279
424
  * @param {*} data
280
425
  */
281
426
  function _fetchAddFieldAttrs() {
282
- _fetchAddFieldAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(data) {
283
- return _regeneratorRuntime().wrap(function _callee11$(_context11) {
284
- while (1) switch (_context11.prev = _context11.next) {
427
+ _fetchAddFieldAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(data) {
428
+ return _regeneratorRuntime().wrap(function _callee16$(_context16) {
429
+ while (1) switch (_context16.prev = _context16.next) {
285
430
  case 0:
286
- return _context11.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/addAttributes"), {
431
+ return _context16.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/addAttributes"), {
287
432
  data: data,
288
433
  method: 'POST'
289
434
  }));
290
435
  case 1:
291
436
  case "end":
292
- return _context11.stop();
437
+ return _context16.stop();
293
438
  }
294
- }, _callee11);
439
+ }, _callee16);
295
440
  }));
296
441
  return _fetchAddFieldAttrs.apply(this, arguments);
297
442
  }
298
- export function fetchDelAttrs(_x15) {
443
+ export function fetchDelAttrs(_x20) {
299
444
  return _fetchDelAttrs.apply(this, arguments);
300
445
  }
301
446
 
@@ -304,23 +449,23 @@ export function fetchDelAttrs(_x15) {
304
449
  * @param {*} params
305
450
  */
306
451
  function _fetchDelAttrs() {
307
- _fetchDelAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(data) {
308
- return _regeneratorRuntime().wrap(function _callee12$(_context12) {
309
- while (1) switch (_context12.prev = _context12.next) {
452
+ _fetchDelAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(data) {
453
+ return _regeneratorRuntime().wrap(function _callee17$(_context17) {
454
+ while (1) switch (_context17.prev = _context17.next) {
310
455
  case 0:
311
- return _context12.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/deleteAttributes"), {
456
+ return _context17.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/deleteAttributes"), {
312
457
  data: data,
313
458
  method: 'POST'
314
459
  }));
315
460
  case 1:
316
461
  case "end":
317
- return _context12.stop();
462
+ return _context17.stop();
318
463
  }
319
- }, _callee12);
464
+ }, _callee17);
320
465
  }));
321
466
  return _fetchDelAttrs.apply(this, arguments);
322
467
  }
323
- export function fetchUpdateFieldAttrs(_x16) {
468
+ export function fetchUpdateFieldAttrs(_x21) {
324
469
  return _fetchUpdateFieldAttrs.apply(this, arguments);
325
470
  }
326
471
 
@@ -330,23 +475,23 @@ export function fetchUpdateFieldAttrs(_x16) {
330
475
  * @returns
331
476
  */
332
477
  function _fetchUpdateFieldAttrs() {
333
- _fetchUpdateFieldAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(data) {
334
- return _regeneratorRuntime().wrap(function _callee13$(_context13) {
335
- while (1) switch (_context13.prev = _context13.next) {
478
+ _fetchUpdateFieldAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(data) {
479
+ return _regeneratorRuntime().wrap(function _callee18$(_context18) {
480
+ while (1) switch (_context18.prev = _context18.next) {
336
481
  case 0:
337
- return _context13.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/updateAttributes"), {
482
+ return _context18.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/updateAttributes"), {
338
483
  data: data,
339
484
  method: 'POST'
340
485
  }));
341
486
  case 1:
342
487
  case "end":
343
- return _context13.stop();
488
+ return _context18.stop();
344
489
  }
345
- }, _callee13);
490
+ }, _callee18);
346
491
  }));
347
492
  return _fetchUpdateFieldAttrs.apply(this, arguments);
348
493
  }
349
- export function fetchAttrs(_x17) {
494
+ export function fetchAttrs(_x22) {
350
495
  return _fetchAttrs.apply(this, arguments);
351
496
  }
352
497
 
@@ -356,22 +501,22 @@ export function fetchAttrs(_x17) {
356
501
  * @returns
357
502
  */
358
503
  function _fetchAttrs() {
359
- _fetchAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(params) {
360
- return _regeneratorRuntime().wrap(function _callee14$(_context14) {
361
- while (1) switch (_context14.prev = _context14.next) {
504
+ _fetchAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(params) {
505
+ return _regeneratorRuntime().wrap(function _callee19$(_context19) {
506
+ while (1) switch (_context19.prev = _context19.next) {
362
507
  case 0:
363
- return _context14.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/readAttributes"), {
508
+ return _context19.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/readAttributes"), {
364
509
  params: params
365
510
  }));
366
511
  case 1:
367
512
  case "end":
368
- return _context14.stop();
513
+ return _context19.stop();
369
514
  }
370
- }, _callee14);
515
+ }, _callee19);
371
516
  }));
372
517
  return _fetchAttrs.apply(this, arguments);
373
518
  }
374
- export function fetchAllBehavior(_x18) {
519
+ export function fetchAllBehavior(_x23) {
375
520
  return _fetchAllBehavior.apply(this, arguments);
376
521
  }
377
522
 
@@ -381,22 +526,22 @@ export function fetchAllBehavior(_x18) {
381
526
  * @returns
382
527
  */
383
528
  function _fetchAllBehavior() {
384
- _fetchAllBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(params) {
385
- return _regeneratorRuntime().wrap(function _callee15$(_context15) {
386
- while (1) switch (_context15.prev = _context15.next) {
529
+ _fetchAllBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(params) {
530
+ return _regeneratorRuntime().wrap(function _callee20$(_context20) {
531
+ while (1) switch (_context20.prev = _context20.next) {
387
532
  case 0:
388
- return _context15.abrupt("return", request("".concat(API_PREFIX_MODULE, "/behavior/readAll"), {
533
+ return _context20.abrupt("return", request("".concat(API_PREFIX_MODULE, "/behavior/readAll"), {
389
534
  params: params
390
535
  }));
391
536
  case 1:
392
537
  case "end":
393
- return _context15.stop();
538
+ return _context20.stop();
394
539
  }
395
- }, _callee15);
540
+ }, _callee20);
396
541
  }));
397
542
  return _fetchAllBehavior.apply(this, arguments);
398
543
  }
399
- export function fetchAllSerials(_x19) {
544
+ export function fetchAllSerials(_x24) {
400
545
  return _fetchAllSerials.apply(this, arguments);
401
546
  }
402
547
 
@@ -406,42 +551,42 @@ export function fetchAllSerials(_x19) {
406
551
  * @returns
407
552
  */
408
553
  function _fetchAllSerials() {
409
- _fetchAllSerials = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(params) {
410
- return _regeneratorRuntime().wrap(function _callee16$(_context16) {
411
- while (1) switch (_context16.prev = _context16.next) {
554
+ _fetchAllSerials = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(params) {
555
+ return _regeneratorRuntime().wrap(function _callee21$(_context21) {
556
+ while (1) switch (_context21.prev = _context21.next) {
412
557
  case 0:
413
- return _context16.abrupt("return", request("".concat(API_PREFIX_MODULE, "/Serials/readAll"), {
558
+ return _context21.abrupt("return", request("".concat(API_PREFIX_MODULE, "/Serials/readAll"), {
414
559
  params: params
415
560
  }));
416
561
  case 1:
417
562
  case "end":
418
- return _context16.stop();
563
+ return _context21.stop();
419
564
  }
420
- }, _callee16);
565
+ }, _callee21);
421
566
  }));
422
567
  return _fetchAllSerials.apply(this, arguments);
423
568
  }
424
- export function fetchAllBehaviorEx(_x20) {
569
+ export function fetchAllBehaviorEx(_x25) {
425
570
  return _fetchAllBehaviorEx.apply(this, arguments);
426
571
  }
427
572
  function _fetchAllBehaviorEx() {
428
- _fetchAllBehaviorEx = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(params) {
429
- return _regeneratorRuntime().wrap(function _callee17$(_context17) {
430
- while (1) switch (_context17.prev = _context17.next) {
573
+ _fetchAllBehaviorEx = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(params) {
574
+ return _regeneratorRuntime().wrap(function _callee22$(_context22) {
575
+ while (1) switch (_context22.prev = _context22.next) {
431
576
  case 0:
432
- return _context17.abrupt("return", request("".concat(API_PREFIX_PAGE, "/option/noAuthGetBehavior"), {
577
+ return _context22.abrupt("return", request("".concat(API_PREFIX_PAGE, "/option/noAuthGetBehavior"), {
433
578
  params: params
434
579
  }));
435
580
  case 1:
436
581
  case "end":
437
- return _context17.stop();
582
+ return _context22.stop();
438
583
  }
439
- }, _callee17);
584
+ }, _callee22);
440
585
  }));
441
586
  return _fetchAllBehaviorEx.apply(this, arguments);
442
587
  }
443
- export function getBehaviorUrl() {
444
- var mdCode = getLDMetaAttr('dataModelKey');
588
+ export function getBehaviorUrl(_mdCode) {
589
+ var mdCode = _mdCode || getLDMetaAttr('dataModelKey');
445
590
  return "".concat(api.API_HOST, "/").concat(mdCode, "/to/behavior/call");
446
591
  }
447
592
 
@@ -451,37 +596,61 @@ export function getBehaviorUrl() {
451
596
  * @param {*} data
452
597
  * @returns
453
598
  */
454
- export function fetchCallBehavior(_x21, _x22) {
599
+ export function fetchCallBehavior(_x26, _x27) {
455
600
  return _fetchCallBehavior.apply(this, arguments);
456
601
  }
602
+ function _fetchCallBehavior() {
603
+ _fetchCallBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(params, data) {
604
+ return _regeneratorRuntime().wrap(function _callee23$(_context23) {
605
+ while (1) switch (_context23.prev = _context23.next) {
606
+ case 0:
607
+ return _context23.abrupt("return", request(getBehaviorUrl(), {
608
+ method: 'POST',
609
+ data: data,
610
+ params: params,
611
+ headers: _defineProperty({
612
+ 'Content-Type': 'application/json;charset=UTF-8'
613
+ }, LC_RUNTIME_KEY, getMetaAttr(LC_RUNTIME_KEY))
614
+ }));
615
+ case 1:
616
+ case "end":
617
+ return _context23.stop();
618
+ }
619
+ }, _callee23);
620
+ }));
621
+ return _fetchCallBehavior.apply(this, arguments);
622
+ }
623
+ export function readCallBehavior(_x28, _x29, _x30) {
624
+ return _readCallBehavior.apply(this, arguments);
625
+ }
457
626
 
458
627
  /**
459
628
  * 清除当前模块缓存
460
629
  * @param {{moduleCode}} params
461
630
  * @returns
462
631
  */
463
- function _fetchCallBehavior() {
464
- _fetchCallBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(params, data) {
465
- return _regeneratorRuntime().wrap(function _callee18$(_context18) {
466
- while (1) switch (_context18.prev = _context18.next) {
632
+ function _readCallBehavior() {
633
+ _readCallBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(mdCode, params, data) {
634
+ return _regeneratorRuntime().wrap(function _callee24$(_context24) {
635
+ while (1) switch (_context24.prev = _context24.next) {
467
636
  case 0:
468
- return _context18.abrupt("return", request(getBehaviorUrl(), {
637
+ return _context24.abrupt("return", request(getBehaviorUrl(mdCode), {
469
638
  method: 'POST',
470
639
  data: data,
471
640
  params: params,
472
641
  headers: _defineProperty({
473
642
  'Content-Type': 'application/json;charset=UTF-8'
474
- }, LC_RUNTIME_KEY, getMetaAttr(LC_RUNTIME_KEY))
643
+ }, LC_RUNTIME_KEY, 'live')
475
644
  }));
476
645
  case 1:
477
646
  case "end":
478
- return _context18.stop();
647
+ return _context24.stop();
479
648
  }
480
- }, _callee18);
649
+ }, _callee24);
481
650
  }));
482
- return _fetchCallBehavior.apply(this, arguments);
651
+ return _readCallBehavior.apply(this, arguments);
483
652
  }
484
- export function fetchClearCache(_x23) {
653
+ export function fetchClearCache(_x31) {
485
654
  return _fetchClearCache.apply(this, arguments);
486
655
  }
487
656
 
@@ -491,22 +660,22 @@ export function fetchClearCache(_x23) {
491
660
  * @returns
492
661
  */
493
662
  function _fetchClearCache() {
494
- _fetchClearCache = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(params) {
495
- return _regeneratorRuntime().wrap(function _callee19$(_context19) {
496
- while (1) switch (_context19.prev = _context19.next) {
663
+ _fetchClearCache = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25(params) {
664
+ return _regeneratorRuntime().wrap(function _callee25$(_context25) {
665
+ while (1) switch (_context25.prev = _context25.next) {
497
666
  case 0:
498
- return _context19.abrupt("return", request("".concat(api.LUCKDA_HOST, "/cache/manage/noAuthModuleConfigClear"), {
667
+ return _context25.abrupt("return", request("".concat(api.LUCKDA_HOST, "/cache/manage/noAuthModuleConfigClear"), {
499
668
  params: params
500
669
  }));
501
670
  case 1:
502
671
  case "end":
503
- return _context19.stop();
672
+ return _context25.stop();
504
673
  }
505
- }, _callee19);
674
+ }, _callee25);
506
675
  }));
507
676
  return _fetchClearCache.apply(this, arguments);
508
677
  }
509
- export function fetchUpdatePageData(_x24) {
678
+ export function fetchUpdatePageData(_x32) {
510
679
  return _fetchUpdatePageData.apply(this, arguments);
511
680
  }
512
681
 
@@ -516,23 +685,23 @@ export function fetchUpdatePageData(_x24) {
516
685
  * @returns
517
686
  */
518
687
  function _fetchUpdatePageData() {
519
- _fetchUpdatePageData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(data) {
520
- return _regeneratorRuntime().wrap(function _callee20$(_context20) {
521
- while (1) switch (_context20.prev = _context20.next) {
688
+ _fetchUpdatePageData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26(data) {
689
+ return _regeneratorRuntime().wrap(function _callee26$(_context26) {
690
+ while (1) switch (_context26.prev = _context26.next) {
522
691
  case 0:
523
- return _context20.abrupt("return", request("".concat(API_PREFIX_PAGE, "/data/update"), {
692
+ return _context26.abrupt("return", request("".concat(API_PREFIX_PAGE, "/data/update"), {
524
693
  method: 'POST',
525
694
  data: data
526
695
  }));
527
696
  case 1:
528
697
  case "end":
529
- return _context20.stop();
698
+ return _context26.stop();
530
699
  }
531
- }, _callee20);
700
+ }, _callee26);
532
701
  }));
533
702
  return _fetchUpdatePageData.apply(this, arguments);
534
703
  }
535
- export function fetchDataDic(_x25) {
704
+ export function fetchDataDic(_x33) {
536
705
  return _fetchDataDic.apply(this, arguments);
537
706
  }
538
707
 
@@ -542,22 +711,22 @@ export function fetchDataDic(_x25) {
542
711
  * @returns
543
712
  */
544
713
  function _fetchDataDic() {
545
- _fetchDataDic = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(params) {
546
- return _regeneratorRuntime().wrap(function _callee21$(_context21) {
547
- while (1) switch (_context21.prev = _context21.next) {
714
+ _fetchDataDic = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27(params) {
715
+ return _regeneratorRuntime().wrap(function _callee27$(_context27) {
716
+ while (1) switch (_context27.prev = _context27.next) {
548
717
  case 0:
549
- return _context21.abrupt("return", request("".concat(api.BASE_HOST, "/datadic/sysDatadic/noAuthReadAll"), {
718
+ return _context27.abrupt("return", request("".concat(api.BASE_HOST, "/datadic/sysDatadic/noAuthReadAll"), {
550
719
  params: params
551
720
  }));
552
721
  case 1:
553
722
  case "end":
554
- return _context21.stop();
723
+ return _context27.stop();
555
724
  }
556
- }, _callee21);
725
+ }, _callee27);
557
726
  }));
558
727
  return _fetchDataDic.apply(this, arguments);
559
728
  }
560
- export function exportExcel(_x26, _x27) {
729
+ export function exportExcel(_x34, _x35) {
561
730
  return _exportExcel.apply(this, arguments);
562
731
  }
563
732
 
@@ -567,14 +736,14 @@ export function exportExcel(_x26, _x27) {
567
736
  * @returns
568
737
  */
569
738
  function _exportExcel() {
570
- _exportExcel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(params, data) {
739
+ _exportExcel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28(params, data) {
571
740
  var mdCode, FUNC_NAME;
572
- return _regeneratorRuntime().wrap(function _callee22$(_context22) {
573
- while (1) switch (_context22.prev = _context22.next) {
741
+ return _regeneratorRuntime().wrap(function _callee28$(_context28) {
742
+ while (1) switch (_context28.prev = _context28.next) {
574
743
  case 0:
575
744
  mdCode = getLDMetaAttr('dataModelKey');
576
745
  FUNC_NAME = params;
577
- return _context22.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthExport").concat(FUNC_NAME), {
746
+ return _context28.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthExport").concat(FUNC_NAME), {
578
747
  method: 'POST',
579
748
  data: _objectSpread(_objectSpread({}, data), {}, {
580
749
  gatewayUrl: "".concat(window.location.origin).concat(api.API_HOST)
@@ -582,50 +751,50 @@ function _exportExcel() {
582
751
  }));
583
752
  case 3:
584
753
  case "end":
585
- return _context22.stop();
754
+ return _context28.stop();
586
755
  }
587
- }, _callee22);
756
+ }, _callee28);
588
757
  }));
589
758
  return _exportExcel.apply(this, arguments);
590
759
  }
591
- export function uploadTemplate(_x28, _x29) {
760
+ export function uploadTemplate(_x36, _x37) {
592
761
  return _uploadTemplate.apply(this, arguments);
593
762
  }
594
763
 
595
764
  // var successCount = 10;
596
765
  // 获取导入进度数据
597
766
  function _uploadTemplate() {
598
- _uploadTemplate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(params, data) {
767
+ _uploadTemplate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29(params, data) {
599
768
  var mdCode, FUNC_NAME;
600
- return _regeneratorRuntime().wrap(function _callee23$(_context23) {
601
- while (1) switch (_context23.prev = _context23.next) {
769
+ return _regeneratorRuntime().wrap(function _callee29$(_context29) {
770
+ while (1) switch (_context29.prev = _context29.next) {
602
771
  case 0:
603
772
  mdCode = getLDMetaAttr('dataModelKey');
604
773
  FUNC_NAME = params;
605
- return _context23.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthImport").concat(FUNC_NAME), {
774
+ return _context29.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthImport").concat(FUNC_NAME), {
606
775
  method: 'POST',
607
776
  data: data
608
777
  }));
609
778
  case 3:
610
779
  case "end":
611
- return _context23.stop();
780
+ return _context29.stop();
612
781
  }
613
- }, _callee23);
782
+ }, _callee29);
614
783
  }));
615
784
  return _uploadTemplate.apply(this, arguments);
616
785
  }
617
- export function getFindexcelstate(_x30, _x31) {
786
+ export function getFindexcelstate(_x38, _x39) {
618
787
  return _getFindexcelstate.apply(this, arguments);
619
788
  }
620
789
  function _getFindexcelstate() {
621
- _getFindexcelstate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(params, data) {
790
+ _getFindexcelstate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30(params, data) {
622
791
  var mdCode, FUNC_NAME;
623
- return _regeneratorRuntime().wrap(function _callee24$(_context24) {
624
- while (1) switch (_context24.prev = _context24.next) {
792
+ return _regeneratorRuntime().wrap(function _callee30$(_context30) {
793
+ while (1) switch (_context30.prev = _context30.next) {
625
794
  case 0:
626
795
  mdCode = getLDMetaAttr('dataModelKey');
627
796
  FUNC_NAME = params;
628
- return _context24.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthGetProgress").concat(FUNC_NAME), {
797
+ return _context30.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthGetProgress").concat(FUNC_NAME), {
629
798
  method: 'POST',
630
799
  data: _objectSpread(_objectSpread({}, data), {}, {
631
800
  gatewayUrl: "".concat(window.location.origin).concat(api.API_HOST)
@@ -633,13 +802,13 @@ function _getFindexcelstate() {
633
802
  }));
634
803
  case 3:
635
804
  case "end":
636
- return _context24.stop();
805
+ return _context30.stop();
637
806
  }
638
- }, _callee24);
807
+ }, _callee30);
639
808
  }));
640
809
  return _getFindexcelstate.apply(this, arguments);
641
810
  }
642
- export function noAuthGetTemplateUrl(_x32) {
811
+ export function noAuthGetTemplateUrl(_x40) {
643
812
  return _noAuthGetTemplateUrl.apply(this, arguments);
644
813
  }
645
814
 
@@ -648,13 +817,13 @@ export function noAuthGetTemplateUrl(_x32) {
648
817
  * @param {string} sname
649
818
  */
650
819
  function _noAuthGetTemplateUrl() {
651
- _noAuthGetTemplateUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25(params) {
820
+ _noAuthGetTemplateUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31(params) {
652
821
  var mdCode;
653
- return _regeneratorRuntime().wrap(function _callee25$(_context25) {
654
- while (1) switch (_context25.prev = _context25.next) {
822
+ return _regeneratorRuntime().wrap(function _callee31$(_context31) {
823
+ while (1) switch (_context31.prev = _context31.next) {
655
824
  case 0:
656
825
  mdCode = getLDMetaAttr('dataModelKey');
657
- return _context25.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthGetTemplateUrl"), {
826
+ return _context31.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthGetTemplateUrl"), {
658
827
  method: 'POST',
659
828
  data: {
660
829
  gatewayUrl: "".concat(window.location.origin).concat(api.API_HOST),
@@ -663,29 +832,29 @@ function _noAuthGetTemplateUrl() {
663
832
  }));
664
833
  case 2:
665
834
  case "end":
666
- return _context25.stop();
835
+ return _context31.stop();
667
836
  }
668
- }, _callee25);
837
+ }, _callee31);
669
838
  }));
670
839
  return _noAuthGetTemplateUrl.apply(this, arguments);
671
840
  }
672
- export function fetchSearchUser(_x33) {
841
+ export function fetchSearchUser(_x41) {
673
842
  return _fetchSearchUser.apply(this, arguments);
674
843
  }
675
844
  function _fetchSearchUser() {
676
- _fetchSearchUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26(params) {
677
- return _regeneratorRuntime().wrap(function _callee26$(_context26) {
678
- while (1) switch (_context26.prev = _context26.next) {
845
+ _fetchSearchUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee32(params) {
846
+ return _regeneratorRuntime().wrap(function _callee32$(_context32) {
847
+ while (1) switch (_context32.prev = _context32.next) {
679
848
  case 0:
680
- return _context26.abrupt("return", request("".concat(api.BASE_HOST, "/user/sysUser/noAuthReadUser"), {
849
+ return _context32.abrupt("return", request("".concat(api.BASE_HOST, "/user/sysUser/noAuthReadUser"), {
681
850
  params: params,
682
851
  method: 'POST'
683
852
  }));
684
853
  case 1:
685
854
  case "end":
686
- return _context26.stop();
855
+ return _context32.stop();
687
856
  }
688
- }, _callee26);
857
+ }, _callee32);
689
858
  }));
690
859
  return _fetchSearchUser.apply(this, arguments);
691
860
  }