@luck-design-biz/luckda 0.0.25-1 → 0.0.25-10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +20 -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 +49 -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 +7 -3
- 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 +116 -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 +20 -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 +3 -1
- 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 +5 -6
- 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 +20 -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 +50 -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 +7 -3
- 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 +116 -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 +20 -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 +3 -1
- 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 +5 -6
- 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 +6 -4
- package/es/lowcode/engine/meta/local/local.zh-cn.js +0 -97
- package/lib/lowcode/engine/meta/local/local.zh-cn.js +0 -103
|
@@ -5,27 +5,38 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.ICONLIST_URL = exports.ICONLIST_JS = void 0;
|
|
8
|
+
exports.exportExcel = exportExcel;
|
|
8
9
|
exports.fetchAddDataset = fetchAddDataset;
|
|
9
10
|
exports.fetchAddFieldAttrs = fetchAddFieldAttrs;
|
|
10
11
|
exports.fetchAllBehavior = fetchAllBehavior;
|
|
12
|
+
exports.fetchAllBehaviorEx = fetchAllBehaviorEx;
|
|
11
13
|
exports.fetchAllDataset = fetchAllDataset;
|
|
12
14
|
exports.fetchAllSerials = fetchAllSerials;
|
|
13
15
|
exports.fetchAttrs = fetchAttrs;
|
|
14
16
|
exports.fetchCallBehavior = fetchCallBehavior;
|
|
17
|
+
exports.fetchClearCache = fetchClearCache;
|
|
18
|
+
exports.fetchDataDic = fetchDataDic;
|
|
15
19
|
exports.fetchDelAttrs = fetchDelAttrs;
|
|
16
20
|
exports.fetchDesignModlueData = fetchDesignModlueData;
|
|
17
21
|
exports.fetchFieldCondition = fetchFieldCondition;
|
|
18
22
|
exports.fetchFieldsByDataset = fetchFieldsByDataset;
|
|
19
23
|
exports.fetchModlueData = fetchModlueData;
|
|
20
24
|
exports.fetchPageData = fetchPageData;
|
|
25
|
+
exports.fetchPreviewModlueData = fetchPreviewModlueData;
|
|
21
26
|
exports.fetchUpdateFieldAttrs = fetchUpdateFieldAttrs;
|
|
27
|
+
exports.fetchUpdatePageData = fetchUpdatePageData;
|
|
22
28
|
exports.fetchUpdateTitleField = fetchUpdateTitleField;
|
|
23
29
|
exports.fetchUpdateUniqueField = fetchUpdateUniqueField;
|
|
30
|
+
exports.getBehaviorUrl = getBehaviorUrl;
|
|
31
|
+
exports.getFindexcelstate = getFindexcelstate;
|
|
32
|
+
exports.noAuthGetTemplateUrl = noAuthGetTemplateUrl;
|
|
33
|
+
exports.uploadTemplate = uploadTemplate;
|
|
34
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
24
35
|
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
25
36
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
26
37
|
var _utils = require("@luck-design-biz/base/utils");
|
|
27
38
|
var _ApiConfig = _interopRequireDefault(require("@/services/ApiConfig"));
|
|
28
|
-
var
|
|
39
|
+
var _helper = require("../engine/tools/helper");
|
|
29
40
|
// icon地址
|
|
30
41
|
var ICONLIST_URL = exports.ICONLIST_URL = '/public/icons/iconfont.json';
|
|
31
42
|
var ICONLIST_JS = exports.ICONLIST_JS = '/public/icons/iconfont.js';
|
|
@@ -66,8 +77,10 @@ function fetchDesignModlueData(_x2, _x3) {
|
|
|
66
77
|
return _fetchDesignModlueData.apply(this, arguments);
|
|
67
78
|
}
|
|
68
79
|
/**
|
|
69
|
-
*
|
|
70
|
-
* @param {
|
|
80
|
+
* 获取preview时模块数据
|
|
81
|
+
* @param {*} dmCode
|
|
82
|
+
* @param {*} params
|
|
83
|
+
* @returns
|
|
71
84
|
*/
|
|
72
85
|
function _fetchDesignModlueData() {
|
|
73
86
|
_fetchDesignModlueData = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(_, params) {
|
|
@@ -85,19 +98,19 @@ function _fetchDesignModlueData() {
|
|
|
85
98
|
}));
|
|
86
99
|
return _fetchDesignModlueData.apply(this, arguments);
|
|
87
100
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
101
|
+
function fetchPreviewModlueData(_x4, _x5) {
|
|
102
|
+
return _fetchPreviewModlueData.apply(this, arguments);
|
|
90
103
|
}
|
|
91
104
|
/**
|
|
92
|
-
*
|
|
93
|
-
* @param {{
|
|
105
|
+
* 获取live时模块数据
|
|
106
|
+
* @param {{moduleCode: string}} params
|
|
94
107
|
*/
|
|
95
|
-
function
|
|
96
|
-
|
|
108
|
+
function _fetchPreviewModlueData() {
|
|
109
|
+
_fetchPreviewModlueData = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3(dmCode, params) {
|
|
97
110
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {
|
|
98
111
|
while (1) switch (_context3.prev = _context3.next) {
|
|
99
112
|
case 0:
|
|
100
|
-
return _context3.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(dmCode, "/ui/builder/
|
|
113
|
+
return _context3.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(dmCode, "/ui/builder/fetchModuleForPreview"), {
|
|
101
114
|
params: params
|
|
102
115
|
}));
|
|
103
116
|
case 1:
|
|
@@ -106,9 +119,32 @@ function _fetchModlueData() {
|
|
|
106
119
|
}
|
|
107
120
|
}, _callee3);
|
|
108
121
|
}));
|
|
122
|
+
return _fetchPreviewModlueData.apply(this, arguments);
|
|
123
|
+
}
|
|
124
|
+
function fetchModlueData(_x6, _x7) {
|
|
109
125
|
return _fetchModlueData.apply(this, arguments);
|
|
110
126
|
}
|
|
111
|
-
|
|
127
|
+
/**
|
|
128
|
+
* 获取数据模型下的所有数据集
|
|
129
|
+
* @param {{ dataModelKey }} params
|
|
130
|
+
*/
|
|
131
|
+
function _fetchModlueData() {
|
|
132
|
+
_fetchModlueData = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee4(dmCode, params) {
|
|
133
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee4$(_context4) {
|
|
134
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
135
|
+
case 0:
|
|
136
|
+
return _context4.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(dmCode, "/ui/builder/noAuthFetchModule"), {
|
|
137
|
+
params: params
|
|
138
|
+
}));
|
|
139
|
+
case 1:
|
|
140
|
+
case "end":
|
|
141
|
+
return _context4.stop();
|
|
142
|
+
}
|
|
143
|
+
}, _callee4);
|
|
144
|
+
}));
|
|
145
|
+
return _fetchModlueData.apply(this, arguments);
|
|
146
|
+
}
|
|
147
|
+
function fetchAllDataset(_x8) {
|
|
112
148
|
return _fetchAllDataset.apply(this, arguments);
|
|
113
149
|
}
|
|
114
150
|
/**
|
|
@@ -116,22 +152,22 @@ function fetchAllDataset(_x6) {
|
|
|
116
152
|
* @data {{ uid, dataModelKey, addList: { code, datasetUid }}} body数据
|
|
117
153
|
*/
|
|
118
154
|
function _fetchAllDataset() {
|
|
119
|
-
_fetchAllDataset = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
120
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
121
|
-
while (1) switch (
|
|
155
|
+
_fetchAllDataset = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee5(params) {
|
|
156
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee5$(_context5) {
|
|
157
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
122
158
|
case 0:
|
|
123
|
-
return
|
|
159
|
+
return _context5.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_PAGE, "/option/noAuthGetDataset"), {
|
|
124
160
|
params: params
|
|
125
161
|
}));
|
|
126
162
|
case 1:
|
|
127
163
|
case "end":
|
|
128
|
-
return
|
|
164
|
+
return _context5.stop();
|
|
129
165
|
}
|
|
130
|
-
},
|
|
166
|
+
}, _callee5);
|
|
131
167
|
}));
|
|
132
168
|
return _fetchAllDataset.apply(this, arguments);
|
|
133
169
|
}
|
|
134
|
-
function fetchAddDataset(
|
|
170
|
+
function fetchAddDataset(_x9) {
|
|
135
171
|
return _fetchAddDataset.apply(this, arguments);
|
|
136
172
|
}
|
|
137
173
|
/**
|
|
@@ -139,23 +175,23 @@ function fetchAddDataset(_x7) {
|
|
|
139
175
|
* @param {{datasetUid}} params
|
|
140
176
|
*/
|
|
141
177
|
function _fetchAddDataset() {
|
|
142
|
-
_fetchAddDataset = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
143
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
144
|
-
while (1) switch (
|
|
178
|
+
_fetchAddDataset = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee6(data) {
|
|
179
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee6$(_context6) {
|
|
180
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
145
181
|
case 0:
|
|
146
|
-
return
|
|
182
|
+
return _context6.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/add"), {
|
|
147
183
|
data: data,
|
|
148
184
|
method: 'POST'
|
|
149
185
|
}));
|
|
150
186
|
case 1:
|
|
151
187
|
case "end":
|
|
152
|
-
return
|
|
188
|
+
return _context6.stop();
|
|
153
189
|
}
|
|
154
|
-
},
|
|
190
|
+
}, _callee6);
|
|
155
191
|
}));
|
|
156
192
|
return _fetchAddDataset.apply(this, arguments);
|
|
157
193
|
}
|
|
158
|
-
function fetchFieldsByDataset(
|
|
194
|
+
function fetchFieldsByDataset(_x10) {
|
|
159
195
|
return _fetchFieldsByDataset.apply(this, arguments);
|
|
160
196
|
}
|
|
161
197
|
/**
|
|
@@ -164,22 +200,22 @@ function fetchFieldsByDataset(_x8) {
|
|
|
164
200
|
* @returns
|
|
165
201
|
*/
|
|
166
202
|
function _fetchFieldsByDataset() {
|
|
167
|
-
_fetchFieldsByDataset = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
168
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
169
|
-
while (1) switch (
|
|
203
|
+
_fetchFieldsByDataset = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee7(params) {
|
|
204
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee7$(_context7) {
|
|
205
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
170
206
|
case 0:
|
|
171
|
-
return
|
|
207
|
+
return _context7.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/field/readAll"), {
|
|
172
208
|
params: params
|
|
173
209
|
}));
|
|
174
210
|
case 1:
|
|
175
211
|
case "end":
|
|
176
|
-
return
|
|
212
|
+
return _context7.stop();
|
|
177
213
|
}
|
|
178
|
-
},
|
|
214
|
+
}, _callee7);
|
|
179
215
|
}));
|
|
180
216
|
return _fetchFieldsByDataset.apply(this, arguments);
|
|
181
217
|
}
|
|
182
|
-
function fetchFieldCondition(
|
|
218
|
+
function fetchFieldCondition(_x11) {
|
|
183
219
|
return _fetchFieldCondition.apply(this, arguments);
|
|
184
220
|
}
|
|
185
221
|
/**
|
|
@@ -187,22 +223,22 @@ function fetchFieldCondition(_x9) {
|
|
|
187
223
|
* @param {{moduleId,datasetId,moduleFieldId}} params
|
|
188
224
|
*/
|
|
189
225
|
function _fetchFieldCondition() {
|
|
190
|
-
_fetchFieldCondition = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
191
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
192
|
-
while (1) switch (
|
|
226
|
+
_fetchFieldCondition = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee8(params) {
|
|
227
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee8$(_context8) {
|
|
228
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
193
229
|
case 0:
|
|
194
|
-
return
|
|
230
|
+
return _context8.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_PAGE, "/readFieldCondition"), {
|
|
195
231
|
params: params
|
|
196
232
|
}));
|
|
197
233
|
case 1:
|
|
198
234
|
case "end":
|
|
199
|
-
return
|
|
235
|
+
return _context8.stop();
|
|
200
236
|
}
|
|
201
|
-
},
|
|
237
|
+
}, _callee8);
|
|
202
238
|
}));
|
|
203
239
|
return _fetchFieldCondition.apply(this, arguments);
|
|
204
240
|
}
|
|
205
|
-
function fetchUpdateTitleField(
|
|
241
|
+
function fetchUpdateTitleField(_x12) {
|
|
206
242
|
return _fetchUpdateTitleField.apply(this, arguments);
|
|
207
243
|
}
|
|
208
244
|
/**
|
|
@@ -211,23 +247,23 @@ function fetchUpdateTitleField(_x10) {
|
|
|
211
247
|
* @returns
|
|
212
248
|
*/
|
|
213
249
|
function _fetchUpdateTitleField() {
|
|
214
|
-
_fetchUpdateTitleField = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
215
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
216
|
-
while (1) switch (
|
|
250
|
+
_fetchUpdateTitleField = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee9(data) {
|
|
251
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee9$(_context9) {
|
|
252
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
217
253
|
case 0:
|
|
218
|
-
return
|
|
254
|
+
return _context9.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/field/updateTitleField"), {
|
|
219
255
|
method: 'POST',
|
|
220
256
|
data: data
|
|
221
257
|
}));
|
|
222
258
|
case 1:
|
|
223
259
|
case "end":
|
|
224
|
-
return
|
|
260
|
+
return _context9.stop();
|
|
225
261
|
}
|
|
226
|
-
},
|
|
262
|
+
}, _callee9);
|
|
227
263
|
}));
|
|
228
264
|
return _fetchUpdateTitleField.apply(this, arguments);
|
|
229
265
|
}
|
|
230
|
-
function fetchUpdateUniqueField(
|
|
266
|
+
function fetchUpdateUniqueField(_x13) {
|
|
231
267
|
return _fetchUpdateUniqueField.apply(this, arguments);
|
|
232
268
|
}
|
|
233
269
|
/**
|
|
@@ -235,23 +271,23 @@ function fetchUpdateUniqueField(_x11) {
|
|
|
235
271
|
* @param {*} data
|
|
236
272
|
*/
|
|
237
273
|
function _fetchUpdateUniqueField() {
|
|
238
|
-
_fetchUpdateUniqueField = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
239
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
240
|
-
while (1) switch (
|
|
274
|
+
_fetchUpdateUniqueField = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee10(data) {
|
|
275
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee10$(_context10) {
|
|
276
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
241
277
|
case 0:
|
|
242
|
-
return
|
|
278
|
+
return _context10.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/field/updateUniqueField"), {
|
|
243
279
|
method: 'POST',
|
|
244
280
|
data: data
|
|
245
281
|
}));
|
|
246
282
|
case 1:
|
|
247
283
|
case "end":
|
|
248
|
-
return
|
|
284
|
+
return _context10.stop();
|
|
249
285
|
}
|
|
250
|
-
},
|
|
286
|
+
}, _callee10);
|
|
251
287
|
}));
|
|
252
288
|
return _fetchUpdateUniqueField.apply(this, arguments);
|
|
253
289
|
}
|
|
254
|
-
function fetchAddFieldAttrs(
|
|
290
|
+
function fetchAddFieldAttrs(_x14) {
|
|
255
291
|
return _fetchAddFieldAttrs.apply(this, arguments);
|
|
256
292
|
}
|
|
257
293
|
/**
|
|
@@ -259,23 +295,23 @@ function fetchAddFieldAttrs(_x12) {
|
|
|
259
295
|
* @param {*} data
|
|
260
296
|
*/
|
|
261
297
|
function _fetchAddFieldAttrs() {
|
|
262
|
-
_fetchAddFieldAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
263
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
264
|
-
while (1) switch (
|
|
298
|
+
_fetchAddFieldAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee11(data) {
|
|
299
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee11$(_context11) {
|
|
300
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
265
301
|
case 0:
|
|
266
|
-
return
|
|
302
|
+
return _context11.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/field/addAttributes"), {
|
|
267
303
|
data: data,
|
|
268
304
|
method: 'POST'
|
|
269
305
|
}));
|
|
270
306
|
case 1:
|
|
271
307
|
case "end":
|
|
272
|
-
return
|
|
308
|
+
return _context11.stop();
|
|
273
309
|
}
|
|
274
|
-
},
|
|
310
|
+
}, _callee11);
|
|
275
311
|
}));
|
|
276
312
|
return _fetchAddFieldAttrs.apply(this, arguments);
|
|
277
313
|
}
|
|
278
|
-
function fetchDelAttrs(
|
|
314
|
+
function fetchDelAttrs(_x15) {
|
|
279
315
|
return _fetchDelAttrs.apply(this, arguments);
|
|
280
316
|
}
|
|
281
317
|
/**
|
|
@@ -283,23 +319,23 @@ function fetchDelAttrs(_x13) {
|
|
|
283
319
|
* @param {*} params
|
|
284
320
|
*/
|
|
285
321
|
function _fetchDelAttrs() {
|
|
286
|
-
_fetchDelAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
287
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
288
|
-
while (1) switch (
|
|
322
|
+
_fetchDelAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee12(data) {
|
|
323
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee12$(_context12) {
|
|
324
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
289
325
|
case 0:
|
|
290
|
-
return
|
|
326
|
+
return _context12.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/field/deleteAttributes"), {
|
|
291
327
|
data: data,
|
|
292
328
|
method: 'POST'
|
|
293
329
|
}));
|
|
294
330
|
case 1:
|
|
295
331
|
case "end":
|
|
296
|
-
return
|
|
332
|
+
return _context12.stop();
|
|
297
333
|
}
|
|
298
|
-
},
|
|
334
|
+
}, _callee12);
|
|
299
335
|
}));
|
|
300
336
|
return _fetchDelAttrs.apply(this, arguments);
|
|
301
337
|
}
|
|
302
|
-
function fetchUpdateFieldAttrs(
|
|
338
|
+
function fetchUpdateFieldAttrs(_x16) {
|
|
303
339
|
return _fetchUpdateFieldAttrs.apply(this, arguments);
|
|
304
340
|
}
|
|
305
341
|
/**
|
|
@@ -308,23 +344,23 @@ function fetchUpdateFieldAttrs(_x14) {
|
|
|
308
344
|
* @returns
|
|
309
345
|
*/
|
|
310
346
|
function _fetchUpdateFieldAttrs() {
|
|
311
|
-
_fetchUpdateFieldAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
312
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
313
|
-
while (1) switch (
|
|
347
|
+
_fetchUpdateFieldAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee13(data) {
|
|
348
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee13$(_context13) {
|
|
349
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
314
350
|
case 0:
|
|
315
|
-
return
|
|
351
|
+
return _context13.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/field/updateAttributes"), {
|
|
316
352
|
data: data,
|
|
317
353
|
method: 'POST'
|
|
318
354
|
}));
|
|
319
355
|
case 1:
|
|
320
356
|
case "end":
|
|
321
|
-
return
|
|
357
|
+
return _context13.stop();
|
|
322
358
|
}
|
|
323
|
-
},
|
|
359
|
+
}, _callee13);
|
|
324
360
|
}));
|
|
325
361
|
return _fetchUpdateFieldAttrs.apply(this, arguments);
|
|
326
362
|
}
|
|
327
|
-
function fetchAttrs(
|
|
363
|
+
function fetchAttrs(_x17) {
|
|
328
364
|
return _fetchAttrs.apply(this, arguments);
|
|
329
365
|
}
|
|
330
366
|
/**
|
|
@@ -333,22 +369,22 @@ function fetchAttrs(_x15) {
|
|
|
333
369
|
* @returns
|
|
334
370
|
*/
|
|
335
371
|
function _fetchAttrs() {
|
|
336
|
-
_fetchAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
337
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
338
|
-
while (1) switch (
|
|
372
|
+
_fetchAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee14(params) {
|
|
373
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee14$(_context14) {
|
|
374
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
339
375
|
case 0:
|
|
340
|
-
return
|
|
376
|
+
return _context14.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/field/readAttributes"), {
|
|
341
377
|
params: params
|
|
342
378
|
}));
|
|
343
379
|
case 1:
|
|
344
380
|
case "end":
|
|
345
|
-
return
|
|
381
|
+
return _context14.stop();
|
|
346
382
|
}
|
|
347
|
-
},
|
|
383
|
+
}, _callee14);
|
|
348
384
|
}));
|
|
349
385
|
return _fetchAttrs.apply(this, arguments);
|
|
350
386
|
}
|
|
351
|
-
function fetchAllBehavior(
|
|
387
|
+
function fetchAllBehavior(_x18) {
|
|
352
388
|
return _fetchAllBehavior.apply(this, arguments);
|
|
353
389
|
}
|
|
354
390
|
/**
|
|
@@ -357,51 +393,89 @@ function fetchAllBehavior(_x16) {
|
|
|
357
393
|
* @returns
|
|
358
394
|
*/
|
|
359
395
|
function _fetchAllBehavior() {
|
|
360
|
-
_fetchAllBehavior = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
361
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
362
|
-
while (1) switch (
|
|
396
|
+
_fetchAllBehavior = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee15(params) {
|
|
397
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee15$(_context15) {
|
|
398
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
363
399
|
case 0:
|
|
364
|
-
return
|
|
400
|
+
return _context15.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_MODULE, "/behavior/readAll"), {
|
|
365
401
|
params: params
|
|
366
402
|
}));
|
|
367
403
|
case 1:
|
|
368
404
|
case "end":
|
|
369
|
-
return
|
|
405
|
+
return _context15.stop();
|
|
370
406
|
}
|
|
371
|
-
},
|
|
407
|
+
}, _callee15);
|
|
372
408
|
}));
|
|
373
409
|
return _fetchAllBehavior.apply(this, arguments);
|
|
374
410
|
}
|
|
375
|
-
function fetchAllSerials(
|
|
411
|
+
function fetchAllSerials(_x19) {
|
|
376
412
|
return _fetchAllSerials.apply(this, arguments);
|
|
377
413
|
}
|
|
414
|
+
/**
|
|
415
|
+
* 读取导入导出数据源
|
|
416
|
+
* @param {{moduleCode, behaviorMode:[IMPORT, EXPORT]}} params
|
|
417
|
+
* @returns
|
|
418
|
+
*/
|
|
378
419
|
function _fetchAllSerials() {
|
|
379
|
-
_fetchAllSerials = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
380
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
381
|
-
while (1) switch (
|
|
420
|
+
_fetchAllSerials = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee16(params) {
|
|
421
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee16$(_context16) {
|
|
422
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
382
423
|
case 0:
|
|
383
|
-
return
|
|
424
|
+
return _context16.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_MODULE, "/Serials/readAll"), {
|
|
384
425
|
params: params
|
|
385
426
|
}));
|
|
386
427
|
case 1:
|
|
387
428
|
case "end":
|
|
388
|
-
return
|
|
429
|
+
return _context16.stop();
|
|
389
430
|
}
|
|
390
|
-
},
|
|
431
|
+
}, _callee16);
|
|
391
432
|
}));
|
|
392
433
|
return _fetchAllSerials.apply(this, arguments);
|
|
393
434
|
}
|
|
394
|
-
function
|
|
435
|
+
function fetchAllBehaviorEx(_x20) {
|
|
436
|
+
return _fetchAllBehaviorEx.apply(this, arguments);
|
|
437
|
+
}
|
|
438
|
+
function _fetchAllBehaviorEx() {
|
|
439
|
+
_fetchAllBehaviorEx = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee17(params) {
|
|
440
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee17$(_context17) {
|
|
441
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
442
|
+
case 0:
|
|
443
|
+
return _context17.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_PAGE, "/option/noAuthGetBehavior"), {
|
|
444
|
+
params: params
|
|
445
|
+
}));
|
|
446
|
+
case 1:
|
|
447
|
+
case "end":
|
|
448
|
+
return _context17.stop();
|
|
449
|
+
}
|
|
450
|
+
}, _callee17);
|
|
451
|
+
}));
|
|
452
|
+
return _fetchAllBehaviorEx.apply(this, arguments);
|
|
453
|
+
}
|
|
454
|
+
function getBehaviorUrl() {
|
|
455
|
+
var mdCode = (0, _helper.getLDMetaAttr)('dataModelKey');
|
|
456
|
+
return "".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/to/behavior/call");
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* 执行行为
|
|
461
|
+
* @param {*} params
|
|
462
|
+
* @param {*} data
|
|
463
|
+
* @returns
|
|
464
|
+
*/
|
|
465
|
+
function fetchCallBehavior(_x21, _x22) {
|
|
395
466
|
return _fetchCallBehavior.apply(this, arguments);
|
|
396
467
|
}
|
|
468
|
+
/**
|
|
469
|
+
* 清除当前模块缓存
|
|
470
|
+
* @param {{moduleCode}} params
|
|
471
|
+
* @returns
|
|
472
|
+
*/
|
|
397
473
|
function _fetchCallBehavior() {
|
|
398
|
-
_fetchCallBehavior = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
while (1) switch (_context16.prev = _context16.next) {
|
|
474
|
+
_fetchCallBehavior = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee18(params, data) {
|
|
475
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee18$(_context18) {
|
|
476
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
402
477
|
case 0:
|
|
403
|
-
|
|
404
|
-
return _context16.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/to/behavior/call"), {
|
|
478
|
+
return _context18.abrupt("return", (0, _utils.request)(getBehaviorUrl(), {
|
|
405
479
|
method: 'POST',
|
|
406
480
|
data: data,
|
|
407
481
|
params: params,
|
|
@@ -409,11 +483,188 @@ function _fetchCallBehavior() {
|
|
|
409
483
|
'Content-Type': 'application/json;charset=UTF-8'
|
|
410
484
|
}
|
|
411
485
|
}));
|
|
412
|
-
case
|
|
486
|
+
case 1:
|
|
413
487
|
case "end":
|
|
414
|
-
return
|
|
488
|
+
return _context18.stop();
|
|
415
489
|
}
|
|
416
|
-
},
|
|
490
|
+
}, _callee18);
|
|
417
491
|
}));
|
|
418
492
|
return _fetchCallBehavior.apply(this, arguments);
|
|
493
|
+
}
|
|
494
|
+
function fetchClearCache(_x23) {
|
|
495
|
+
return _fetchClearCache.apply(this, arguments);
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* 更新页面配置数据
|
|
499
|
+
* @param {*} data
|
|
500
|
+
* @returns
|
|
501
|
+
*/
|
|
502
|
+
function _fetchClearCache() {
|
|
503
|
+
_fetchClearCache = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee19(params) {
|
|
504
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee19$(_context19) {
|
|
505
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
506
|
+
case 0:
|
|
507
|
+
return _context19.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.LUCKDA_HOST, "/cache/manage/noAuthModuleConfigClear"), {
|
|
508
|
+
params: params
|
|
509
|
+
}));
|
|
510
|
+
case 1:
|
|
511
|
+
case "end":
|
|
512
|
+
return _context19.stop();
|
|
513
|
+
}
|
|
514
|
+
}, _callee19);
|
|
515
|
+
}));
|
|
516
|
+
return _fetchClearCache.apply(this, arguments);
|
|
517
|
+
}
|
|
518
|
+
function fetchUpdatePageData(_x24) {
|
|
519
|
+
return _fetchUpdatePageData.apply(this, arguments);
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* 获取数据字典
|
|
523
|
+
* @param {{snamealias}} params
|
|
524
|
+
* @returns
|
|
525
|
+
*/
|
|
526
|
+
function _fetchUpdatePageData() {
|
|
527
|
+
_fetchUpdatePageData = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee20(data) {
|
|
528
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee20$(_context20) {
|
|
529
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
530
|
+
case 0:
|
|
531
|
+
return _context20.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_PAGE, "/data/update"), {
|
|
532
|
+
method: 'POST',
|
|
533
|
+
data: data
|
|
534
|
+
}));
|
|
535
|
+
case 1:
|
|
536
|
+
case "end":
|
|
537
|
+
return _context20.stop();
|
|
538
|
+
}
|
|
539
|
+
}, _callee20);
|
|
540
|
+
}));
|
|
541
|
+
return _fetchUpdatePageData.apply(this, arguments);
|
|
542
|
+
}
|
|
543
|
+
function fetchDataDic(_x25) {
|
|
544
|
+
return _fetchDataDic.apply(this, arguments);
|
|
545
|
+
}
|
|
546
|
+
/**
|
|
547
|
+
* 导出excel
|
|
548
|
+
* @param {*} data
|
|
549
|
+
* @returns
|
|
550
|
+
*/
|
|
551
|
+
function _fetchDataDic() {
|
|
552
|
+
_fetchDataDic = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee21(params) {
|
|
553
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee21$(_context21) {
|
|
554
|
+
while (1) switch (_context21.prev = _context21.next) {
|
|
555
|
+
case 0:
|
|
556
|
+
return _context21.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.BASE_HOST, "/datadic/sysDatadic/noAuthReadAll"), {
|
|
557
|
+
params: params
|
|
558
|
+
}));
|
|
559
|
+
case 1:
|
|
560
|
+
case "end":
|
|
561
|
+
return _context21.stop();
|
|
562
|
+
}
|
|
563
|
+
}, _callee21);
|
|
564
|
+
}));
|
|
565
|
+
return _fetchDataDic.apply(this, arguments);
|
|
566
|
+
}
|
|
567
|
+
function exportExcel(_x26, _x27) {
|
|
568
|
+
return _exportExcel.apply(this, arguments);
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* 导入
|
|
572
|
+
* @param {*} params, data
|
|
573
|
+
* @returns
|
|
574
|
+
*/
|
|
575
|
+
function _exportExcel() {
|
|
576
|
+
_exportExcel = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee22(params, data) {
|
|
577
|
+
var mdCode, FUNC_NAME;
|
|
578
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee22$(_context22) {
|
|
579
|
+
while (1) switch (_context22.prev = _context22.next) {
|
|
580
|
+
case 0:
|
|
581
|
+
mdCode = (0, _helper.getLDMetaAttr)('dataModelKey');
|
|
582
|
+
FUNC_NAME = params;
|
|
583
|
+
return _context22.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthExport").concat(FUNC_NAME), {
|
|
584
|
+
method: 'POST',
|
|
585
|
+
data: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, data), {}, {
|
|
586
|
+
gatewayUrl: "".concat(window.location.origin).concat(_ApiConfig.default.API_HOST)
|
|
587
|
+
})
|
|
588
|
+
}));
|
|
589
|
+
case 3:
|
|
590
|
+
case "end":
|
|
591
|
+
return _context22.stop();
|
|
592
|
+
}
|
|
593
|
+
}, _callee22);
|
|
594
|
+
}));
|
|
595
|
+
return _exportExcel.apply(this, arguments);
|
|
596
|
+
}
|
|
597
|
+
function uploadTemplate(_x28, _x29) {
|
|
598
|
+
return _uploadTemplate.apply(this, arguments);
|
|
599
|
+
} // var successCount = 10;
|
|
600
|
+
// 获取导入进度数据
|
|
601
|
+
function _uploadTemplate() {
|
|
602
|
+
_uploadTemplate = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee23(params, data) {
|
|
603
|
+
var mdCode, FUNC_NAME;
|
|
604
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee23$(_context23) {
|
|
605
|
+
while (1) switch (_context23.prev = _context23.next) {
|
|
606
|
+
case 0:
|
|
607
|
+
mdCode = (0, _helper.getLDMetaAttr)('dataModelKey');
|
|
608
|
+
FUNC_NAME = params;
|
|
609
|
+
return _context23.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthImport").concat(FUNC_NAME), {
|
|
610
|
+
method: 'POST',
|
|
611
|
+
data: data
|
|
612
|
+
}));
|
|
613
|
+
case 3:
|
|
614
|
+
case "end":
|
|
615
|
+
return _context23.stop();
|
|
616
|
+
}
|
|
617
|
+
}, _callee23);
|
|
618
|
+
}));
|
|
619
|
+
return _uploadTemplate.apply(this, arguments);
|
|
620
|
+
}
|
|
621
|
+
function getFindexcelstate(_x30, _x31) {
|
|
622
|
+
return _getFindexcelstate.apply(this, arguments);
|
|
623
|
+
}
|
|
624
|
+
function _getFindexcelstate() {
|
|
625
|
+
_getFindexcelstate = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee24(params, data) {
|
|
626
|
+
var mdCode, FUNC_NAME;
|
|
627
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee24$(_context24) {
|
|
628
|
+
while (1) switch (_context24.prev = _context24.next) {
|
|
629
|
+
case 0:
|
|
630
|
+
mdCode = (0, _helper.getLDMetaAttr)('dataModelKey');
|
|
631
|
+
FUNC_NAME = params;
|
|
632
|
+
return _context24.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthGetProgress").concat(FUNC_NAME), {
|
|
633
|
+
method: 'POST',
|
|
634
|
+
data: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, data), {}, {
|
|
635
|
+
gatewayUrl: "".concat(window.location.origin).concat(_ApiConfig.default.API_HOST)
|
|
636
|
+
})
|
|
637
|
+
}));
|
|
638
|
+
case 3:
|
|
639
|
+
case "end":
|
|
640
|
+
return _context24.stop();
|
|
641
|
+
}
|
|
642
|
+
}, _callee24);
|
|
643
|
+
}));
|
|
644
|
+
return _getFindexcelstate.apply(this, arguments);
|
|
645
|
+
}
|
|
646
|
+
function noAuthGetTemplateUrl(_x32) {
|
|
647
|
+
return _noAuthGetTemplateUrl.apply(this, arguments);
|
|
648
|
+
}
|
|
649
|
+
function _noAuthGetTemplateUrl() {
|
|
650
|
+
_noAuthGetTemplateUrl = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee25(params) {
|
|
651
|
+
var mdCode;
|
|
652
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee25$(_context25) {
|
|
653
|
+
while (1) switch (_context25.prev = _context25.next) {
|
|
654
|
+
case 0:
|
|
655
|
+
mdCode = (0, _helper.getLDMetaAttr)('dataModelKey');
|
|
656
|
+
return _context25.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthGetTemplateUrl"), {
|
|
657
|
+
method: 'POST',
|
|
658
|
+
data: {
|
|
659
|
+
gatewayUrl: "".concat(window.location.origin).concat(_ApiConfig.default.API_HOST),
|
|
660
|
+
templateId: params
|
|
661
|
+
}
|
|
662
|
+
}));
|
|
663
|
+
case 2:
|
|
664
|
+
case "end":
|
|
665
|
+
return _context25.stop();
|
|
666
|
+
}
|
|
667
|
+
}, _callee25);
|
|
668
|
+
}));
|
|
669
|
+
return _noAuthGetTemplateUrl.apply(this, arguments);
|
|
419
670
|
}
|