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