@luck-design-biz/luckda 0.0.25-1 → 0.0.25-11
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/es/components/ComplexItem/index.js +92 -0
- package/es/{lowcode/painter/services/toolbar.js → components/ComplexItem/service.js} +7 -11
- package/es/components/LDActions/index.js +8 -10
- package/es/components/LDActions/index.less +7 -4
- package/es/components/LdAutoForm/index.js +34 -11
- package/es/components/LdFormList/index.js +39 -23
- package/es/components/LdGrid/index.js +21 -7
- package/es/components/LdGridForm/index.js +32 -11
- package/es/components/LdTree/index.js +33 -15
- package/es/helper/FromItems.js +177 -94
- package/es/helper/form.js +55 -14
- package/es/helper/props_config.js +17 -0
- package/es/locales/zh-CN.js +26 -11
- package/es/lowcode/constants/api-url.js +354 -104
- package/es/lowcode/constants/event-topics.js +2 -0
- package/es/lowcode/constants/index.js +4 -2
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +5 -2
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +1 -1
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +5 -2
- package/es/lowcode/engine/meta/box.props.default.json +1 -1
- package/es/lowcode/engine/meta/box.props.json +4 -4
- package/es/lowcode/engine/meta/button.props.json +4 -4
- package/es/lowcode/engine/meta/cardlist.props.json +14 -4
- package/es/lowcode/engine/meta/components-list.json +109 -1
- package/es/lowcode/engine/meta/dialog.props.default.json +11 -5
- package/es/lowcode/engine/meta/dialog.props.json +80 -43
- package/es/lowcode/engine/meta/drawer.props.json +9 -21
- package/es/lowcode/engine/meta/fieldcolor.props.default.json +14 -0
- package/es/lowcode/engine/meta/fieldcolor.props.json +63 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.default.json +13 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.json +39 -0
- package/es/lowcode/engine/meta/fielddate.props.default.json +12 -0
- package/es/lowcode/engine/meta/fielddate.props.json +47 -0
- package/es/lowcode/engine/meta/fielddict.props.default.json +14 -0
- package/es/lowcode/engine/meta/fielddict.props.json +44 -0
- package/es/lowcode/engine/meta/fieldeditor.props.default.json +13 -0
- package/es/lowcode/engine/meta/fieldeditor.props.json +44 -0
- package/es/lowcode/engine/meta/fieldgroup.props.default.json +15 -0
- package/es/lowcode/engine/meta/fieldgroup.props.json +73 -0
- package/es/lowcode/engine/meta/fieldnumber.props.default.json +14 -0
- package/es/lowcode/engine/meta/fieldnumber.props.json +48 -0
- package/es/lowcode/engine/meta/fieldradio.props.default.json +12 -0
- package/es/lowcode/engine/meta/fieldradio.props.json +20 -0
- package/es/lowcode/engine/meta/fieldregion.props.default.json +12 -0
- package/es/lowcode/engine/meta/fieldregion.props.json +26 -0
- package/es/lowcode/engine/meta/fieldselect.props.default.json +14 -0
- package/es/lowcode/engine/meta/fieldselect.props.json +58 -0
- package/es/lowcode/engine/meta/fieldstring.props.default.json +16 -0
- package/es/lowcode/engine/meta/fieldstring.props.json +62 -0
- package/es/lowcode/engine/meta/fieldswitch.props.default.json +12 -0
- package/es/lowcode/engine/meta/fieldswitch.props.json +31 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.default.json +13 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.json +49 -0
- package/es/lowcode/engine/meta/fieldupload.props.default.json +15 -0
- package/es/lowcode/engine/meta/fieldupload.props.json +71 -0
- package/es/lowcode/engine/meta/fielduser.props.default.json +16 -0
- package/es/lowcode/engine/meta/fielduser.props.json +82 -0
- package/es/lowcode/engine/meta/fieldyear.props.default.json +12 -0
- package/es/lowcode/engine/meta/fieldyear.props.json +37 -0
- package/es/lowcode/engine/meta/form.props.default.json +4 -5
- package/es/lowcode/engine/meta/form.props.json +44 -35
- package/es/lowcode/engine/meta/image.props.json +2 -2
- package/es/lowcode/engine/meta/imex.props.default.json +8 -1
- package/es/lowcode/engine/meta/imex.props.json +54 -22
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +53 -3
- package/es/lowcode/engine/meta/layout.props.json +2 -2
- package/es/lowcode/engine/meta/link.props.json +1 -1
- package/es/lowcode/engine/meta/page.props.json +2 -2
- package/es/lowcode/engine/meta/pagelayout.props.default.json +14 -0
- package/es/lowcode/engine/meta/pagelayout.props.json +47 -0
- package/es/lowcode/engine/meta/section.props.default.json +4 -6
- package/es/lowcode/engine/meta/section.props.json +52 -49
- package/es/lowcode/engine/meta/split.props.default.json +1 -1
- package/es/lowcode/engine/meta/split.props.json +4 -4
- package/es/lowcode/engine/meta/table.props.json +19 -13
- package/es/lowcode/engine/meta/tabs.props.json +3 -3
- package/es/lowcode/engine/meta/text.props.json +2 -2
- package/es/lowcode/engine/meta/tree.props.default.json +2 -0
- package/es/lowcode/engine/meta/tree.props.json +71 -8
- package/es/lowcode/engine/provider/ContextProvider/index.js +21 -35
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +89 -37
- package/es/lowcode/engine/tools/dataProcess.js +4 -0
- package/es/lowcode/engine/tools/diff.js +60 -0
- package/es/lowcode/engine/tools/helper.js +47 -26
- package/es/lowcode/engine/tools/useCanvasRender.js +8 -9
- package/es/lowcode/engine/tools/usePageDataStore.js +331 -0
- package/es/lowcode/engine/tools/usePromiseState.js +8 -10
- package/es/lowcode/engine/tools/useTodo.js +20 -10
- package/es/lowcode/painter/Design.js +41 -6
- package/es/lowcode/painter/DesignOperator.js +112 -88
- package/es/lowcode/painter/DesignToolbar.js +280 -36
- package/es/lowcode/painter/Outline.js +12 -10
- package/es/lowcode/painter/Panel.js +84 -46
- package/es/lowcode/painter/components/ActionBindModal.js +38 -27
- package/es/lowcode/painter/components/AdvancePanel.js +37 -21
- package/es/lowcode/painter/components/AttrsPanel.js +45 -34
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js +1 -1
- package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js +5 -2
- package/es/lowcode/painter/components/FieldSelector.js +26 -13
- package/es/lowcode/painter/components/ListEditor.js +8 -2
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +3 -2
- package/es/lowcode/painter/components/code-editor/JSEditor.js +5 -9
- package/es/lowcode/painter/components/field-setting/BatchSetting.js +13 -3
- package/es/lowcode/painter/components/field-setting/CheckFrontRules.js +108 -0
- package/es/lowcode/painter/components/field-setting/CheckRules.js +1 -26
- package/es/lowcode/painter/components/field-setting/FieldRulesModal.js +33 -13
- package/es/lowcode/painter/components/field-setting/SettingUI.js +182 -31
- package/es/lowcode/painter/components/field-setting/index.js +40 -61
- package/es/lowcode/painter/components/field-setting/meta/frontRules.js +53 -0
- package/es/lowcode/painter/index.js +1 -28
- package/es/lowcode/painter/panel-section/ActionsColumnWidth.js +25 -0
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +7 -4
- package/es/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +4 -3
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +55 -28
- package/es/lowcode/painter/panel-section/ButtonType.js +4 -2
- package/es/lowcode/painter/panel-section/DataSetSelector.js +30 -7
- package/es/lowcode/painter/panel-section/FieldsSetting.js +124 -55
- package/es/lowcode/painter/panel-section/I18nInput.js +20 -0
- package/es/lowcode/painter/panel-section/ImpExp.js +99 -14
- package/es/lowcode/painter/panel-section/ImpExpAlone.js +108 -0
- package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +95 -0
- package/es/lowcode/painter/panel-section/SerialsSelector.js +4 -2
- package/es/lowcode/painter/panel-section/SplitDisplay.js +25 -110
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +1 -1
- package/es/lowcode/painter/panel-section/StylePanel/index.js +10 -4
- package/es/lowcode/painter/panel-section/TableTopFilter.js +23 -13
- package/es/lowcode/painter/panel-section/TreeRootEditor.js +2 -2
- package/es/lowcode/painter/style/action-bind-modal.less +3 -3
- package/es/lowcode/painter/style/design.less +11 -4
- package/es/lowcode/painter/style/list-editor.less +36 -0
- package/es/lowcode/painter/style/page-layout-display.less +28 -0
- package/es/lowcode/painter/style/panel-item.less +1 -1
- package/es/lowcode/painter/style/split-display.less +0 -9
- package/es/lowcode/preview/index.js +20 -5
- package/es/lowcode/view/Canvas.js +6 -7
- package/es/lowcode/view/Page.js +5 -6
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +3 -2
- package/es/lowcode/view/lc-components/Box/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Box/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Box/meta.json +4 -4
- package/es/lowcode/view/lc-components/Button/index.js +2 -6
- package/es/lowcode/view/lc-components/Button/meta.json +4 -4
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/CardList/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/CardList/meta.json +14 -4
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +3 -12
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +119 -19
- package/es/lowcode/view/lc-components/Dialog/meta.json +73 -43
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Drawer/meta.json +9 -21
- package/es/lowcode/view/lc-components/FieldColor/meta.json +63 -0
- package/es/lowcode/view/lc-components/FieldComplex/meta.json +39 -0
- package/es/lowcode/view/lc-components/FieldDate/meta.json +45 -0
- package/es/lowcode/view/lc-components/FieldDict/meta.json +44 -0
- package/es/lowcode/view/lc-components/FieldEditor/meta.json +44 -0
- package/es/lowcode/view/lc-components/FieldGroup/meta.json +73 -0
- package/es/lowcode/view/lc-components/FieldNumber/meta.json +48 -0
- package/es/lowcode/view/lc-components/FieldRadio/meta.json +20 -0
- package/es/lowcode/view/lc-components/FieldRegion/meta.json +26 -0
- package/es/lowcode/view/lc-components/FieldSelect/meta.json +58 -0
- package/es/lowcode/view/lc-components/FieldString/meta.json +62 -0
- package/es/lowcode/view/lc-components/FieldSwitch/meta.json +31 -0
- package/es/lowcode/view/lc-components/FieldTextarea/meta.json +49 -0
- package/es/lowcode/view/lc-components/FieldUpload/meta.json +71 -0
- package/es/lowcode/view/lc-components/FieldUser/meta.json +82 -0
- package/es/lowcode/view/lc-components/FieldYear/meta.json +35 -0
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +61 -9
- package/es/lowcode/view/lc-components/Form/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Form/FunctionPreview.js +9 -1
- package/es/lowcode/view/lc-components/Form/index.js +401 -66
- package/es/lowcode/view/lc-components/Form/meta.json +44 -35
- package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +9 -3
- package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +470 -11
- package/es/lowcode/view/lc-components/ImEx/index.less +7 -0
- package/es/lowcode/view/lc-components/ImEx/meta.json +55 -23
- package/es/lowcode/view/lc-components/Image/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Image/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Image/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Image/meta.json +2 -2
- package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/JSX/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/JSX/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +13 -21
- package/es/lowcode/view/lc-components/Layout/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Layout/meta.json +2 -2
- package/es/lowcode/view/lc-components/Link/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Link/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Link/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Link/meta.json +1 -1
- package/es/lowcode/view/lc-components/Page/meta.json +2 -2
- package/es/lowcode/view/lc-components/PageContent/index.js +8 -9
- package/es/lowcode/view/lc-components/PageFooter/index.js +2 -5
- package/es/lowcode/view/lc-components/PageHeader/index.js +5 -6
- package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +63 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionLive.js +10 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionPreview.js +10 -0
- package/es/lowcode/view/lc-components/PageLayout/index.js +32 -0
- package/es/lowcode/view/lc-components/PageLayout/meta.json +47 -0
- package/es/lowcode/view/lc-components/PageModal/index.js +12 -15
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +25 -2
- package/es/lowcode/view/lc-components/Section/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Section/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Section/index.js +114 -24
- package/es/lowcode/view/lc-components/Section/index.less +7 -0
- package/es/lowcode/view/lc-components/Section/meta.json +48 -49
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +19 -22
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Split/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Split/index.js +7 -11
- package/es/lowcode/view/lc-components/Split/meta.json +4 -4
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Table/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Table/components/TopFilter.js +78 -57
- package/es/lowcode/view/lc-components/Table/components/TopImex.js +420 -0
- package/es/lowcode/view/lc-components/Table/index.js +294 -47
- package/es/lowcode/view/lc-components/Table/meta.json +19 -13
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +11 -20
- package/es/lowcode/view/lc-components/Tabs/index.js +27 -12
- package/es/lowcode/view/lc-components/Tabs/meta.json +3 -3
- package/es/lowcode/view/lc-components/Text/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Text/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Text/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Text/meta.json +2 -2
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +2 -3
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Tree/index.js +103 -29
- package/es/lowcode/view/lc-components/Tree/meta.json +71 -9
- package/es/lowcode/view/lc-components/Wrapper.js +10 -12
- package/es/services.js +0 -24
- package/es/upload/FilesWall/file.png +0 -0
- package/es/upload/FilesWall/index.js +422 -0
- package/es/upload/FilesWall/index.less +74 -0
- package/es/upload/Form/gridForm.js +10 -5
- package/es/upload/Form/index.js +2 -1
- package/es/upload/FormItem/index.js +8 -9
- package/es/upload/index.js +2 -1
- package/es/utils/action.js +2 -2
- package/es/utils/form.js +16 -3
- package/es/utils/grid.js +8 -5
- package/lib/components/ComplexItem/index.js +100 -0
- package/lib/{lowcode/painter/services/toolbar.js → components/ComplexItem/service.js} +8 -12
- package/lib/components/LDActions/index.js +7 -9
- package/lib/components/LDActions/index.less +7 -4
- package/lib/components/LdAutoForm/index.js +33 -10
- package/lib/components/LdFormList/index.js +38 -22
- package/lib/components/LdGrid/index.js +21 -7
- package/lib/components/LdGridForm/index.js +30 -9
- package/lib/components/LdTree/index.js +33 -15
- package/lib/helper/FromItems.js +175 -92
- package/lib/helper/form.js +53 -13
- package/lib/helper/props_config.js +23 -0
- package/lib/locales/zh-CN.js +26 -11
- package/lib/lowcode/constants/api-url.js +355 -104
- package/lib/lowcode/constants/event-topics.js +3 -1
- package/lib/lowcode/constants/index.js +5 -3
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +7 -4
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +3 -2
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +6 -3
- package/lib/lowcode/engine/meta/box.props.default.json +1 -1
- package/lib/lowcode/engine/meta/box.props.json +4 -4
- package/lib/lowcode/engine/meta/button.props.json +4 -4
- package/lib/lowcode/engine/meta/cardlist.props.json +14 -4
- package/lib/lowcode/engine/meta/components-list.json +109 -1
- package/lib/lowcode/engine/meta/dialog.props.default.json +11 -5
- package/lib/lowcode/engine/meta/dialog.props.json +80 -43
- package/lib/lowcode/engine/meta/drawer.props.json +9 -21
- package/lib/lowcode/engine/meta/fieldcolor.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fieldcolor.props.json +63 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.default.json +13 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.json +39 -0
- package/lib/lowcode/engine/meta/fielddate.props.default.json +12 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +47 -0
- package/lib/lowcode/engine/meta/fielddict.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fielddict.props.json +44 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.default.json +13 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.json +44 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.default.json +15 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.json +73 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.json +48 -0
- package/lib/lowcode/engine/meta/fieldradio.props.default.json +12 -0
- package/lib/lowcode/engine/meta/fieldradio.props.json +20 -0
- package/lib/lowcode/engine/meta/fieldregion.props.default.json +12 -0
- package/lib/lowcode/engine/meta/fieldregion.props.json +26 -0
- package/lib/lowcode/engine/meta/fieldselect.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fieldselect.props.json +58 -0
- package/lib/lowcode/engine/meta/fieldstring.props.default.json +16 -0
- package/lib/lowcode/engine/meta/fieldstring.props.json +62 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.default.json +12 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.json +31 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.default.json +13 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.json +49 -0
- package/lib/lowcode/engine/meta/fieldupload.props.default.json +15 -0
- package/lib/lowcode/engine/meta/fieldupload.props.json +71 -0
- package/lib/lowcode/engine/meta/fielduser.props.default.json +16 -0
- package/lib/lowcode/engine/meta/fielduser.props.json +82 -0
- package/lib/lowcode/engine/meta/fieldyear.props.default.json +12 -0
- package/lib/lowcode/engine/meta/fieldyear.props.json +37 -0
- package/lib/lowcode/engine/meta/form.props.default.json +4 -5
- package/lib/lowcode/engine/meta/form.props.json +44 -35
- package/lib/lowcode/engine/meta/image.props.json +2 -2
- package/lib/lowcode/engine/meta/imex.props.default.json +8 -1
- package/lib/lowcode/engine/meta/imex.props.json +54 -22
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +53 -3
- package/lib/lowcode/engine/meta/layout.props.json +2 -2
- package/lib/lowcode/engine/meta/link.props.json +1 -1
- package/lib/lowcode/engine/meta/page.props.json +2 -2
- package/lib/lowcode/engine/meta/pagelayout.props.default.json +14 -0
- package/lib/lowcode/engine/meta/pagelayout.props.json +47 -0
- package/lib/lowcode/engine/meta/section.props.default.json +4 -6
- package/lib/lowcode/engine/meta/section.props.json +52 -49
- package/lib/lowcode/engine/meta/split.props.default.json +1 -1
- package/lib/lowcode/engine/meta/split.props.json +4 -4
- package/lib/lowcode/engine/meta/table.props.json +19 -13
- package/lib/lowcode/engine/meta/tabs.props.json +3 -3
- package/lib/lowcode/engine/meta/text.props.json +2 -2
- package/lib/lowcode/engine/meta/tree.props.default.json +2 -0
- package/lib/lowcode/engine/meta/tree.props.json +71 -8
- package/lib/lowcode/engine/provider/ContextProvider/index.js +37 -35
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +86 -34
- package/lib/lowcode/engine/tools/dataProcess.js +4 -0
- package/lib/lowcode/engine/tools/diff.js +67 -0
- package/lib/lowcode/engine/tools/helper.js +48 -25
- package/lib/lowcode/engine/tools/useCanvasRender.js +6 -7
- package/lib/lowcode/engine/tools/usePageDataStore.js +338 -0
- package/lib/lowcode/engine/tools/usePromiseState.js +6 -8
- package/lib/lowcode/engine/tools/useTodo.js +19 -9
- package/lib/lowcode/painter/Design.js +39 -4
- package/lib/lowcode/painter/DesignOperator.js +109 -85
- package/lib/lowcode/painter/DesignToolbar.js +277 -33
- package/lib/lowcode/painter/Outline.js +10 -8
- package/lib/lowcode/painter/Panel.js +82 -44
- package/lib/lowcode/painter/components/ActionBindModal.js +36 -25
- package/lib/lowcode/painter/components/AdvancePanel.js +36 -20
- package/lib/lowcode/painter/components/AttrsPanel.js +44 -33
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +1 -1
- package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js +5 -2
- package/lib/lowcode/painter/components/FieldSelector.js +26 -13
- package/lib/lowcode/painter/components/ListEditor.js +8 -2
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +3 -2
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +5 -9
- package/lib/lowcode/painter/components/field-setting/BatchSetting.js +13 -3
- package/lib/lowcode/painter/components/field-setting/CheckFrontRules.js +116 -0
- package/lib/lowcode/painter/components/field-setting/CheckRules.js +1 -26
- package/lib/lowcode/painter/components/field-setting/FieldRulesModal.js +34 -13
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +179 -28
- package/lib/lowcode/painter/components/field-setting/index.js +40 -61
- package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +59 -0
- package/lib/lowcode/painter/index.js +1 -30
- package/lib/lowcode/painter/panel-section/ActionsColumnWidth.js +32 -0
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +7 -4
- package/lib/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +4 -3
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +53 -25
- package/lib/lowcode/painter/panel-section/ButtonType.js +4 -2
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +30 -7
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +121 -52
- package/lib/lowcode/painter/panel-section/I18nInput.js +27 -0
- package/lib/lowcode/painter/panel-section/ImpExp.js +99 -13
- package/lib/lowcode/painter/panel-section/ImpExpAlone.js +114 -0
- package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +103 -0
- package/lib/lowcode/painter/panel-section/SerialsSelector.js +4 -2
- package/lib/lowcode/painter/panel-section/SplitDisplay.js +24 -109
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +5 -4
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +10 -4
- package/lib/lowcode/painter/panel-section/TableTopFilter.js +22 -12
- package/lib/lowcode/painter/panel-section/TreeRootEditor.js +2 -2
- package/lib/lowcode/painter/style/action-bind-modal.less +3 -3
- package/lib/lowcode/painter/style/design.less +11 -4
- package/lib/lowcode/painter/style/list-editor.less +36 -0
- package/lib/lowcode/painter/style/page-layout-display.less +28 -0
- package/lib/lowcode/painter/style/panel-item.less +1 -1
- package/lib/lowcode/painter/style/split-display.less +0 -9
- package/lib/lowcode/preview/index.js +21 -5
- package/lib/lowcode/view/Canvas.js +5 -6
- package/lib/lowcode/view/Page.js +5 -6
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +3 -2
- package/lib/lowcode/view/lc-components/Box/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Box/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Box/meta.json +4 -4
- package/lib/lowcode/view/lc-components/Button/index.js +2 -6
- package/lib/lowcode/view/lc-components/Button/meta.json +4 -4
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/CardList/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/CardList/meta.json +14 -4
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +2 -11
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Dialog/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Dialog/index.js +119 -19
- package/lib/lowcode/view/lc-components/Dialog/meta.json +73 -43
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Drawer/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Drawer/meta.json +9 -21
- package/lib/lowcode/view/lc-components/FieldColor/meta.json +63 -0
- package/lib/lowcode/view/lc-components/FieldComplex/meta.json +39 -0
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +45 -0
- package/lib/lowcode/view/lc-components/FieldDict/meta.json +44 -0
- package/lib/lowcode/view/lc-components/FieldEditor/meta.json +44 -0
- package/lib/lowcode/view/lc-components/FieldGroup/meta.json +73 -0
- package/lib/lowcode/view/lc-components/FieldNumber/meta.json +48 -0
- package/lib/lowcode/view/lc-components/FieldRadio/meta.json +20 -0
- package/lib/lowcode/view/lc-components/FieldRegion/meta.json +26 -0
- package/lib/lowcode/view/lc-components/FieldSelect/meta.json +58 -0
- package/lib/lowcode/view/lc-components/FieldString/meta.json +62 -0
- package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +31 -0
- package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +49 -0
- package/lib/lowcode/view/lc-components/FieldUpload/meta.json +71 -0
- package/lib/lowcode/view/lc-components/FieldUser/meta.json +82 -0
- package/lib/lowcode/view/lc-components/FieldYear/meta.json +35 -0
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +58 -7
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +9 -1
- package/lib/lowcode/view/lc-components/Form/index.js +396 -61
- package/lib/lowcode/view/lc-components/Form/meta.json +44 -35
- package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Iframe/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +9 -3
- package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/ImEx/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/ImEx/index.js +468 -9
- package/lib/lowcode/view/lc-components/ImEx/index.less +7 -0
- package/lib/lowcode/view/lc-components/ImEx/meta.json +55 -23
- package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Image/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Image/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Image/meta.json +2 -2
- package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/JSX/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +11 -19
- package/lib/lowcode/view/lc-components/Layout/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Layout/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Link/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Link/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Link/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Page/meta.json +2 -2
- package/lib/lowcode/view/lc-components/PageContent/index.js +7 -8
- package/lib/lowcode/view/lc-components/PageFooter/index.js +2 -5
- package/lib/lowcode/view/lc-components/PageHeader/index.js +4 -5
- package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +71 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionLive.js +17 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionPreview.js +17 -0
- package/lib/lowcode/view/lc-components/PageLayout/index.js +40 -0
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +47 -0
- package/lib/lowcode/view/lc-components/PageModal/index.js +11 -14
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +25 -2
- package/lib/lowcode/view/lc-components/Section/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Section/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Section/index.js +113 -23
- package/lib/lowcode/view/lc-components/Section/index.less +7 -0
- package/lib/lowcode/view/lc-components/Section/meta.json +48 -49
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +18 -21
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Split/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Split/index.js +4 -8
- package/lib/lowcode/view/lc-components/Split/meta.json +4 -4
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Table/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Table/components/TopFilter.js +75 -55
- package/lib/lowcode/view/lc-components/Table/components/TopImex.js +428 -0
- package/lib/lowcode/view/lc-components/Table/index.js +292 -45
- package/lib/lowcode/view/lc-components/Table/meta.json +19 -13
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +9 -18
- package/lib/lowcode/view/lc-components/Tabs/index.js +26 -11
- package/lib/lowcode/view/lc-components/Tabs/meta.json +3 -3
- package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Text/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Text/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Text/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +2 -3
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Tree/index.js +100 -26
- package/lib/lowcode/view/lc-components/Tree/meta.json +71 -9
- package/lib/lowcode/view/lc-components/Wrapper.js +11 -12
- package/lib/services.js +0 -25
- package/lib/upload/FilesWall/file.png +0 -0
- package/lib/upload/FilesWall/index.js +429 -0
- package/lib/upload/FilesWall/index.less +74 -0
- package/lib/upload/Form/gridForm.js +10 -5
- package/lib/upload/Form/index.js +2 -1
- package/lib/upload/FormItem/index.js +8 -9
- package/lib/upload/index.js +8 -1
- package/lib/utils/action.js +2 -2
- package/lib/utils/form.js +16 -3
- package/lib/utils/grid.js +8 -5
- package/package.json +175 -171
- package/es/lowcode/engine/meta/local/local.zh-cn.js +0 -97
- package/lib/lowcode/engine/meta/local/local.zh-cn.js +0 -103
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
1
2
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
2
3
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
4
|
import { request } from '@luck-design-biz/base/utils';
|
|
4
5
|
import api from "@/services/ApiConfig";
|
|
5
|
-
import {
|
|
6
|
+
import { getLDMetaAttr } from "../engine/tools/helper";
|
|
6
7
|
|
|
7
8
|
// icon地址
|
|
8
9
|
export var ICONLIST_URL = '/public/icons/iconfont.json';
|
|
@@ -46,8 +47,10 @@ export function fetchDesignModlueData(_x2, _x3) {
|
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
/**
|
|
49
|
-
*
|
|
50
|
-
* @param {
|
|
50
|
+
* 获取preview时模块数据
|
|
51
|
+
* @param {*} dmCode
|
|
52
|
+
* @param {*} params
|
|
53
|
+
* @returns
|
|
51
54
|
*/
|
|
52
55
|
function _fetchDesignModlueData() {
|
|
53
56
|
_fetchDesignModlueData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_, params) {
|
|
@@ -65,20 +68,20 @@ function _fetchDesignModlueData() {
|
|
|
65
68
|
}));
|
|
66
69
|
return _fetchDesignModlueData.apply(this, arguments);
|
|
67
70
|
}
|
|
68
|
-
export function
|
|
69
|
-
return
|
|
71
|
+
export function fetchPreviewModlueData(_x4, _x5) {
|
|
72
|
+
return _fetchPreviewModlueData.apply(this, arguments);
|
|
70
73
|
}
|
|
71
74
|
|
|
72
75
|
/**
|
|
73
|
-
*
|
|
74
|
-
* @param {{
|
|
76
|
+
* 获取live时模块数据
|
|
77
|
+
* @param {{moduleCode: string}} params
|
|
75
78
|
*/
|
|
76
|
-
function
|
|
77
|
-
|
|
79
|
+
function _fetchPreviewModlueData() {
|
|
80
|
+
_fetchPreviewModlueData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(dmCode, params) {
|
|
78
81
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
79
82
|
while (1) switch (_context3.prev = _context3.next) {
|
|
80
83
|
case 0:
|
|
81
|
-
return _context3.abrupt("return", request("".concat(api.API_HOST, "/").concat(dmCode, "/ui/builder/
|
|
84
|
+
return _context3.abrupt("return", request("".concat(api.API_HOST, "/").concat(dmCode, "/ui/builder/fetchModuleForPreview"), {
|
|
82
85
|
params: params
|
|
83
86
|
}));
|
|
84
87
|
case 1:
|
|
@@ -87,9 +90,33 @@ function _fetchModlueData() {
|
|
|
87
90
|
}
|
|
88
91
|
}, _callee3);
|
|
89
92
|
}));
|
|
93
|
+
return _fetchPreviewModlueData.apply(this, arguments);
|
|
94
|
+
}
|
|
95
|
+
export function fetchModlueData(_x6, _x7) {
|
|
96
|
+
return _fetchModlueData.apply(this, arguments);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* 获取数据模型下的所有数据集
|
|
101
|
+
* @param {{ dataModelKey }} params
|
|
102
|
+
*/
|
|
103
|
+
function _fetchModlueData() {
|
|
104
|
+
_fetchModlueData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(dmCode, params) {
|
|
105
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
106
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
107
|
+
case 0:
|
|
108
|
+
return _context4.abrupt("return", request("".concat(api.API_HOST, "/").concat(dmCode, "/ui/builder/noAuthFetchModule"), {
|
|
109
|
+
params: params
|
|
110
|
+
}));
|
|
111
|
+
case 1:
|
|
112
|
+
case "end":
|
|
113
|
+
return _context4.stop();
|
|
114
|
+
}
|
|
115
|
+
}, _callee4);
|
|
116
|
+
}));
|
|
90
117
|
return _fetchModlueData.apply(this, arguments);
|
|
91
118
|
}
|
|
92
|
-
export function fetchAllDataset(
|
|
119
|
+
export function fetchAllDataset(_x8) {
|
|
93
120
|
return _fetchAllDataset.apply(this, arguments);
|
|
94
121
|
}
|
|
95
122
|
|
|
@@ -98,22 +125,22 @@ export function fetchAllDataset(_x6) {
|
|
|
98
125
|
* @data {{ uid, dataModelKey, addList: { code, datasetUid }}} body数据
|
|
99
126
|
*/
|
|
100
127
|
function _fetchAllDataset() {
|
|
101
|
-
_fetchAllDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
102
|
-
return _regeneratorRuntime().wrap(function
|
|
103
|
-
while (1) switch (
|
|
128
|
+
_fetchAllDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(params) {
|
|
129
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
130
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
104
131
|
case 0:
|
|
105
|
-
return
|
|
132
|
+
return _context5.abrupt("return", request("".concat(API_PREFIX_PAGE, "/option/noAuthGetDataset"), {
|
|
106
133
|
params: params
|
|
107
134
|
}));
|
|
108
135
|
case 1:
|
|
109
136
|
case "end":
|
|
110
|
-
return
|
|
137
|
+
return _context5.stop();
|
|
111
138
|
}
|
|
112
|
-
},
|
|
139
|
+
}, _callee5);
|
|
113
140
|
}));
|
|
114
141
|
return _fetchAllDataset.apply(this, arguments);
|
|
115
142
|
}
|
|
116
|
-
export function fetchAddDataset(
|
|
143
|
+
export function fetchAddDataset(_x9) {
|
|
117
144
|
return _fetchAddDataset.apply(this, arguments);
|
|
118
145
|
}
|
|
119
146
|
|
|
@@ -122,23 +149,23 @@ export function fetchAddDataset(_x7) {
|
|
|
122
149
|
* @param {{datasetUid}} params
|
|
123
150
|
*/
|
|
124
151
|
function _fetchAddDataset() {
|
|
125
|
-
_fetchAddDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
126
|
-
return _regeneratorRuntime().wrap(function
|
|
127
|
-
while (1) switch (
|
|
152
|
+
_fetchAddDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(data) {
|
|
153
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
154
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
128
155
|
case 0:
|
|
129
|
-
return
|
|
156
|
+
return _context6.abrupt("return", request("".concat(API_RREFIX_DATASET, "/add"), {
|
|
130
157
|
data: data,
|
|
131
158
|
method: 'POST'
|
|
132
159
|
}));
|
|
133
160
|
case 1:
|
|
134
161
|
case "end":
|
|
135
|
-
return
|
|
162
|
+
return _context6.stop();
|
|
136
163
|
}
|
|
137
|
-
},
|
|
164
|
+
}, _callee6);
|
|
138
165
|
}));
|
|
139
166
|
return _fetchAddDataset.apply(this, arguments);
|
|
140
167
|
}
|
|
141
|
-
export function fetchFieldsByDataset(
|
|
168
|
+
export function fetchFieldsByDataset(_x10) {
|
|
142
169
|
return _fetchFieldsByDataset.apply(this, arguments);
|
|
143
170
|
}
|
|
144
171
|
|
|
@@ -148,22 +175,22 @@ export function fetchFieldsByDataset(_x8) {
|
|
|
148
175
|
* @returns
|
|
149
176
|
*/
|
|
150
177
|
function _fetchFieldsByDataset() {
|
|
151
|
-
_fetchFieldsByDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
152
|
-
return _regeneratorRuntime().wrap(function
|
|
153
|
-
while (1) switch (
|
|
178
|
+
_fetchFieldsByDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(params) {
|
|
179
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
180
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
154
181
|
case 0:
|
|
155
|
-
return
|
|
182
|
+
return _context7.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/readAll"), {
|
|
156
183
|
params: params
|
|
157
184
|
}));
|
|
158
185
|
case 1:
|
|
159
186
|
case "end":
|
|
160
|
-
return
|
|
187
|
+
return _context7.stop();
|
|
161
188
|
}
|
|
162
|
-
},
|
|
189
|
+
}, _callee7);
|
|
163
190
|
}));
|
|
164
191
|
return _fetchFieldsByDataset.apply(this, arguments);
|
|
165
192
|
}
|
|
166
|
-
export function fetchFieldCondition(
|
|
193
|
+
export function fetchFieldCondition(_x11) {
|
|
167
194
|
return _fetchFieldCondition.apply(this, arguments);
|
|
168
195
|
}
|
|
169
196
|
|
|
@@ -172,22 +199,22 @@ export function fetchFieldCondition(_x9) {
|
|
|
172
199
|
* @param {{moduleId,datasetId,moduleFieldId}} params
|
|
173
200
|
*/
|
|
174
201
|
function _fetchFieldCondition() {
|
|
175
|
-
_fetchFieldCondition = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
176
|
-
return _regeneratorRuntime().wrap(function
|
|
177
|
-
while (1) switch (
|
|
202
|
+
_fetchFieldCondition = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(params) {
|
|
203
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
204
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
178
205
|
case 0:
|
|
179
|
-
return
|
|
206
|
+
return _context8.abrupt("return", request("".concat(API_PREFIX_PAGE, "/readFieldCondition"), {
|
|
180
207
|
params: params
|
|
181
208
|
}));
|
|
182
209
|
case 1:
|
|
183
210
|
case "end":
|
|
184
|
-
return
|
|
211
|
+
return _context8.stop();
|
|
185
212
|
}
|
|
186
|
-
},
|
|
213
|
+
}, _callee8);
|
|
187
214
|
}));
|
|
188
215
|
return _fetchFieldCondition.apply(this, arguments);
|
|
189
216
|
}
|
|
190
|
-
export function fetchUpdateTitleField(
|
|
217
|
+
export function fetchUpdateTitleField(_x12) {
|
|
191
218
|
return _fetchUpdateTitleField.apply(this, arguments);
|
|
192
219
|
}
|
|
193
220
|
|
|
@@ -197,23 +224,23 @@ export function fetchUpdateTitleField(_x10) {
|
|
|
197
224
|
* @returns
|
|
198
225
|
*/
|
|
199
226
|
function _fetchUpdateTitleField() {
|
|
200
|
-
_fetchUpdateTitleField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
201
|
-
return _regeneratorRuntime().wrap(function
|
|
202
|
-
while (1) switch (
|
|
227
|
+
_fetchUpdateTitleField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(data) {
|
|
228
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
229
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
203
230
|
case 0:
|
|
204
|
-
return
|
|
231
|
+
return _context9.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/updateTitleField"), {
|
|
205
232
|
method: 'POST',
|
|
206
233
|
data: data
|
|
207
234
|
}));
|
|
208
235
|
case 1:
|
|
209
236
|
case "end":
|
|
210
|
-
return
|
|
237
|
+
return _context9.stop();
|
|
211
238
|
}
|
|
212
|
-
},
|
|
239
|
+
}, _callee9);
|
|
213
240
|
}));
|
|
214
241
|
return _fetchUpdateTitleField.apply(this, arguments);
|
|
215
242
|
}
|
|
216
|
-
export function fetchUpdateUniqueField(
|
|
243
|
+
export function fetchUpdateUniqueField(_x13) {
|
|
217
244
|
return _fetchUpdateUniqueField.apply(this, arguments);
|
|
218
245
|
}
|
|
219
246
|
|
|
@@ -222,23 +249,23 @@ export function fetchUpdateUniqueField(_x11) {
|
|
|
222
249
|
* @param {*} data
|
|
223
250
|
*/
|
|
224
251
|
function _fetchUpdateUniqueField() {
|
|
225
|
-
_fetchUpdateUniqueField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
226
|
-
return _regeneratorRuntime().wrap(function
|
|
227
|
-
while (1) switch (
|
|
252
|
+
_fetchUpdateUniqueField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(data) {
|
|
253
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
254
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
228
255
|
case 0:
|
|
229
|
-
return
|
|
256
|
+
return _context10.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/updateUniqueField"), {
|
|
230
257
|
method: 'POST',
|
|
231
258
|
data: data
|
|
232
259
|
}));
|
|
233
260
|
case 1:
|
|
234
261
|
case "end":
|
|
235
|
-
return
|
|
262
|
+
return _context10.stop();
|
|
236
263
|
}
|
|
237
|
-
},
|
|
264
|
+
}, _callee10);
|
|
238
265
|
}));
|
|
239
266
|
return _fetchUpdateUniqueField.apply(this, arguments);
|
|
240
267
|
}
|
|
241
|
-
export function fetchAddFieldAttrs(
|
|
268
|
+
export function fetchAddFieldAttrs(_x14) {
|
|
242
269
|
return _fetchAddFieldAttrs.apply(this, arguments);
|
|
243
270
|
}
|
|
244
271
|
|
|
@@ -247,23 +274,23 @@ export function fetchAddFieldAttrs(_x12) {
|
|
|
247
274
|
* @param {*} data
|
|
248
275
|
*/
|
|
249
276
|
function _fetchAddFieldAttrs() {
|
|
250
|
-
_fetchAddFieldAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
251
|
-
return _regeneratorRuntime().wrap(function
|
|
252
|
-
while (1) switch (
|
|
277
|
+
_fetchAddFieldAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(data) {
|
|
278
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
279
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
253
280
|
case 0:
|
|
254
|
-
return
|
|
281
|
+
return _context11.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/addAttributes"), {
|
|
255
282
|
data: data,
|
|
256
283
|
method: 'POST'
|
|
257
284
|
}));
|
|
258
285
|
case 1:
|
|
259
286
|
case "end":
|
|
260
|
-
return
|
|
287
|
+
return _context11.stop();
|
|
261
288
|
}
|
|
262
|
-
},
|
|
289
|
+
}, _callee11);
|
|
263
290
|
}));
|
|
264
291
|
return _fetchAddFieldAttrs.apply(this, arguments);
|
|
265
292
|
}
|
|
266
|
-
export function fetchDelAttrs(
|
|
293
|
+
export function fetchDelAttrs(_x15) {
|
|
267
294
|
return _fetchDelAttrs.apply(this, arguments);
|
|
268
295
|
}
|
|
269
296
|
|
|
@@ -272,23 +299,23 @@ export function fetchDelAttrs(_x13) {
|
|
|
272
299
|
* @param {*} params
|
|
273
300
|
*/
|
|
274
301
|
function _fetchDelAttrs() {
|
|
275
|
-
_fetchDelAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
276
|
-
return _regeneratorRuntime().wrap(function
|
|
277
|
-
while (1) switch (
|
|
302
|
+
_fetchDelAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(data) {
|
|
303
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
304
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
278
305
|
case 0:
|
|
279
|
-
return
|
|
306
|
+
return _context12.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/deleteAttributes"), {
|
|
280
307
|
data: data,
|
|
281
308
|
method: 'POST'
|
|
282
309
|
}));
|
|
283
310
|
case 1:
|
|
284
311
|
case "end":
|
|
285
|
-
return
|
|
312
|
+
return _context12.stop();
|
|
286
313
|
}
|
|
287
|
-
},
|
|
314
|
+
}, _callee12);
|
|
288
315
|
}));
|
|
289
316
|
return _fetchDelAttrs.apply(this, arguments);
|
|
290
317
|
}
|
|
291
|
-
export function fetchUpdateFieldAttrs(
|
|
318
|
+
export function fetchUpdateFieldAttrs(_x16) {
|
|
292
319
|
return _fetchUpdateFieldAttrs.apply(this, arguments);
|
|
293
320
|
}
|
|
294
321
|
|
|
@@ -298,23 +325,23 @@ export function fetchUpdateFieldAttrs(_x14) {
|
|
|
298
325
|
* @returns
|
|
299
326
|
*/
|
|
300
327
|
function _fetchUpdateFieldAttrs() {
|
|
301
|
-
_fetchUpdateFieldAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
302
|
-
return _regeneratorRuntime().wrap(function
|
|
303
|
-
while (1) switch (
|
|
328
|
+
_fetchUpdateFieldAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(data) {
|
|
329
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
330
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
304
331
|
case 0:
|
|
305
|
-
return
|
|
332
|
+
return _context13.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/updateAttributes"), {
|
|
306
333
|
data: data,
|
|
307
334
|
method: 'POST'
|
|
308
335
|
}));
|
|
309
336
|
case 1:
|
|
310
337
|
case "end":
|
|
311
|
-
return
|
|
338
|
+
return _context13.stop();
|
|
312
339
|
}
|
|
313
|
-
},
|
|
340
|
+
}, _callee13);
|
|
314
341
|
}));
|
|
315
342
|
return _fetchUpdateFieldAttrs.apply(this, arguments);
|
|
316
343
|
}
|
|
317
|
-
export function fetchAttrs(
|
|
344
|
+
export function fetchAttrs(_x17) {
|
|
318
345
|
return _fetchAttrs.apply(this, arguments);
|
|
319
346
|
}
|
|
320
347
|
|
|
@@ -324,22 +351,22 @@ export function fetchAttrs(_x15) {
|
|
|
324
351
|
* @returns
|
|
325
352
|
*/
|
|
326
353
|
function _fetchAttrs() {
|
|
327
|
-
_fetchAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
328
|
-
return _regeneratorRuntime().wrap(function
|
|
329
|
-
while (1) switch (
|
|
354
|
+
_fetchAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(params) {
|
|
355
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
356
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
330
357
|
case 0:
|
|
331
|
-
return
|
|
358
|
+
return _context14.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/readAttributes"), {
|
|
332
359
|
params: params
|
|
333
360
|
}));
|
|
334
361
|
case 1:
|
|
335
362
|
case "end":
|
|
336
|
-
return
|
|
363
|
+
return _context14.stop();
|
|
337
364
|
}
|
|
338
|
-
},
|
|
365
|
+
}, _callee14);
|
|
339
366
|
}));
|
|
340
367
|
return _fetchAttrs.apply(this, arguments);
|
|
341
368
|
}
|
|
342
|
-
export function fetchAllBehavior(
|
|
369
|
+
export function fetchAllBehavior(_x18) {
|
|
343
370
|
return _fetchAllBehavior.apply(this, arguments);
|
|
344
371
|
}
|
|
345
372
|
|
|
@@ -349,51 +376,91 @@ export function fetchAllBehavior(_x16) {
|
|
|
349
376
|
* @returns
|
|
350
377
|
*/
|
|
351
378
|
function _fetchAllBehavior() {
|
|
352
|
-
_fetchAllBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
353
|
-
return _regeneratorRuntime().wrap(function
|
|
354
|
-
while (1) switch (
|
|
379
|
+
_fetchAllBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(params) {
|
|
380
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
381
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
355
382
|
case 0:
|
|
356
|
-
return
|
|
383
|
+
return _context15.abrupt("return", request("".concat(API_PREFIX_MODULE, "/behavior/readAll"), {
|
|
357
384
|
params: params
|
|
358
385
|
}));
|
|
359
386
|
case 1:
|
|
360
387
|
case "end":
|
|
361
|
-
return
|
|
388
|
+
return _context15.stop();
|
|
362
389
|
}
|
|
363
|
-
},
|
|
390
|
+
}, _callee15);
|
|
364
391
|
}));
|
|
365
392
|
return _fetchAllBehavior.apply(this, arguments);
|
|
366
393
|
}
|
|
367
|
-
export function fetchAllSerials(
|
|
394
|
+
export function fetchAllSerials(_x19) {
|
|
368
395
|
return _fetchAllSerials.apply(this, arguments);
|
|
369
396
|
}
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* 读取导入导出数据源
|
|
400
|
+
* @param {{moduleCode, behaviorMode:[IMPORT, EXPORT]}} params
|
|
401
|
+
* @returns
|
|
402
|
+
*/
|
|
370
403
|
function _fetchAllSerials() {
|
|
371
|
-
_fetchAllSerials = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
372
|
-
return _regeneratorRuntime().wrap(function
|
|
373
|
-
while (1) switch (
|
|
404
|
+
_fetchAllSerials = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(params) {
|
|
405
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
406
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
374
407
|
case 0:
|
|
375
|
-
return
|
|
408
|
+
return _context16.abrupt("return", request("".concat(API_PREFIX_MODULE, "/Serials/readAll"), {
|
|
376
409
|
params: params
|
|
377
410
|
}));
|
|
378
411
|
case 1:
|
|
379
412
|
case "end":
|
|
380
|
-
return
|
|
413
|
+
return _context16.stop();
|
|
381
414
|
}
|
|
382
|
-
},
|
|
415
|
+
}, _callee16);
|
|
383
416
|
}));
|
|
384
417
|
return _fetchAllSerials.apply(this, arguments);
|
|
385
418
|
}
|
|
386
|
-
export function
|
|
419
|
+
export function fetchAllBehaviorEx(_x20) {
|
|
420
|
+
return _fetchAllBehaviorEx.apply(this, arguments);
|
|
421
|
+
}
|
|
422
|
+
function _fetchAllBehaviorEx() {
|
|
423
|
+
_fetchAllBehaviorEx = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(params) {
|
|
424
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
425
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
426
|
+
case 0:
|
|
427
|
+
return _context17.abrupt("return", request("".concat(API_PREFIX_PAGE, "/option/noAuthGetBehavior"), {
|
|
428
|
+
params: params
|
|
429
|
+
}));
|
|
430
|
+
case 1:
|
|
431
|
+
case "end":
|
|
432
|
+
return _context17.stop();
|
|
433
|
+
}
|
|
434
|
+
}, _callee17);
|
|
435
|
+
}));
|
|
436
|
+
return _fetchAllBehaviorEx.apply(this, arguments);
|
|
437
|
+
}
|
|
438
|
+
export function getBehaviorUrl() {
|
|
439
|
+
var mdCode = getLDMetaAttr('dataModelKey');
|
|
440
|
+
return "".concat(api.API_HOST, "/").concat(mdCode, "/to/behavior/call");
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* 执行行为
|
|
445
|
+
* @param {*} params
|
|
446
|
+
* @param {*} data
|
|
447
|
+
* @returns
|
|
448
|
+
*/
|
|
449
|
+
export function fetchCallBehavior(_x21, _x22) {
|
|
387
450
|
return _fetchCallBehavior.apply(this, arguments);
|
|
388
451
|
}
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* 清除当前模块缓存
|
|
455
|
+
* @param {{moduleCode}} params
|
|
456
|
+
* @returns
|
|
457
|
+
*/
|
|
389
458
|
function _fetchCallBehavior() {
|
|
390
|
-
_fetchCallBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
while (1) switch (_context16.prev = _context16.next) {
|
|
459
|
+
_fetchCallBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(params, data) {
|
|
460
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
461
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
394
462
|
case 0:
|
|
395
|
-
|
|
396
|
-
return _context16.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/to/behavior/call"), {
|
|
463
|
+
return _context18.abrupt("return", request(getBehaviorUrl(), {
|
|
397
464
|
method: 'POST',
|
|
398
465
|
data: data,
|
|
399
466
|
params: params,
|
|
@@ -401,11 +468,194 @@ function _fetchCallBehavior() {
|
|
|
401
468
|
'Content-Type': 'application/json;charset=UTF-8'
|
|
402
469
|
}
|
|
403
470
|
}));
|
|
404
|
-
case
|
|
471
|
+
case 1:
|
|
405
472
|
case "end":
|
|
406
|
-
return
|
|
473
|
+
return _context18.stop();
|
|
407
474
|
}
|
|
408
|
-
},
|
|
475
|
+
}, _callee18);
|
|
409
476
|
}));
|
|
410
477
|
return _fetchCallBehavior.apply(this, arguments);
|
|
478
|
+
}
|
|
479
|
+
export function fetchClearCache(_x23) {
|
|
480
|
+
return _fetchClearCache.apply(this, arguments);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* 更新页面配置数据
|
|
485
|
+
* @param {*} data
|
|
486
|
+
* @returns
|
|
487
|
+
*/
|
|
488
|
+
function _fetchClearCache() {
|
|
489
|
+
_fetchClearCache = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(params) {
|
|
490
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
491
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
492
|
+
case 0:
|
|
493
|
+
return _context19.abrupt("return", request("".concat(api.LUCKDA_HOST, "/cache/manage/noAuthModuleConfigClear"), {
|
|
494
|
+
params: params
|
|
495
|
+
}));
|
|
496
|
+
case 1:
|
|
497
|
+
case "end":
|
|
498
|
+
return _context19.stop();
|
|
499
|
+
}
|
|
500
|
+
}, _callee19);
|
|
501
|
+
}));
|
|
502
|
+
return _fetchClearCache.apply(this, arguments);
|
|
503
|
+
}
|
|
504
|
+
export function fetchUpdatePageData(_x24) {
|
|
505
|
+
return _fetchUpdatePageData.apply(this, arguments);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* 获取数据字典
|
|
510
|
+
* @param {{snamealias}} params
|
|
511
|
+
* @returns
|
|
512
|
+
*/
|
|
513
|
+
function _fetchUpdatePageData() {
|
|
514
|
+
_fetchUpdatePageData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(data) {
|
|
515
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
516
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
517
|
+
case 0:
|
|
518
|
+
return _context20.abrupt("return", request("".concat(API_PREFIX_PAGE, "/data/update"), {
|
|
519
|
+
method: 'POST',
|
|
520
|
+
data: data
|
|
521
|
+
}));
|
|
522
|
+
case 1:
|
|
523
|
+
case "end":
|
|
524
|
+
return _context20.stop();
|
|
525
|
+
}
|
|
526
|
+
}, _callee20);
|
|
527
|
+
}));
|
|
528
|
+
return _fetchUpdatePageData.apply(this, arguments);
|
|
529
|
+
}
|
|
530
|
+
export function fetchDataDic(_x25) {
|
|
531
|
+
return _fetchDataDic.apply(this, arguments);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* 导出excel
|
|
536
|
+
* @param {*} data
|
|
537
|
+
* @returns
|
|
538
|
+
*/
|
|
539
|
+
function _fetchDataDic() {
|
|
540
|
+
_fetchDataDic = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(params) {
|
|
541
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
|
542
|
+
while (1) switch (_context21.prev = _context21.next) {
|
|
543
|
+
case 0:
|
|
544
|
+
return _context21.abrupt("return", request("".concat(api.BASE_HOST, "/datadic/sysDatadic/noAuthReadAll"), {
|
|
545
|
+
params: params
|
|
546
|
+
}));
|
|
547
|
+
case 1:
|
|
548
|
+
case "end":
|
|
549
|
+
return _context21.stop();
|
|
550
|
+
}
|
|
551
|
+
}, _callee21);
|
|
552
|
+
}));
|
|
553
|
+
return _fetchDataDic.apply(this, arguments);
|
|
554
|
+
}
|
|
555
|
+
export function exportExcel(_x26, _x27) {
|
|
556
|
+
return _exportExcel.apply(this, arguments);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* 导入
|
|
561
|
+
* @param {*} params, data
|
|
562
|
+
* @returns
|
|
563
|
+
*/
|
|
564
|
+
function _exportExcel() {
|
|
565
|
+
_exportExcel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(params, data) {
|
|
566
|
+
var mdCode, FUNC_NAME;
|
|
567
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
|
568
|
+
while (1) switch (_context22.prev = _context22.next) {
|
|
569
|
+
case 0:
|
|
570
|
+
mdCode = getLDMetaAttr('dataModelKey');
|
|
571
|
+
FUNC_NAME = params;
|
|
572
|
+
return _context22.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthExport").concat(FUNC_NAME), {
|
|
573
|
+
method: 'POST',
|
|
574
|
+
data: _objectSpread(_objectSpread({}, data), {}, {
|
|
575
|
+
gatewayUrl: "".concat(window.location.origin).concat(api.API_HOST)
|
|
576
|
+
})
|
|
577
|
+
}));
|
|
578
|
+
case 3:
|
|
579
|
+
case "end":
|
|
580
|
+
return _context22.stop();
|
|
581
|
+
}
|
|
582
|
+
}, _callee22);
|
|
583
|
+
}));
|
|
584
|
+
return _exportExcel.apply(this, arguments);
|
|
585
|
+
}
|
|
586
|
+
export function uploadTemplate(_x28, _x29) {
|
|
587
|
+
return _uploadTemplate.apply(this, arguments);
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
// var successCount = 10;
|
|
591
|
+
// 获取导入进度数据
|
|
592
|
+
function _uploadTemplate() {
|
|
593
|
+
_uploadTemplate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(params, data) {
|
|
594
|
+
var mdCode, FUNC_NAME;
|
|
595
|
+
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
|
596
|
+
while (1) switch (_context23.prev = _context23.next) {
|
|
597
|
+
case 0:
|
|
598
|
+
mdCode = getLDMetaAttr('dataModelKey');
|
|
599
|
+
FUNC_NAME = params;
|
|
600
|
+
return _context23.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthImport").concat(FUNC_NAME), {
|
|
601
|
+
method: 'POST',
|
|
602
|
+
data: data
|
|
603
|
+
}));
|
|
604
|
+
case 3:
|
|
605
|
+
case "end":
|
|
606
|
+
return _context23.stop();
|
|
607
|
+
}
|
|
608
|
+
}, _callee23);
|
|
609
|
+
}));
|
|
610
|
+
return _uploadTemplate.apply(this, arguments);
|
|
611
|
+
}
|
|
612
|
+
export function getFindexcelstate(_x30, _x31) {
|
|
613
|
+
return _getFindexcelstate.apply(this, arguments);
|
|
614
|
+
}
|
|
615
|
+
function _getFindexcelstate() {
|
|
616
|
+
_getFindexcelstate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(params, data) {
|
|
617
|
+
var mdCode, FUNC_NAME;
|
|
618
|
+
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
|
619
|
+
while (1) switch (_context24.prev = _context24.next) {
|
|
620
|
+
case 0:
|
|
621
|
+
mdCode = getLDMetaAttr('dataModelKey');
|
|
622
|
+
FUNC_NAME = params;
|
|
623
|
+
return _context24.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthGetProgress").concat(FUNC_NAME), {
|
|
624
|
+
method: 'POST',
|
|
625
|
+
data: _objectSpread(_objectSpread({}, data), {}, {
|
|
626
|
+
gatewayUrl: "".concat(window.location.origin).concat(api.API_HOST)
|
|
627
|
+
})
|
|
628
|
+
}));
|
|
629
|
+
case 3:
|
|
630
|
+
case "end":
|
|
631
|
+
return _context24.stop();
|
|
632
|
+
}
|
|
633
|
+
}, _callee24);
|
|
634
|
+
}));
|
|
635
|
+
return _getFindexcelstate.apply(this, arguments);
|
|
636
|
+
}
|
|
637
|
+
export function noAuthGetTemplateUrl(_x32) {
|
|
638
|
+
return _noAuthGetTemplateUrl.apply(this, arguments);
|
|
639
|
+
}
|
|
640
|
+
function _noAuthGetTemplateUrl() {
|
|
641
|
+
_noAuthGetTemplateUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25(params) {
|
|
642
|
+
var mdCode;
|
|
643
|
+
return _regeneratorRuntime().wrap(function _callee25$(_context25) {
|
|
644
|
+
while (1) switch (_context25.prev = _context25.next) {
|
|
645
|
+
case 0:
|
|
646
|
+
mdCode = getLDMetaAttr('dataModelKey');
|
|
647
|
+
return _context25.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthGetTemplateUrl"), {
|
|
648
|
+
method: 'POST',
|
|
649
|
+
data: {
|
|
650
|
+
gatewayUrl: "".concat(window.location.origin).concat(api.API_HOST),
|
|
651
|
+
templateId: params
|
|
652
|
+
}
|
|
653
|
+
}));
|
|
654
|
+
case 2:
|
|
655
|
+
case "end":
|
|
656
|
+
return _context25.stop();
|
|
657
|
+
}
|
|
658
|
+
}, _callee25);
|
|
659
|
+
}));
|
|
660
|
+
return _noAuthGetTemplateUrl.apply(this, arguments);
|
|
411
661
|
}
|