@luck-design-biz/luckda 1.0.2 → 1.0.3-13tl

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