@luck-design-biz/luckda 1.0.2-13 → 1.0.2-14

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