@luck-design-biz/luckda 1.0.2-13 → 1.0.2-14
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/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/form.js +21 -21
- package/lowcode.js +1 -1
- package/package.json +175 -175
- package/upload.js +1 -1
- package/utils.js +1 -1
|
@@ -16,27 +16,27 @@ var API_PREFIX_PAGE = "".concat(api.LUCKDA_HOST, "/page");
|
|
|
16
16
|
var API_PREFIX_MODULE = "".concat(api.LUCKDA_HOST, "/module");
|
|
17
17
|
var API_RREFIX_DATASET = "".concat(API_PREFIX_MODULE, "/dataset");
|
|
18
18
|
|
|
19
|
-
/**
|
|
20
|
-
* 获取历史版本列表
|
|
21
|
-
* @async
|
|
22
|
-
* @function fetchHistoryVersionList
|
|
23
|
-
* @param {Object} params - 请求参数
|
|
24
|
-
* @param {string} params.pageCode - 菜单编码
|
|
25
|
-
* @returns {Promise<Object>} 返回历史版本列表的Promise
|
|
19
|
+
/**
|
|
20
|
+
* 获取历史版本列表
|
|
21
|
+
* @async
|
|
22
|
+
* @function fetchHistoryVersionList
|
|
23
|
+
* @param {Object} params - 请求参数
|
|
24
|
+
* @param {string} params.pageCode - 菜单编码
|
|
25
|
+
* @returns {Promise<Object>} 返回历史版本列表的Promise
|
|
26
26
|
*/
|
|
27
27
|
export function fetchHistoryVersionList(_x) {
|
|
28
28
|
return _fetchHistoryVersionList.apply(this, arguments);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
/**
|
|
32
|
-
* 添加历史版本
|
|
33
|
-
* @async
|
|
34
|
-
* @function fetchAddHistoryVersion
|
|
35
|
-
* @param {Object} data - 要添加的历史版本数据
|
|
36
|
-
* @param {string} params.pageCode - 菜单编码
|
|
37
|
-
* @param {string} params.backupName - 版本名称
|
|
38
|
-
* @param {string} params.backupNote - 版本描述
|
|
39
|
-
* @returns {Promise<Object>} 返回添加历史版本的Promise
|
|
31
|
+
/**
|
|
32
|
+
* 添加历史版本
|
|
33
|
+
* @async
|
|
34
|
+
* @function fetchAddHistoryVersion
|
|
35
|
+
* @param {Object} data - 要添加的历史版本数据
|
|
36
|
+
* @param {string} params.pageCode - 菜单编码
|
|
37
|
+
* @param {string} params.backupName - 版本名称
|
|
38
|
+
* @param {string} params.backupNote - 版本描述
|
|
39
|
+
* @returns {Promise<Object>} 返回添加历史版本的Promise
|
|
40
40
|
*/
|
|
41
41
|
function _fetchHistoryVersionList() {
|
|
42
42
|
_fetchHistoryVersionList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
@@ -58,13 +58,13 @@ export function fetchAddHistoryVersion(_x2) {
|
|
|
58
58
|
return _fetchAddHistoryVersion.apply(this, arguments);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
/**
|
|
62
|
-
* 删除历史版本
|
|
63
|
-
* @async
|
|
64
|
-
* @function fetchDelHistoryVersion
|
|
65
|
-
* @param {Object} data - 要删除的历史版本数据
|
|
66
|
-
* @param {string} data.uid - 历史版本的唯一标识
|
|
67
|
-
* @returns {Promise<Object>} 返回删除历史版本的Promise
|
|
61
|
+
/**
|
|
62
|
+
* 删除历史版本
|
|
63
|
+
* @async
|
|
64
|
+
* @function fetchDelHistoryVersion
|
|
65
|
+
* @param {Object} data - 要删除的历史版本数据
|
|
66
|
+
* @param {string} data.uid - 历史版本的唯一标识
|
|
67
|
+
* @returns {Promise<Object>} 返回删除历史版本的Promise
|
|
68
68
|
*/
|
|
69
69
|
function _fetchAddHistoryVersion() {
|
|
70
70
|
_fetchAddHistoryVersion = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(data) {
|
|
@@ -87,13 +87,13 @@ export function fetchDelHistoryVersion(_x3) {
|
|
|
87
87
|
return _fetchDelHistoryVersion.apply(this, arguments);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
/**
|
|
91
|
-
* 恢复历史版本
|
|
92
|
-
* @async
|
|
93
|
-
* @function fetchRecoverHistoryVersion
|
|
94
|
-
* @param {Object} data - 要恢复的历史版本数据
|
|
95
|
-
* @param {string} data.uid - 历史版本的唯一标识
|
|
96
|
-
* @returns {Promise<Object>} 返回恢复历史版本的Promise
|
|
90
|
+
/**
|
|
91
|
+
* 恢复历史版本
|
|
92
|
+
* @async
|
|
93
|
+
* @function fetchRecoverHistoryVersion
|
|
94
|
+
* @param {Object} data - 要恢复的历史版本数据
|
|
95
|
+
* @param {string} data.uid - 历史版本的唯一标识
|
|
96
|
+
* @returns {Promise<Object>} 返回恢复历史版本的Promise
|
|
97
97
|
*/
|
|
98
98
|
function _fetchDelHistoryVersion() {
|
|
99
99
|
_fetchDelHistoryVersion = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(data) {
|
|
@@ -116,13 +116,13 @@ export function fetchRecoverHistoryVersion(_x4) {
|
|
|
116
116
|
return _fetchRecoverHistoryVersion.apply(this, arguments);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
/**
|
|
120
|
-
* 通过菜单编码获取page相关数据
|
|
121
|
-
* @async
|
|
122
|
-
* @function fetchPageData
|
|
123
|
-
* @param {Object} params - 请求参数
|
|
124
|
-
* @param {string} params.code - 菜单编码
|
|
125
|
-
* @returns {Promise<Object>} 返回page相关数据的Promise
|
|
119
|
+
/**
|
|
120
|
+
* 通过菜单编码获取page相关数据
|
|
121
|
+
* @async
|
|
122
|
+
* @function fetchPageData
|
|
123
|
+
* @param {Object} params - 请求参数
|
|
124
|
+
* @param {string} params.code - 菜单编码
|
|
125
|
+
* @returns {Promise<Object>} 返回page相关数据的Promise
|
|
126
126
|
*/
|
|
127
127
|
function _fetchRecoverHistoryVersion() {
|
|
128
128
|
_fetchRecoverHistoryVersion = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(data) {
|
|
@@ -145,9 +145,9 @@ export function fetchPageData(_x5) {
|
|
|
145
145
|
return _fetchPageData.apply(this, arguments);
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
/**
|
|
149
|
-
* 获取design时模块数据
|
|
150
|
-
* @param {{moduleCode: string}} params
|
|
148
|
+
/**
|
|
149
|
+
* 获取design时模块数据
|
|
150
|
+
* @param {{moduleCode: string}} params
|
|
151
151
|
*/
|
|
152
152
|
function _fetchPageData() {
|
|
153
153
|
_fetchPageData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(params) {
|
|
@@ -169,18 +169,18 @@ export function fetchDesignModlueData(_x6, _x7) {
|
|
|
169
169
|
return _fetchDesignModlueData.apply(this, arguments);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
/**
|
|
173
|
-
* 获取preview时模块数据
|
|
174
|
-
* @param {*} dmCode
|
|
175
|
-
* @param {*} params
|
|
176
|
-
* @returns
|
|
172
|
+
/**
|
|
173
|
+
* 获取preview时模块数据
|
|
174
|
+
* @param {*} dmCode
|
|
175
|
+
* @param {*} params
|
|
176
|
+
* @returns
|
|
177
177
|
*/
|
|
178
178
|
function _fetchDesignModlueData() {
|
|
179
179
|
_fetchDesignModlueData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(_, params) {
|
|
180
180
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
181
181
|
while (1) switch (_context6.prev = _context6.next) {
|
|
182
182
|
case 0:
|
|
183
|
-
return _context6.abrupt("return", request("".concat(API_PREFIX_PAGE, "/
|
|
183
|
+
return _context6.abrupt("return", request("".concat(API_PREFIX_PAGE, "/fetchModuleInfos"), {
|
|
184
184
|
params: params,
|
|
185
185
|
headers: _defineProperty({}, LC_RUNTIME_KEY, getMetaAttr(LC_RUNTIME_KEY))
|
|
186
186
|
}));
|
|
@@ -196,16 +196,16 @@ export function fetchPreviewModlueData(_x8, _x9) {
|
|
|
196
196
|
return _fetchPreviewModlueData.apply(this, arguments);
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
/**
|
|
200
|
-
* 获取live时模块数据
|
|
201
|
-
* @param {{moduleCode: string}} params
|
|
199
|
+
/**
|
|
200
|
+
* 获取live时模块数据
|
|
201
|
+
* @param {{moduleCode: string}} params
|
|
202
202
|
*/
|
|
203
203
|
function _fetchPreviewModlueData() {
|
|
204
204
|
_fetchPreviewModlueData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(dmCode, params) {
|
|
205
205
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
206
206
|
while (1) switch (_context7.prev = _context7.next) {
|
|
207
207
|
case 0:
|
|
208
|
-
return _context7.abrupt("return", request("".concat(api.API_HOST, "/").concat(dmCode, "/ui/builder/
|
|
208
|
+
return _context7.abrupt("return", request("".concat(api.API_HOST, "/").concat(dmCode, "/ui/builder/fetchModulesForPreview"), {
|
|
209
209
|
params: params,
|
|
210
210
|
headers: _defineProperty({}, LC_RUNTIME_KEY, getMetaAttr(LC_RUNTIME_KEY))
|
|
211
211
|
}));
|
|
@@ -221,16 +221,16 @@ export function fetchModlueData(_x10, _x11) {
|
|
|
221
221
|
return _fetchModlueData.apply(this, arguments);
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
/**
|
|
225
|
-
* 获取数据模型下的所有数据集
|
|
226
|
-
* @param {{ dataModelKey }} params
|
|
224
|
+
/**
|
|
225
|
+
* 获取数据模型下的所有数据集
|
|
226
|
+
* @param {{ dataModelKey }} params
|
|
227
227
|
*/
|
|
228
228
|
function _fetchModlueData() {
|
|
229
229
|
_fetchModlueData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(dmCode, params) {
|
|
230
230
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
231
231
|
while (1) switch (_context8.prev = _context8.next) {
|
|
232
232
|
case 0:
|
|
233
|
-
return _context8.abrupt("return", request("".concat(api.API_HOST, "/").concat(dmCode, "/ui/builder/
|
|
233
|
+
return _context8.abrupt("return", request("".concat(api.API_HOST, "/").concat(dmCode, "/ui/builder/noAuthFetchModules"), {
|
|
234
234
|
params: params,
|
|
235
235
|
headers: _defineProperty({}, LC_RUNTIME_KEY, getMetaAttr(LC_RUNTIME_KEY))
|
|
236
236
|
}));
|
|
@@ -246,9 +246,9 @@ export function fetchAllDataset(_x12) {
|
|
|
246
246
|
return _fetchAllDataset.apply(this, arguments);
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
-
/**
|
|
250
|
-
* 向模块中添加数据集
|
|
251
|
-
* @data {{ uid, dataModelKey, addList: { code, datasetUid }}} body数据
|
|
249
|
+
/**
|
|
250
|
+
* 向模块中添加数据集
|
|
251
|
+
* @data {{ uid, dataModelKey, addList: { code, datasetUid }}} body数据
|
|
252
252
|
*/
|
|
253
253
|
function _fetchAllDataset() {
|
|
254
254
|
_fetchAllDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(params) {
|
|
@@ -270,9 +270,9 @@ export function fetchAddDataset(_x13) {
|
|
|
270
270
|
return _fetchAddDataset.apply(this, arguments);
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
/**
|
|
274
|
-
*
|
|
275
|
-
* @param {{
|
|
273
|
+
/**
|
|
274
|
+
* 获取数据模型下的菜单
|
|
275
|
+
* @param {{ dataModelKey, menuType }} params
|
|
276
276
|
*/
|
|
277
277
|
function _fetchAddDataset() {
|
|
278
278
|
_fetchAddDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(data) {
|
|
@@ -291,21 +291,20 @@ function _fetchAddDataset() {
|
|
|
291
291
|
}));
|
|
292
292
|
return _fetchAddDataset.apply(this, arguments);
|
|
293
293
|
}
|
|
294
|
-
export function
|
|
295
|
-
return
|
|
294
|
+
export function fetchMenuTree(_x14) {
|
|
295
|
+
return _fetchMenuTree.apply(this, arguments);
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
/**
|
|
299
|
-
*
|
|
300
|
-
* @param {{
|
|
301
|
-
* @returns
|
|
298
|
+
/**
|
|
299
|
+
* 获取数据集下的所有字段
|
|
300
|
+
* @param {{datasetUid}} params
|
|
302
301
|
*/
|
|
303
|
-
function
|
|
304
|
-
|
|
302
|
+
function _fetchMenuTree() {
|
|
303
|
+
_fetchMenuTree = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(params) {
|
|
305
304
|
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
306
305
|
while (1) switch (_context11.prev = _context11.next) {
|
|
307
306
|
case 0:
|
|
308
|
-
return _context11.abrupt("return", request("".concat(
|
|
307
|
+
return _context11.abrupt("return", request("".concat(API_PREFIX_PAGE, "/readMenuTree"), {
|
|
309
308
|
params: params
|
|
310
309
|
}));
|
|
311
310
|
case 1:
|
|
@@ -314,22 +313,23 @@ function _fetchFieldsByDataset() {
|
|
|
314
313
|
}
|
|
315
314
|
}, _callee11);
|
|
316
315
|
}));
|
|
317
|
-
return
|
|
316
|
+
return _fetchMenuTree.apply(this, arguments);
|
|
318
317
|
}
|
|
319
|
-
export function
|
|
320
|
-
return
|
|
318
|
+
export function fetchFieldsByDataset(_x15) {
|
|
319
|
+
return _fetchFieldsByDataset.apply(this, arguments);
|
|
321
320
|
}
|
|
322
321
|
|
|
323
|
-
/**
|
|
324
|
-
*
|
|
325
|
-
* @param {{moduleId,datasetId,moduleFieldId}} params
|
|
322
|
+
/**
|
|
323
|
+
* 获取字段配置条件
|
|
324
|
+
* @param {{moduleId,datasetId,moduleFieldId}} params
|
|
325
|
+
* @returns
|
|
326
326
|
*/
|
|
327
|
-
function
|
|
328
|
-
|
|
327
|
+
function _fetchFieldsByDataset() {
|
|
328
|
+
_fetchFieldsByDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(params) {
|
|
329
329
|
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
330
330
|
while (1) switch (_context12.prev = _context12.next) {
|
|
331
331
|
case 0:
|
|
332
|
-
return _context12.abrupt("return", request("".concat(
|
|
332
|
+
return _context12.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/readAll"), {
|
|
333
333
|
params: params
|
|
334
334
|
}));
|
|
335
335
|
case 1:
|
|
@@ -338,25 +338,23 @@ function _fetchFieldCondition() {
|
|
|
338
338
|
}
|
|
339
339
|
}, _callee12);
|
|
340
340
|
}));
|
|
341
|
-
return
|
|
341
|
+
return _fetchFieldsByDataset.apply(this, arguments);
|
|
342
342
|
}
|
|
343
|
-
export function
|
|
344
|
-
return
|
|
343
|
+
export function fetchFieldCondition(_x16) {
|
|
344
|
+
return _fetchFieldCondition.apply(this, arguments);
|
|
345
345
|
}
|
|
346
346
|
|
|
347
|
-
/**
|
|
348
|
-
*
|
|
349
|
-
* @param {
|
|
350
|
-
* @returns
|
|
347
|
+
/**
|
|
348
|
+
* 更新是否标题字段
|
|
349
|
+
* @param {{moduleId,datasetId,moduleFieldId}} params
|
|
351
350
|
*/
|
|
352
|
-
function
|
|
353
|
-
|
|
351
|
+
function _fetchFieldCondition() {
|
|
352
|
+
_fetchFieldCondition = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(params) {
|
|
354
353
|
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
355
354
|
while (1) switch (_context13.prev = _context13.next) {
|
|
356
355
|
case 0:
|
|
357
|
-
return _context13.abrupt("return", request("".concat(
|
|
358
|
-
|
|
359
|
-
data: data
|
|
356
|
+
return _context13.abrupt("return", request("".concat(API_PREFIX_PAGE, "/readFieldCondition"), {
|
|
357
|
+
params: params
|
|
360
358
|
}));
|
|
361
359
|
case 1:
|
|
362
360
|
case "end":
|
|
@@ -364,22 +362,23 @@ function _fetchUpdateTitleField() {
|
|
|
364
362
|
}
|
|
365
363
|
}, _callee13);
|
|
366
364
|
}));
|
|
367
|
-
return
|
|
365
|
+
return _fetchFieldCondition.apply(this, arguments);
|
|
368
366
|
}
|
|
369
|
-
export function
|
|
370
|
-
return
|
|
367
|
+
export function fetchUpdateTitleField(_x17) {
|
|
368
|
+
return _fetchUpdateTitleField.apply(this, arguments);
|
|
371
369
|
}
|
|
372
370
|
|
|
373
|
-
/**
|
|
374
|
-
*
|
|
375
|
-
* @param {*} data
|
|
371
|
+
/**
|
|
372
|
+
* 更新是否唯一校验
|
|
373
|
+
* @param {*} data
|
|
374
|
+
* @returns
|
|
376
375
|
*/
|
|
377
|
-
function
|
|
378
|
-
|
|
376
|
+
function _fetchUpdateTitleField() {
|
|
377
|
+
_fetchUpdateTitleField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(data) {
|
|
379
378
|
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
380
379
|
while (1) switch (_context14.prev = _context14.next) {
|
|
381
380
|
case 0:
|
|
382
|
-
return _context14.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/
|
|
381
|
+
return _context14.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/updateTitleField"), {
|
|
383
382
|
method: 'POST',
|
|
384
383
|
data: data
|
|
385
384
|
}));
|
|
@@ -389,24 +388,24 @@ function _fetchUpdateUniqueField() {
|
|
|
389
388
|
}
|
|
390
389
|
}, _callee14);
|
|
391
390
|
}));
|
|
392
|
-
return
|
|
391
|
+
return _fetchUpdateTitleField.apply(this, arguments);
|
|
393
392
|
}
|
|
394
|
-
export function
|
|
395
|
-
return
|
|
393
|
+
export function fetchUpdateUniqueField(_x18) {
|
|
394
|
+
return _fetchUpdateUniqueField.apply(this, arguments);
|
|
396
395
|
}
|
|
397
396
|
|
|
398
|
-
/**
|
|
399
|
-
*
|
|
400
|
-
* @param {*} data
|
|
397
|
+
/**
|
|
398
|
+
* 新增字段属性
|
|
399
|
+
* @param {*} data
|
|
401
400
|
*/
|
|
402
|
-
function
|
|
403
|
-
|
|
401
|
+
function _fetchUpdateUniqueField() {
|
|
402
|
+
_fetchUpdateUniqueField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(data) {
|
|
404
403
|
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
405
404
|
while (1) switch (_context15.prev = _context15.next) {
|
|
406
405
|
case 0:
|
|
407
|
-
return _context15.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/
|
|
408
|
-
|
|
409
|
-
|
|
406
|
+
return _context15.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/updateUniqueField"), {
|
|
407
|
+
method: 'POST',
|
|
408
|
+
data: data
|
|
410
409
|
}));
|
|
411
410
|
case 1:
|
|
412
411
|
case "end":
|
|
@@ -414,22 +413,22 @@ function _fetchAddFieldAttrs() {
|
|
|
414
413
|
}
|
|
415
414
|
}, _callee15);
|
|
416
415
|
}));
|
|
417
|
-
return
|
|
416
|
+
return _fetchUpdateUniqueField.apply(this, arguments);
|
|
418
417
|
}
|
|
419
|
-
export function
|
|
420
|
-
return
|
|
418
|
+
export function fetchAddFieldAttrs(_x19) {
|
|
419
|
+
return _fetchAddFieldAttrs.apply(this, arguments);
|
|
421
420
|
}
|
|
422
421
|
|
|
423
|
-
/**
|
|
424
|
-
*
|
|
425
|
-
* @param {*}
|
|
422
|
+
/**
|
|
423
|
+
* 删除字段属性
|
|
424
|
+
* @param {*} data
|
|
426
425
|
*/
|
|
427
|
-
function
|
|
428
|
-
|
|
426
|
+
function _fetchAddFieldAttrs() {
|
|
427
|
+
_fetchAddFieldAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(data) {
|
|
429
428
|
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
430
429
|
while (1) switch (_context16.prev = _context16.next) {
|
|
431
430
|
case 0:
|
|
432
|
-
return _context16.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/
|
|
431
|
+
return _context16.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/addAttributes"), {
|
|
433
432
|
data: data,
|
|
434
433
|
method: 'POST'
|
|
435
434
|
}));
|
|
@@ -439,23 +438,22 @@ function _fetchDelAttrs() {
|
|
|
439
438
|
}
|
|
440
439
|
}, _callee16);
|
|
441
440
|
}));
|
|
442
|
-
return
|
|
441
|
+
return _fetchAddFieldAttrs.apply(this, arguments);
|
|
443
442
|
}
|
|
444
|
-
export function
|
|
445
|
-
return
|
|
443
|
+
export function fetchDelAttrs(_x20) {
|
|
444
|
+
return _fetchDelAttrs.apply(this, arguments);
|
|
446
445
|
}
|
|
447
446
|
|
|
448
|
-
/**
|
|
449
|
-
*
|
|
450
|
-
* @param {
|
|
451
|
-
* @returns
|
|
447
|
+
/**
|
|
448
|
+
* 更新字段属性
|
|
449
|
+
* @param {*} params
|
|
452
450
|
*/
|
|
453
|
-
function
|
|
454
|
-
|
|
451
|
+
function _fetchDelAttrs() {
|
|
452
|
+
_fetchDelAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(data) {
|
|
455
453
|
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
456
454
|
while (1) switch (_context17.prev = _context17.next) {
|
|
457
455
|
case 0:
|
|
458
|
-
return _context17.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/
|
|
456
|
+
return _context17.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/deleteAttributes"), {
|
|
459
457
|
data: data,
|
|
460
458
|
method: 'POST'
|
|
461
459
|
}));
|
|
@@ -465,24 +463,25 @@ function _fetchUpdateFieldAttrs() {
|
|
|
465
463
|
}
|
|
466
464
|
}, _callee17);
|
|
467
465
|
}));
|
|
468
|
-
return
|
|
466
|
+
return _fetchDelAttrs.apply(this, arguments);
|
|
469
467
|
}
|
|
470
|
-
export function
|
|
471
|
-
return
|
|
468
|
+
export function fetchUpdateFieldAttrs(_x21) {
|
|
469
|
+
return _fetchUpdateFieldAttrs.apply(this, arguments);
|
|
472
470
|
}
|
|
473
471
|
|
|
474
|
-
/**
|
|
475
|
-
*
|
|
476
|
-
* @param {{uid}} params
|
|
477
|
-
* @returns
|
|
472
|
+
/**
|
|
473
|
+
* 读取字段配置的属性
|
|
474
|
+
* @param {{uid, scope}} params
|
|
475
|
+
* @returns
|
|
478
476
|
*/
|
|
479
|
-
function
|
|
480
|
-
|
|
477
|
+
function _fetchUpdateFieldAttrs() {
|
|
478
|
+
_fetchUpdateFieldAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(data) {
|
|
481
479
|
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
482
480
|
while (1) switch (_context18.prev = _context18.next) {
|
|
483
481
|
case 0:
|
|
484
|
-
return _context18.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/
|
|
485
|
-
|
|
482
|
+
return _context18.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/updateAttributes"), {
|
|
483
|
+
data: data,
|
|
484
|
+
method: 'POST'
|
|
486
485
|
}));
|
|
487
486
|
case 1:
|
|
488
487
|
case "end":
|
|
@@ -490,23 +489,23 @@ function _fetchAttrs() {
|
|
|
490
489
|
}
|
|
491
490
|
}, _callee18);
|
|
492
491
|
}));
|
|
493
|
-
return
|
|
492
|
+
return _fetchUpdateFieldAttrs.apply(this, arguments);
|
|
494
493
|
}
|
|
495
|
-
export function
|
|
496
|
-
return
|
|
494
|
+
export function fetchAttrs(_x22) {
|
|
495
|
+
return _fetchAttrs.apply(this, arguments);
|
|
497
496
|
}
|
|
498
497
|
|
|
499
|
-
/**
|
|
500
|
-
*
|
|
501
|
-
* @param {{uid}} params
|
|
502
|
-
* @returns
|
|
498
|
+
/**
|
|
499
|
+
* 读取所有行为
|
|
500
|
+
* @param {{uid}} params
|
|
501
|
+
* @returns
|
|
503
502
|
*/
|
|
504
|
-
function
|
|
505
|
-
|
|
503
|
+
function _fetchAttrs() {
|
|
504
|
+
_fetchAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(params) {
|
|
506
505
|
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
507
506
|
while (1) switch (_context19.prev = _context19.next) {
|
|
508
507
|
case 0:
|
|
509
|
-
return _context19.abrupt("return", request("".concat(
|
|
508
|
+
return _context19.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/readAttributes"), {
|
|
510
509
|
params: params
|
|
511
510
|
}));
|
|
512
511
|
case 1:
|
|
@@ -515,23 +514,23 @@ function _fetchAllBehavior() {
|
|
|
515
514
|
}
|
|
516
515
|
}, _callee19);
|
|
517
516
|
}));
|
|
518
|
-
return
|
|
517
|
+
return _fetchAttrs.apply(this, arguments);
|
|
519
518
|
}
|
|
520
|
-
export function
|
|
521
|
-
return
|
|
519
|
+
export function fetchAllBehavior(_x23) {
|
|
520
|
+
return _fetchAllBehavior.apply(this, arguments);
|
|
522
521
|
}
|
|
523
522
|
|
|
524
|
-
/**
|
|
525
|
-
*
|
|
526
|
-
* @param {{
|
|
527
|
-
* @returns
|
|
523
|
+
/**
|
|
524
|
+
* 读取所有资源串
|
|
525
|
+
* @param {{uid}} params
|
|
526
|
+
* @returns
|
|
528
527
|
*/
|
|
529
|
-
function
|
|
530
|
-
|
|
528
|
+
function _fetchAllBehavior() {
|
|
529
|
+
_fetchAllBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(params) {
|
|
531
530
|
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
532
531
|
while (1) switch (_context20.prev = _context20.next) {
|
|
533
532
|
case 0:
|
|
534
|
-
return _context20.abrupt("return", request("".concat(API_PREFIX_MODULE, "/
|
|
533
|
+
return _context20.abrupt("return", request("".concat(API_PREFIX_MODULE, "/behavior/readAll"), {
|
|
535
534
|
params: params
|
|
536
535
|
}));
|
|
537
536
|
case 1:
|
|
@@ -540,17 +539,23 @@ function _fetchAllSerials() {
|
|
|
540
539
|
}
|
|
541
540
|
}, _callee20);
|
|
542
541
|
}));
|
|
543
|
-
return
|
|
542
|
+
return _fetchAllBehavior.apply(this, arguments);
|
|
544
543
|
}
|
|
545
|
-
export function
|
|
546
|
-
return
|
|
544
|
+
export function fetchAllSerials(_x24) {
|
|
545
|
+
return _fetchAllSerials.apply(this, arguments);
|
|
547
546
|
}
|
|
548
|
-
|
|
549
|
-
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* 读取导入导出数据源
|
|
550
|
+
* @param {{moduleCode, behaviorMode:[IMPORT, EXPORT]}} params
|
|
551
|
+
* @returns
|
|
552
|
+
*/
|
|
553
|
+
function _fetchAllSerials() {
|
|
554
|
+
_fetchAllSerials = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(params) {
|
|
550
555
|
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
|
551
556
|
while (1) switch (_context21.prev = _context21.next) {
|
|
552
557
|
case 0:
|
|
553
|
-
return _context21.abrupt("return", request("".concat(
|
|
558
|
+
return _context21.abrupt("return", request("".concat(API_PREFIX_MODULE, "/Serials/readAll"), {
|
|
554
559
|
params: params
|
|
555
560
|
}));
|
|
556
561
|
case 1:
|
|
@@ -559,34 +564,47 @@ function _fetchAllBehaviorEx() {
|
|
|
559
564
|
}
|
|
560
565
|
}, _callee21);
|
|
561
566
|
}));
|
|
567
|
+
return _fetchAllSerials.apply(this, arguments);
|
|
568
|
+
}
|
|
569
|
+
export function fetchAllBehaviorEx(_x25) {
|
|
570
|
+
return _fetchAllBehaviorEx.apply(this, arguments);
|
|
571
|
+
}
|
|
572
|
+
function _fetchAllBehaviorEx() {
|
|
573
|
+
_fetchAllBehaviorEx = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(params) {
|
|
574
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
|
575
|
+
while (1) switch (_context22.prev = _context22.next) {
|
|
576
|
+
case 0:
|
|
577
|
+
return _context22.abrupt("return", request("".concat(API_PREFIX_PAGE, "/option/noAuthGetBehavior"), {
|
|
578
|
+
params: params
|
|
579
|
+
}));
|
|
580
|
+
case 1:
|
|
581
|
+
case "end":
|
|
582
|
+
return _context22.stop();
|
|
583
|
+
}
|
|
584
|
+
}, _callee22);
|
|
585
|
+
}));
|
|
562
586
|
return _fetchAllBehaviorEx.apply(this, arguments);
|
|
563
587
|
}
|
|
564
|
-
export function getBehaviorUrl() {
|
|
565
|
-
var mdCode = getLDMetaAttr('dataModelKey');
|
|
588
|
+
export function getBehaviorUrl(_mdCode) {
|
|
589
|
+
var mdCode = _mdCode || getLDMetaAttr('dataModelKey');
|
|
566
590
|
return "".concat(api.API_HOST, "/").concat(mdCode, "/to/behavior/call");
|
|
567
591
|
}
|
|
568
592
|
|
|
569
|
-
/**
|
|
570
|
-
* 执行行为
|
|
571
|
-
* @param {*} params
|
|
572
|
-
* @param {*} data
|
|
573
|
-
* @returns
|
|
593
|
+
/**
|
|
594
|
+
* 执行行为
|
|
595
|
+
* @param {*} params
|
|
596
|
+
* @param {*} data
|
|
597
|
+
* @returns
|
|
574
598
|
*/
|
|
575
|
-
export function fetchCallBehavior(
|
|
599
|
+
export function fetchCallBehavior(_x26, _x27) {
|
|
576
600
|
return _fetchCallBehavior.apply(this, arguments);
|
|
577
601
|
}
|
|
578
|
-
|
|
579
|
-
/**
|
|
580
|
-
* 清除当前模块缓存
|
|
581
|
-
* @param {{moduleCode}} params
|
|
582
|
-
* @returns
|
|
583
|
-
*/
|
|
584
602
|
function _fetchCallBehavior() {
|
|
585
|
-
_fetchCallBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
586
|
-
return _regeneratorRuntime().wrap(function
|
|
587
|
-
while (1) switch (
|
|
603
|
+
_fetchCallBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(params, data) {
|
|
604
|
+
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
|
605
|
+
while (1) switch (_context23.prev = _context23.next) {
|
|
588
606
|
case 0:
|
|
589
|
-
return
|
|
607
|
+
return _context23.abrupt("return", request(getBehaviorUrl(), {
|
|
590
608
|
method: 'POST',
|
|
591
609
|
data: data,
|
|
592
610
|
params: params,
|
|
@@ -596,106 +614,136 @@ function _fetchCallBehavior() {
|
|
|
596
614
|
}));
|
|
597
615
|
case 1:
|
|
598
616
|
case "end":
|
|
599
|
-
return
|
|
617
|
+
return _context23.stop();
|
|
600
618
|
}
|
|
601
|
-
},
|
|
619
|
+
}, _callee23);
|
|
602
620
|
}));
|
|
603
621
|
return _fetchCallBehavior.apply(this, arguments);
|
|
604
622
|
}
|
|
605
|
-
export function
|
|
623
|
+
export function readCallBehavior(_x28, _x29, _x30) {
|
|
624
|
+
return _readCallBehavior.apply(this, arguments);
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* 清除当前模块缓存
|
|
629
|
+
* @param {{moduleCode}} params
|
|
630
|
+
* @returns
|
|
631
|
+
*/
|
|
632
|
+
function _readCallBehavior() {
|
|
633
|
+
_readCallBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(mdCode, params, data) {
|
|
634
|
+
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
|
635
|
+
while (1) switch (_context24.prev = _context24.next) {
|
|
636
|
+
case 0:
|
|
637
|
+
return _context24.abrupt("return", request(getBehaviorUrl(mdCode), {
|
|
638
|
+
method: 'POST',
|
|
639
|
+
data: data,
|
|
640
|
+
params: params,
|
|
641
|
+
headers: _defineProperty({
|
|
642
|
+
'Content-Type': 'application/json;charset=UTF-8'
|
|
643
|
+
}, LC_RUNTIME_KEY, 'live')
|
|
644
|
+
}));
|
|
645
|
+
case 1:
|
|
646
|
+
case "end":
|
|
647
|
+
return _context24.stop();
|
|
648
|
+
}
|
|
649
|
+
}, _callee24);
|
|
650
|
+
}));
|
|
651
|
+
return _readCallBehavior.apply(this, arguments);
|
|
652
|
+
}
|
|
653
|
+
export function fetchClearCache(_x31) {
|
|
606
654
|
return _fetchClearCache.apply(this, arguments);
|
|
607
655
|
}
|
|
608
656
|
|
|
609
|
-
/**
|
|
610
|
-
* 更新页面配置数据
|
|
611
|
-
* @param {*} data
|
|
612
|
-
* @returns
|
|
657
|
+
/**
|
|
658
|
+
* 更新页面配置数据
|
|
659
|
+
* @param {*} data
|
|
660
|
+
* @returns
|
|
613
661
|
*/
|
|
614
662
|
function _fetchClearCache() {
|
|
615
|
-
_fetchClearCache = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
616
|
-
return _regeneratorRuntime().wrap(function
|
|
617
|
-
while (1) switch (
|
|
663
|
+
_fetchClearCache = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25(params) {
|
|
664
|
+
return _regeneratorRuntime().wrap(function _callee25$(_context25) {
|
|
665
|
+
while (1) switch (_context25.prev = _context25.next) {
|
|
618
666
|
case 0:
|
|
619
|
-
return
|
|
667
|
+
return _context25.abrupt("return", request("".concat(api.LUCKDA_HOST, "/cache/manage/noAuthModuleConfigClear"), {
|
|
620
668
|
params: params
|
|
621
669
|
}));
|
|
622
670
|
case 1:
|
|
623
671
|
case "end":
|
|
624
|
-
return
|
|
672
|
+
return _context25.stop();
|
|
625
673
|
}
|
|
626
|
-
},
|
|
674
|
+
}, _callee25);
|
|
627
675
|
}));
|
|
628
676
|
return _fetchClearCache.apply(this, arguments);
|
|
629
677
|
}
|
|
630
|
-
export function fetchUpdatePageData(
|
|
678
|
+
export function fetchUpdatePageData(_x32) {
|
|
631
679
|
return _fetchUpdatePageData.apply(this, arguments);
|
|
632
680
|
}
|
|
633
681
|
|
|
634
|
-
/**
|
|
635
|
-
* 获取数据字典
|
|
636
|
-
* @param {{snamealias}} params
|
|
637
|
-
* @returns
|
|
682
|
+
/**
|
|
683
|
+
* 获取数据字典
|
|
684
|
+
* @param {{snamealias}} params
|
|
685
|
+
* @returns
|
|
638
686
|
*/
|
|
639
687
|
function _fetchUpdatePageData() {
|
|
640
|
-
_fetchUpdatePageData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
641
|
-
return _regeneratorRuntime().wrap(function
|
|
642
|
-
while (1) switch (
|
|
688
|
+
_fetchUpdatePageData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26(data) {
|
|
689
|
+
return _regeneratorRuntime().wrap(function _callee26$(_context26) {
|
|
690
|
+
while (1) switch (_context26.prev = _context26.next) {
|
|
643
691
|
case 0:
|
|
644
|
-
return
|
|
692
|
+
return _context26.abrupt("return", request("".concat(API_PREFIX_PAGE, "/data/update"), {
|
|
645
693
|
method: 'POST',
|
|
646
694
|
data: data
|
|
647
695
|
}));
|
|
648
696
|
case 1:
|
|
649
697
|
case "end":
|
|
650
|
-
return
|
|
698
|
+
return _context26.stop();
|
|
651
699
|
}
|
|
652
|
-
},
|
|
700
|
+
}, _callee26);
|
|
653
701
|
}));
|
|
654
702
|
return _fetchUpdatePageData.apply(this, arguments);
|
|
655
703
|
}
|
|
656
|
-
export function fetchDataDic(
|
|
704
|
+
export function fetchDataDic(_x33) {
|
|
657
705
|
return _fetchDataDic.apply(this, arguments);
|
|
658
706
|
}
|
|
659
707
|
|
|
660
|
-
/**
|
|
661
|
-
* 导出excel
|
|
662
|
-
* @param {*} data
|
|
663
|
-
* @returns
|
|
708
|
+
/**
|
|
709
|
+
* 导出excel
|
|
710
|
+
* @param {*} data
|
|
711
|
+
* @returns
|
|
664
712
|
*/
|
|
665
713
|
function _fetchDataDic() {
|
|
666
|
-
_fetchDataDic = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
667
|
-
return _regeneratorRuntime().wrap(function
|
|
668
|
-
while (1) switch (
|
|
714
|
+
_fetchDataDic = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27(params) {
|
|
715
|
+
return _regeneratorRuntime().wrap(function _callee27$(_context27) {
|
|
716
|
+
while (1) switch (_context27.prev = _context27.next) {
|
|
669
717
|
case 0:
|
|
670
|
-
return
|
|
718
|
+
return _context27.abrupt("return", request("".concat(api.BASE_HOST, "/datadic/sysDatadic/noAuthReadAll"), {
|
|
671
719
|
params: params
|
|
672
720
|
}));
|
|
673
721
|
case 1:
|
|
674
722
|
case "end":
|
|
675
|
-
return
|
|
723
|
+
return _context27.stop();
|
|
676
724
|
}
|
|
677
|
-
},
|
|
725
|
+
}, _callee27);
|
|
678
726
|
}));
|
|
679
727
|
return _fetchDataDic.apply(this, arguments);
|
|
680
728
|
}
|
|
681
|
-
export function exportExcel(
|
|
729
|
+
export function exportExcel(_x34, _x35) {
|
|
682
730
|
return _exportExcel.apply(this, arguments);
|
|
683
731
|
}
|
|
684
732
|
|
|
685
|
-
/**
|
|
686
|
-
* 导入
|
|
687
|
-
* @param {*} params, data
|
|
688
|
-
* @returns
|
|
733
|
+
/**
|
|
734
|
+
* 导入
|
|
735
|
+
* @param {*} params, data
|
|
736
|
+
* @returns
|
|
689
737
|
*/
|
|
690
738
|
function _exportExcel() {
|
|
691
|
-
_exportExcel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
739
|
+
_exportExcel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28(params, data) {
|
|
692
740
|
var mdCode, FUNC_NAME;
|
|
693
|
-
return _regeneratorRuntime().wrap(function
|
|
694
|
-
while (1) switch (
|
|
741
|
+
return _regeneratorRuntime().wrap(function _callee28$(_context28) {
|
|
742
|
+
while (1) switch (_context28.prev = _context28.next) {
|
|
695
743
|
case 0:
|
|
696
744
|
mdCode = getLDMetaAttr('dataModelKey');
|
|
697
745
|
FUNC_NAME = params;
|
|
698
|
-
return
|
|
746
|
+
return _context28.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthExport").concat(FUNC_NAME), {
|
|
699
747
|
method: 'POST',
|
|
700
748
|
data: _objectSpread(_objectSpread({}, data), {}, {
|
|
701
749
|
gatewayUrl: "".concat(window.location.origin).concat(api.API_HOST)
|
|
@@ -703,50 +751,50 @@ function _exportExcel() {
|
|
|
703
751
|
}));
|
|
704
752
|
case 3:
|
|
705
753
|
case "end":
|
|
706
|
-
return
|
|
754
|
+
return _context28.stop();
|
|
707
755
|
}
|
|
708
|
-
},
|
|
756
|
+
}, _callee28);
|
|
709
757
|
}));
|
|
710
758
|
return _exportExcel.apply(this, arguments);
|
|
711
759
|
}
|
|
712
|
-
export function uploadTemplate(
|
|
760
|
+
export function uploadTemplate(_x36, _x37) {
|
|
713
761
|
return _uploadTemplate.apply(this, arguments);
|
|
714
762
|
}
|
|
715
763
|
|
|
716
764
|
// var successCount = 10;
|
|
717
765
|
// 获取导入进度数据
|
|
718
766
|
function _uploadTemplate() {
|
|
719
|
-
_uploadTemplate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
767
|
+
_uploadTemplate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29(params, data) {
|
|
720
768
|
var mdCode, FUNC_NAME;
|
|
721
|
-
return _regeneratorRuntime().wrap(function
|
|
722
|
-
while (1) switch (
|
|
769
|
+
return _regeneratorRuntime().wrap(function _callee29$(_context29) {
|
|
770
|
+
while (1) switch (_context29.prev = _context29.next) {
|
|
723
771
|
case 0:
|
|
724
772
|
mdCode = getLDMetaAttr('dataModelKey');
|
|
725
773
|
FUNC_NAME = params;
|
|
726
|
-
return
|
|
774
|
+
return _context29.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthImport").concat(FUNC_NAME), {
|
|
727
775
|
method: 'POST',
|
|
728
776
|
data: data
|
|
729
777
|
}));
|
|
730
778
|
case 3:
|
|
731
779
|
case "end":
|
|
732
|
-
return
|
|
780
|
+
return _context29.stop();
|
|
733
781
|
}
|
|
734
|
-
},
|
|
782
|
+
}, _callee29);
|
|
735
783
|
}));
|
|
736
784
|
return _uploadTemplate.apply(this, arguments);
|
|
737
785
|
}
|
|
738
|
-
export function getFindexcelstate(
|
|
786
|
+
export function getFindexcelstate(_x38, _x39) {
|
|
739
787
|
return _getFindexcelstate.apply(this, arguments);
|
|
740
788
|
}
|
|
741
789
|
function _getFindexcelstate() {
|
|
742
|
-
_getFindexcelstate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
790
|
+
_getFindexcelstate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30(params, data) {
|
|
743
791
|
var mdCode, FUNC_NAME;
|
|
744
|
-
return _regeneratorRuntime().wrap(function
|
|
745
|
-
while (1) switch (
|
|
792
|
+
return _regeneratorRuntime().wrap(function _callee30$(_context30) {
|
|
793
|
+
while (1) switch (_context30.prev = _context30.next) {
|
|
746
794
|
case 0:
|
|
747
795
|
mdCode = getLDMetaAttr('dataModelKey');
|
|
748
796
|
FUNC_NAME = params;
|
|
749
|
-
return
|
|
797
|
+
return _context30.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthGetProgress").concat(FUNC_NAME), {
|
|
750
798
|
method: 'POST',
|
|
751
799
|
data: _objectSpread(_objectSpread({}, data), {}, {
|
|
752
800
|
gatewayUrl: "".concat(window.location.origin).concat(api.API_HOST)
|
|
@@ -754,28 +802,28 @@ function _getFindexcelstate() {
|
|
|
754
802
|
}));
|
|
755
803
|
case 3:
|
|
756
804
|
case "end":
|
|
757
|
-
return
|
|
805
|
+
return _context30.stop();
|
|
758
806
|
}
|
|
759
|
-
},
|
|
807
|
+
}, _callee30);
|
|
760
808
|
}));
|
|
761
809
|
return _getFindexcelstate.apply(this, arguments);
|
|
762
810
|
}
|
|
763
|
-
export function noAuthGetTemplateUrl(
|
|
811
|
+
export function noAuthGetTemplateUrl(_x40) {
|
|
764
812
|
return _noAuthGetTemplateUrl.apply(this, arguments);
|
|
765
813
|
}
|
|
766
814
|
|
|
767
|
-
/**
|
|
768
|
-
* 页面预览调试获取模拟用户
|
|
769
|
-
* @param {string} sname
|
|
815
|
+
/**
|
|
816
|
+
* 页面预览调试获取模拟用户
|
|
817
|
+
* @param {string} sname
|
|
770
818
|
*/
|
|
771
819
|
function _noAuthGetTemplateUrl() {
|
|
772
|
-
_noAuthGetTemplateUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
820
|
+
_noAuthGetTemplateUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31(params) {
|
|
773
821
|
var mdCode;
|
|
774
|
-
return _regeneratorRuntime().wrap(function
|
|
775
|
-
while (1) switch (
|
|
822
|
+
return _regeneratorRuntime().wrap(function _callee31$(_context31) {
|
|
823
|
+
while (1) switch (_context31.prev = _context31.next) {
|
|
776
824
|
case 0:
|
|
777
825
|
mdCode = getLDMetaAttr('dataModelKey');
|
|
778
|
-
return
|
|
826
|
+
return _context31.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthGetTemplateUrl"), {
|
|
779
827
|
method: 'POST',
|
|
780
828
|
data: {
|
|
781
829
|
gatewayUrl: "".concat(window.location.origin).concat(api.API_HOST),
|
|
@@ -784,29 +832,29 @@ function _noAuthGetTemplateUrl() {
|
|
|
784
832
|
}));
|
|
785
833
|
case 2:
|
|
786
834
|
case "end":
|
|
787
|
-
return
|
|
835
|
+
return _context31.stop();
|
|
788
836
|
}
|
|
789
|
-
},
|
|
837
|
+
}, _callee31);
|
|
790
838
|
}));
|
|
791
839
|
return _noAuthGetTemplateUrl.apply(this, arguments);
|
|
792
840
|
}
|
|
793
|
-
export function fetchSearchUser(
|
|
841
|
+
export function fetchSearchUser(_x41) {
|
|
794
842
|
return _fetchSearchUser.apply(this, arguments);
|
|
795
843
|
}
|
|
796
844
|
function _fetchSearchUser() {
|
|
797
|
-
_fetchSearchUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
798
|
-
return _regeneratorRuntime().wrap(function
|
|
799
|
-
while (1) switch (
|
|
845
|
+
_fetchSearchUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee32(params) {
|
|
846
|
+
return _regeneratorRuntime().wrap(function _callee32$(_context32) {
|
|
847
|
+
while (1) switch (_context32.prev = _context32.next) {
|
|
800
848
|
case 0:
|
|
801
|
-
return
|
|
849
|
+
return _context32.abrupt("return", request("".concat(api.BASE_HOST, "/user/sysUser/noAuthReadUser"), {
|
|
802
850
|
params: params,
|
|
803
851
|
method: 'POST'
|
|
804
852
|
}));
|
|
805
853
|
case 1:
|
|
806
854
|
case "end":
|
|
807
|
-
return
|
|
855
|
+
return _context32.stop();
|
|
808
856
|
}
|
|
809
|
-
},
|
|
857
|
+
}, _callee32);
|
|
810
858
|
}));
|
|
811
859
|
return _fetchSearchUser.apply(this, arguments);
|
|
812
860
|
}
|