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