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