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