@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
|
@@ -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
|
-
*
|
|
21
|
-
* @
|
|
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
|
|
24
|
-
return
|
|
27
|
+
export function fetchHistoryVersionList(_x) {
|
|
28
|
+
return _fetchHistoryVersionList.apply(this, arguments);
|
|
25
29
|
}
|
|
26
30
|
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @
|
|
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
|
|
32
|
-
|
|
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, "/
|
|
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(
|
|
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
|
|
59
|
-
return _regeneratorRuntime().wrap(function
|
|
60
|
-
while (1) switch (
|
|
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
|
|
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
|
|
189
|
+
return _context6.stop();
|
|
69
190
|
}
|
|
70
|
-
},
|
|
191
|
+
}, _callee6);
|
|
71
192
|
}));
|
|
72
193
|
return _fetchDesignModlueData.apply(this, arguments);
|
|
73
194
|
}
|
|
74
|
-
export function fetchPreviewModlueData(
|
|
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
|
|
84
|
-
return _regeneratorRuntime().wrap(function
|
|
85
|
-
while (1) switch (
|
|
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
|
|
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
|
|
214
|
+
return _context7.stop();
|
|
94
215
|
}
|
|
95
|
-
},
|
|
216
|
+
}, _callee7);
|
|
96
217
|
}));
|
|
97
218
|
return _fetchPreviewModlueData.apply(this, arguments);
|
|
98
219
|
}
|
|
99
|
-
export function fetchModlueData(
|
|
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
|
|
109
|
-
return _regeneratorRuntime().wrap(function
|
|
110
|
-
while (1) switch (
|
|
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
|
|
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
|
|
239
|
+
return _context8.stop();
|
|
119
240
|
}
|
|
120
|
-
},
|
|
241
|
+
}, _callee8);
|
|
121
242
|
}));
|
|
122
243
|
return _fetchModlueData.apply(this, arguments);
|
|
123
244
|
}
|
|
124
|
-
export function fetchAllDataset(
|
|
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
|
|
134
|
-
return _regeneratorRuntime().wrap(function
|
|
135
|
-
while (1) switch (
|
|
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
|
|
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
|
|
263
|
+
return _context9.stop();
|
|
143
264
|
}
|
|
144
|
-
},
|
|
265
|
+
}, _callee9);
|
|
145
266
|
}));
|
|
146
267
|
return _fetchAllDataset.apply(this, arguments);
|
|
147
268
|
}
|
|
148
|
-
export function fetchAddDataset(
|
|
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
|
|
158
|
-
return _regeneratorRuntime().wrap(function
|
|
159
|
-
while (1) switch (
|
|
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
|
|
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
|
|
288
|
+
return _context10.stop();
|
|
168
289
|
}
|
|
169
|
-
},
|
|
290
|
+
}, _callee10);
|
|
170
291
|
}));
|
|
171
292
|
return _fetchAddDataset.apply(this, arguments);
|
|
172
293
|
}
|
|
173
|
-
export function fetchFieldsByDataset(
|
|
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
|
|
184
|
-
return _regeneratorRuntime().wrap(function
|
|
185
|
-
while (1) switch (
|
|
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
|
|
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
|
|
313
|
+
return _context11.stop();
|
|
193
314
|
}
|
|
194
|
-
},
|
|
315
|
+
}, _callee11);
|
|
195
316
|
}));
|
|
196
317
|
return _fetchFieldsByDataset.apply(this, arguments);
|
|
197
318
|
}
|
|
198
|
-
export function fetchFieldCondition(
|
|
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
|
|
208
|
-
return _regeneratorRuntime().wrap(function
|
|
209
|
-
while (1) switch (
|
|
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
|
|
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
|
|
337
|
+
return _context12.stop();
|
|
217
338
|
}
|
|
218
|
-
},
|
|
339
|
+
}, _callee12);
|
|
219
340
|
}));
|
|
220
341
|
return _fetchFieldCondition.apply(this, arguments);
|
|
221
342
|
}
|
|
222
|
-
export function fetchUpdateTitleField(
|
|
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
|
|
233
|
-
return _regeneratorRuntime().wrap(function
|
|
234
|
-
while (1) switch (
|
|
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
|
|
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
|
|
363
|
+
return _context13.stop();
|
|
243
364
|
}
|
|
244
|
-
},
|
|
365
|
+
}, _callee13);
|
|
245
366
|
}));
|
|
246
367
|
return _fetchUpdateTitleField.apply(this, arguments);
|
|
247
368
|
}
|
|
248
|
-
export function fetchUpdateUniqueField(
|
|
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
|
|
258
|
-
return _regeneratorRuntime().wrap(function
|
|
259
|
-
while (1) switch (
|
|
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
|
|
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
|
|
388
|
+
return _context14.stop();
|
|
268
389
|
}
|
|
269
|
-
},
|
|
390
|
+
}, _callee14);
|
|
270
391
|
}));
|
|
271
392
|
return _fetchUpdateUniqueField.apply(this, arguments);
|
|
272
393
|
}
|
|
273
|
-
export function fetchAddFieldAttrs(
|
|
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
|
|
283
|
-
return _regeneratorRuntime().wrap(function
|
|
284
|
-
while (1) switch (
|
|
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
|
|
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
|
|
413
|
+
return _context15.stop();
|
|
293
414
|
}
|
|
294
|
-
},
|
|
415
|
+
}, _callee15);
|
|
295
416
|
}));
|
|
296
417
|
return _fetchAddFieldAttrs.apply(this, arguments);
|
|
297
418
|
}
|
|
298
|
-
export function fetchDelAttrs(
|
|
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
|
|
308
|
-
return _regeneratorRuntime().wrap(function
|
|
309
|
-
while (1) switch (
|
|
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
|
|
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
|
|
438
|
+
return _context16.stop();
|
|
318
439
|
}
|
|
319
|
-
},
|
|
440
|
+
}, _callee16);
|
|
320
441
|
}));
|
|
321
442
|
return _fetchDelAttrs.apply(this, arguments);
|
|
322
443
|
}
|
|
323
|
-
export function fetchUpdateFieldAttrs(
|
|
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
|
|
334
|
-
return _regeneratorRuntime().wrap(function
|
|
335
|
-
while (1) switch (
|
|
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
|
|
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
|
|
464
|
+
return _context17.stop();
|
|
344
465
|
}
|
|
345
|
-
},
|
|
466
|
+
}, _callee17);
|
|
346
467
|
}));
|
|
347
468
|
return _fetchUpdateFieldAttrs.apply(this, arguments);
|
|
348
469
|
}
|
|
349
|
-
export function fetchAttrs(
|
|
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
|
|
360
|
-
return _regeneratorRuntime().wrap(function
|
|
361
|
-
while (1) switch (
|
|
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
|
|
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
|
|
489
|
+
return _context18.stop();
|
|
369
490
|
}
|
|
370
|
-
},
|
|
491
|
+
}, _callee18);
|
|
371
492
|
}));
|
|
372
493
|
return _fetchAttrs.apply(this, arguments);
|
|
373
494
|
}
|
|
374
|
-
export function fetchAllBehavior(
|
|
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
|
|
385
|
-
return _regeneratorRuntime().wrap(function
|
|
386
|
-
while (1) switch (
|
|
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
|
|
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
|
|
514
|
+
return _context19.stop();
|
|
394
515
|
}
|
|
395
|
-
},
|
|
516
|
+
}, _callee19);
|
|
396
517
|
}));
|
|
397
518
|
return _fetchAllBehavior.apply(this, arguments);
|
|
398
519
|
}
|
|
399
|
-
export function fetchAllSerials(
|
|
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
|
|
410
|
-
return _regeneratorRuntime().wrap(function
|
|
411
|
-
while (1) switch (
|
|
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
|
|
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
|
|
539
|
+
return _context20.stop();
|
|
419
540
|
}
|
|
420
|
-
},
|
|
541
|
+
}, _callee20);
|
|
421
542
|
}));
|
|
422
543
|
return _fetchAllSerials.apply(this, arguments);
|
|
423
544
|
}
|
|
424
|
-
export function fetchAllBehaviorEx(
|
|
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
|
|
429
|
-
return _regeneratorRuntime().wrap(function
|
|
430
|
-
while (1) switch (
|
|
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
|
|
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
|
|
558
|
+
return _context21.stop();
|
|
438
559
|
}
|
|
439
|
-
},
|
|
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(
|
|
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
|
|
465
|
-
return _regeneratorRuntime().wrap(function
|
|
466
|
-
while (1) switch (
|
|
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
|
|
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
|
|
599
|
+
return _context22.stop();
|
|
479
600
|
}
|
|
480
|
-
},
|
|
601
|
+
}, _callee22);
|
|
481
602
|
}));
|
|
482
603
|
return _fetchCallBehavior.apply(this, arguments);
|
|
483
604
|
}
|
|
484
|
-
export function fetchClearCache(
|
|
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
|
|
495
|
-
return _regeneratorRuntime().wrap(function
|
|
496
|
-
while (1) switch (
|
|
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
|
|
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
|
|
624
|
+
return _context23.stop();
|
|
504
625
|
}
|
|
505
|
-
},
|
|
626
|
+
}, _callee23);
|
|
506
627
|
}));
|
|
507
628
|
return _fetchClearCache.apply(this, arguments);
|
|
508
629
|
}
|
|
509
|
-
export function fetchUpdatePageData(
|
|
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
|
|
520
|
-
return _regeneratorRuntime().wrap(function
|
|
521
|
-
while (1) switch (
|
|
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
|
|
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
|
|
650
|
+
return _context24.stop();
|
|
530
651
|
}
|
|
531
|
-
},
|
|
652
|
+
}, _callee24);
|
|
532
653
|
}));
|
|
533
654
|
return _fetchUpdatePageData.apply(this, arguments);
|
|
534
655
|
}
|
|
535
|
-
export function fetchDataDic(
|
|
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
|
|
546
|
-
return _regeneratorRuntime().wrap(function
|
|
547
|
-
while (1) switch (
|
|
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
|
|
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
|
|
675
|
+
return _context25.stop();
|
|
555
676
|
}
|
|
556
|
-
},
|
|
677
|
+
}, _callee25);
|
|
557
678
|
}));
|
|
558
679
|
return _fetchDataDic.apply(this, arguments);
|
|
559
680
|
}
|
|
560
|
-
export function exportExcel(
|
|
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
|
|
691
|
+
_exportExcel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26(params, data) {
|
|
571
692
|
var mdCode, FUNC_NAME;
|
|
572
|
-
return _regeneratorRuntime().wrap(function
|
|
573
|
-
while (1) switch (
|
|
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
|
|
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
|
|
706
|
+
return _context26.stop();
|
|
586
707
|
}
|
|
587
|
-
},
|
|
708
|
+
}, _callee26);
|
|
588
709
|
}));
|
|
589
710
|
return _exportExcel.apply(this, arguments);
|
|
590
711
|
}
|
|
591
|
-
export function uploadTemplate(
|
|
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
|
|
719
|
+
_uploadTemplate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27(params, data) {
|
|
599
720
|
var mdCode, FUNC_NAME;
|
|
600
|
-
return _regeneratorRuntime().wrap(function
|
|
601
|
-
while (1) switch (
|
|
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
|
|
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
|
|
732
|
+
return _context27.stop();
|
|
612
733
|
}
|
|
613
|
-
},
|
|
734
|
+
}, _callee27);
|
|
614
735
|
}));
|
|
615
736
|
return _uploadTemplate.apply(this, arguments);
|
|
616
737
|
}
|
|
617
|
-
export function getFindexcelstate(
|
|
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
|
|
742
|
+
_getFindexcelstate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28(params, data) {
|
|
622
743
|
var mdCode, FUNC_NAME;
|
|
623
|
-
return _regeneratorRuntime().wrap(function
|
|
624
|
-
while (1) switch (
|
|
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
|
|
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
|
|
757
|
+
return _context28.stop();
|
|
637
758
|
}
|
|
638
|
-
},
|
|
759
|
+
}, _callee28);
|
|
639
760
|
}));
|
|
640
761
|
return _getFindexcelstate.apply(this, arguments);
|
|
641
762
|
}
|
|
642
|
-
export function noAuthGetTemplateUrl(
|
|
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
|
|
769
|
+
_noAuthGetTemplateUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29(params) {
|
|
652
770
|
var mdCode;
|
|
653
|
-
return _regeneratorRuntime().wrap(function
|
|
654
|
-
while (1) switch (
|
|
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
|
|
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
|
|
784
|
+
return _context29.stop();
|
|
667
785
|
}
|
|
668
|
-
},
|
|
786
|
+
}, _callee29);
|
|
669
787
|
}));
|
|
670
788
|
return _noAuthGetTemplateUrl.apply(this, arguments);
|
|
671
789
|
}
|
|
672
|
-
export function
|
|
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
|
|
677
|
-
return _regeneratorRuntime().wrap(function
|
|
678
|
-
while (1) switch (
|
|
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
|
|
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
|
|
828
|
+
return _context31.stop();
|
|
687
829
|
}
|
|
688
|
-
},
|
|
830
|
+
}, _callee31);
|
|
689
831
|
}));
|
|
690
832
|
return _fetchSearchUser.apply(this, arguments);
|
|
691
833
|
}
|