@luck-design-biz/luckda 1.0.6-13tl → 1.0.7
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 +37 -27
- package/es/components/ComplexItem/index.js +5 -3
- package/es/components/ComplexItem/service.js +6 -3
- package/es/components/LdAutoForm/index.js +25 -12
- package/es/components/LdCard/index.js +10 -8
- package/es/components/LdCom/index.js +3 -2
- package/es/components/LdFormList/index.js +5 -4
- package/es/components/LdGrid/index.js +29 -20
- package/es/components/LdGridForm/index.js +16 -7
- package/es/components/LdInfoPanel/index.js +16 -10
- package/es/helper/FromItems.js +64 -5
- package/es/helper/form.js +8 -2
- package/es/helper/ldBuilder.js +9 -5
- package/es/helper/ldComBuild.js +16 -11
- package/es/locales/zh-CN.js +40 -4
- package/es/lowcode/constants/api-url.js +202 -175
- package/es/lowcode/constants/event-topics.js +2 -0
- package/es/lowcode/constants/index.js +5 -4
- package/es/lowcode/engine/meta/components-list.json +6 -0
- package/es/lowcode/engine/meta/fielddate.props.default.json +1 -0
- package/es/lowcode/engine/meta/fielddate.props.json +48 -0
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +5 -0
- package/es/lowcode/engine/meta/pagecomponent.props.default.json +8 -0
- package/es/lowcode/engine/meta/pagecomponent.props.json +41 -0
- package/es/lowcode/engine/meta/proxy.props.default.json +15 -0
- package/es/lowcode/engine/meta/proxy.props.json +66 -0
- package/es/lowcode/engine/provider/ContextProvider/index.js +45 -9
- 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 +44 -5
- package/es/lowcode/engine/tools/initDS.js +4 -4
- package/es/lowcode/painter/Design.js +1 -0
- package/es/lowcode/painter/DesignOperator.js +129 -27
- package/es/lowcode/painter/DesignToolbar.js +88 -173
- package/es/lowcode/painter/components/AdvancePanel.js +28 -10
- package/es/lowcode/painter/components/TipIcon.js +12 -4
- package/es/lowcode/painter/components/field-setting/SettingUI.js +56 -4
- package/es/lowcode/painter/components/field-setting/index.js +24 -1
- package/es/lowcode/painter/components/shortcut-modal/KeyIcon.js +11 -0
- package/es/lowcode/painter/components/shortcut-modal/index.js +208 -0
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +10 -19
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +4 -1
- package/es/lowcode/painter/panel-section/ConditionCheck.js +0 -1
- package/es/lowcode/painter/panel-section/DataSetSelector.js +6 -3
- package/es/lowcode/painter/panel-section/FieldsSetting.js +1 -1
- package/es/lowcode/painter/panel-section/IconConditionSelector.js +2 -1
- package/es/lowcode/painter/panel-section/JSEditor/ToolBar.js +7 -4
- package/es/lowcode/painter/panel-section/JSEditor/index.js +15 -5
- package/es/lowcode/painter/panel-section/JSEditor/index.less +4 -0
- package/es/lowcode/painter/panel-section/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/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/Page.js +8 -3
- package/es/lowcode/view/lc-components/CardList/index.js +3 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +9 -7
- package/es/lowcode/view/lc-components/Drawer/index.js +2 -0
- package/es/lowcode/view/lc-components/FieldDate/meta.json +48 -0
- package/es/lowcode/view/lc-components/Form/index.js +3 -0
- 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/Table/components/TopImex.js +5 -23
- package/es/lowcode/view/lc-components/Table/index.js +12 -6
- package/es/lowcode/view/lc-components/Tabs/index.js +6 -2
- package/es/lowcode/view/lc-components/Tree/index.js +3 -0
- package/es/lowcode/view/lc-components/Wrapper.js +7 -1
- package/es/services.js +25 -7
- package/es/utils/action.js +3 -2
- package/es/utils/form.js +37 -4
- package/es/utils/grid.js +2 -1
- package/lib/components/Builder/index.js +36 -26
- package/lib/components/ComplexItem/index.js +5 -3
- package/lib/components/ComplexItem/service.js +6 -3
- package/lib/components/LdAutoForm/index.js +22 -9
- package/lib/components/LdCard/index.js +10 -8
- package/lib/components/LdCom/index.js +3 -2
- package/lib/components/LdFormList/index.js +4 -3
- package/lib/components/LdGrid/index.js +29 -20
- package/lib/components/LdGridForm/index.js +13 -4
- package/lib/components/LdInfoPanel/index.js +15 -9
- package/lib/helper/FromItems.js +64 -5
- package/lib/helper/form.js +8 -2
- package/lib/helper/ldBuilder.js +8 -5
- package/lib/helper/ldComBuild.js +14 -9
- package/lib/locales/zh-CN.js +40 -4
- package/lib/lowcode/constants/api-url.js +204 -175
- package/lib/lowcode/constants/event-topics.js +3 -1
- package/lib/lowcode/constants/index.js +6 -5
- package/lib/lowcode/engine/meta/components-list.json +6 -0
- package/lib/lowcode/engine/meta/fielddate.props.default.json +1 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +48 -0
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +5 -0
- package/lib/lowcode/engine/meta/pagecomponent.props.default.json +8 -0
- package/lib/lowcode/engine/meta/pagecomponent.props.json +41 -0
- package/lib/lowcode/engine/meta/proxy.props.default.json +15 -0
- package/lib/lowcode/engine/meta/proxy.props.json +66 -0
- package/lib/lowcode/engine/provider/ContextProvider/index.js +50 -13
- 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 +44 -4
- package/lib/lowcode/engine/tools/initDS.js +4 -4
- package/lib/lowcode/painter/Design.js +1 -0
- package/lib/lowcode/painter/DesignOperator.js +126 -24
- package/lib/lowcode/painter/DesignToolbar.js +84 -169
- package/lib/lowcode/painter/components/AdvancePanel.js +27 -9
- package/lib/lowcode/painter/components/TipIcon.js +12 -4
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +55 -3
- package/lib/lowcode/painter/components/field-setting/index.js +24 -1
- package/lib/lowcode/painter/components/shortcut-modal/KeyIcon.js +18 -0
- package/lib/lowcode/painter/components/shortcut-modal/index.js +215 -0
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +9 -18
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +4 -1
- package/lib/lowcode/painter/panel-section/ConditionCheck.js +0 -1
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +6 -3
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +1 -1
- package/lib/lowcode/painter/panel-section/IconConditionSelector.js +2 -1
- package/lib/lowcode/painter/panel-section/JSEditor/ToolBar.js +7 -4
- package/lib/lowcode/painter/panel-section/JSEditor/index.js +14 -4
- package/lib/lowcode/painter/panel-section/JSEditor/index.less +4 -0
- package/lib/lowcode/painter/panel-section/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/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/Page.js +8 -3
- package/lib/lowcode/view/lc-components/CardList/index.js +3 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +9 -7
- package/lib/lowcode/view/lc-components/Drawer/index.js +2 -0
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +48 -0
- package/lib/lowcode/view/lc-components/Form/index.js +3 -0
- 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/Table/components/TopImex.js +4 -22
- package/lib/lowcode/view/lc-components/Table/index.js +12 -6
- package/lib/lowcode/view/lc-components/Tabs/index.js +5 -1
- package/lib/lowcode/view/lc-components/Tree/index.js +3 -0
- package/lib/lowcode/view/lc-components/Wrapper.js +6 -0
- package/lib/services.js +26 -7
- package/lib/utils/action.js +6 -0
- package/lib/utils/form.js +38 -4
- package/lib/utils/grid.js +2 -1
- package/package.json +1 -1
- package/es/lowcode/engine/meta/button.api.json +0 -0
- package/lib/lowcode/engine/meta/button.api.json +0 -0
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.ICONLIST_URL = exports.ICONLIST_JS = void 0;
|
|
8
|
-
exports.clearProcess = clearProcess;
|
|
9
8
|
exports.exportExcel = exportExcel;
|
|
10
9
|
exports.fetchAddDataset = fetchAddDataset;
|
|
11
10
|
exports.fetchAddFieldAttrs = fetchAddFieldAttrs;
|
|
@@ -24,6 +23,7 @@ exports.fetchDesignModlueData = fetchDesignModlueData;
|
|
|
24
23
|
exports.fetchFieldCondition = fetchFieldCondition;
|
|
25
24
|
exports.fetchFieldsByDataset = fetchFieldsByDataset;
|
|
26
25
|
exports.fetchHistoryVersionList = fetchHistoryVersionList;
|
|
26
|
+
exports.fetchMenuTree = fetchMenuTree;
|
|
27
27
|
exports.fetchModlueData = fetchModlueData;
|
|
28
28
|
exports.fetchPageData = fetchPageData;
|
|
29
29
|
exports.fetchPreviewModlueData = fetchPreviewModlueData;
|
|
@@ -36,6 +36,7 @@ exports.fetchUpdateUniqueField = fetchUpdateUniqueField;
|
|
|
36
36
|
exports.getBehaviorUrl = getBehaviorUrl;
|
|
37
37
|
exports.getFindexcelstate = getFindexcelstate;
|
|
38
38
|
exports.noAuthGetTemplateUrl = noAuthGetTemplateUrl;
|
|
39
|
+
exports.readCallBehavior = readCallBehavior;
|
|
39
40
|
exports.uploadTemplate = uploadTemplate;
|
|
40
41
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
41
42
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
@@ -212,7 +213,7 @@ function _fetchDesignModlueData() {
|
|
|
212
213
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee6$(_context6) {
|
|
213
214
|
while (1) switch (_context6.prev = _context6.next) {
|
|
214
215
|
case 0:
|
|
215
|
-
return _context6.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_PAGE, "/
|
|
216
|
+
return _context6.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_PAGE, "/fetchModuleInfos"), {
|
|
216
217
|
params: params,
|
|
217
218
|
headers: (0, _defineProperty2.default)({}, _constants.LC_RUNTIME_KEY, (0, _helper.getMetaAttr)(_constants.LC_RUNTIME_KEY))
|
|
218
219
|
}));
|
|
@@ -236,7 +237,7 @@ function _fetchPreviewModlueData() {
|
|
|
236
237
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee7$(_context7) {
|
|
237
238
|
while (1) switch (_context7.prev = _context7.next) {
|
|
238
239
|
case 0:
|
|
239
|
-
return _context7.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(dmCode, "/ui/builder/
|
|
240
|
+
return _context7.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(dmCode, "/ui/builder/fetchModulesForPreview"), {
|
|
240
241
|
params: params,
|
|
241
242
|
headers: (0, _defineProperty2.default)({}, _constants.LC_RUNTIME_KEY, (0, _helper.getMetaAttr)(_constants.LC_RUNTIME_KEY))
|
|
242
243
|
}));
|
|
@@ -260,7 +261,7 @@ function _fetchModlueData() {
|
|
|
260
261
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee8$(_context8) {
|
|
261
262
|
while (1) switch (_context8.prev = _context8.next) {
|
|
262
263
|
case 0:
|
|
263
|
-
return _context8.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(dmCode, "/ui/builder/
|
|
264
|
+
return _context8.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(dmCode, "/ui/builder/noAuthFetchModules"), {
|
|
264
265
|
params: params,
|
|
265
266
|
headers: (0, _defineProperty2.default)({}, _constants.LC_RUNTIME_KEY, (0, _helper.getMetaAttr)(_constants.LC_RUNTIME_KEY))
|
|
266
267
|
}));
|
|
@@ -299,8 +300,8 @@ function fetchAddDataset(_x13) {
|
|
|
299
300
|
return _fetchAddDataset.apply(this, arguments);
|
|
300
301
|
}
|
|
301
302
|
/**
|
|
302
|
-
*
|
|
303
|
-
* @param {{
|
|
303
|
+
* 获取数据模型下的菜单
|
|
304
|
+
* @param {{ dataModelKey, menuType }} params
|
|
304
305
|
*/
|
|
305
306
|
function _fetchAddDataset() {
|
|
306
307
|
_fetchAddDataset = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee10(data) {
|
|
@@ -319,7 +320,30 @@ function _fetchAddDataset() {
|
|
|
319
320
|
}));
|
|
320
321
|
return _fetchAddDataset.apply(this, arguments);
|
|
321
322
|
}
|
|
322
|
-
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) {
|
|
323
347
|
return _fetchFieldsByDataset.apply(this, arguments);
|
|
324
348
|
}
|
|
325
349
|
/**
|
|
@@ -328,22 +352,22 @@ function fetchFieldsByDataset(_x14) {
|
|
|
328
352
|
* @returns
|
|
329
353
|
*/
|
|
330
354
|
function _fetchFieldsByDataset() {
|
|
331
|
-
_fetchFieldsByDataset = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
332
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
333
|
-
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) {
|
|
334
358
|
case 0:
|
|
335
|
-
return
|
|
359
|
+
return _context12.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/field/readAll"), {
|
|
336
360
|
params: params
|
|
337
361
|
}));
|
|
338
362
|
case 1:
|
|
339
363
|
case "end":
|
|
340
|
-
return
|
|
364
|
+
return _context12.stop();
|
|
341
365
|
}
|
|
342
|
-
},
|
|
366
|
+
}, _callee12);
|
|
343
367
|
}));
|
|
344
368
|
return _fetchFieldsByDataset.apply(this, arguments);
|
|
345
369
|
}
|
|
346
|
-
function fetchFieldCondition(
|
|
370
|
+
function fetchFieldCondition(_x16) {
|
|
347
371
|
return _fetchFieldCondition.apply(this, arguments);
|
|
348
372
|
}
|
|
349
373
|
/**
|
|
@@ -351,22 +375,22 @@ function fetchFieldCondition(_x15) {
|
|
|
351
375
|
* @param {{moduleId,datasetId,moduleFieldId}} params
|
|
352
376
|
*/
|
|
353
377
|
function _fetchFieldCondition() {
|
|
354
|
-
_fetchFieldCondition = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
355
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
356
|
-
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) {
|
|
357
381
|
case 0:
|
|
358
|
-
return
|
|
382
|
+
return _context13.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_PAGE, "/readFieldCondition"), {
|
|
359
383
|
params: params
|
|
360
384
|
}));
|
|
361
385
|
case 1:
|
|
362
386
|
case "end":
|
|
363
|
-
return
|
|
387
|
+
return _context13.stop();
|
|
364
388
|
}
|
|
365
|
-
},
|
|
389
|
+
}, _callee13);
|
|
366
390
|
}));
|
|
367
391
|
return _fetchFieldCondition.apply(this, arguments);
|
|
368
392
|
}
|
|
369
|
-
function fetchUpdateTitleField(
|
|
393
|
+
function fetchUpdateTitleField(_x17) {
|
|
370
394
|
return _fetchUpdateTitleField.apply(this, arguments);
|
|
371
395
|
}
|
|
372
396
|
/**
|
|
@@ -375,23 +399,23 @@ function fetchUpdateTitleField(_x16) {
|
|
|
375
399
|
* @returns
|
|
376
400
|
*/
|
|
377
401
|
function _fetchUpdateTitleField() {
|
|
378
|
-
_fetchUpdateTitleField = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
379
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
380
|
-
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) {
|
|
381
405
|
case 0:
|
|
382
|
-
return
|
|
406
|
+
return _context14.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/field/updateTitleField"), {
|
|
383
407
|
method: 'POST',
|
|
384
408
|
data: data
|
|
385
409
|
}));
|
|
386
410
|
case 1:
|
|
387
411
|
case "end":
|
|
388
|
-
return
|
|
412
|
+
return _context14.stop();
|
|
389
413
|
}
|
|
390
|
-
},
|
|
414
|
+
}, _callee14);
|
|
391
415
|
}));
|
|
392
416
|
return _fetchUpdateTitleField.apply(this, arguments);
|
|
393
417
|
}
|
|
394
|
-
function fetchUpdateUniqueField(
|
|
418
|
+
function fetchUpdateUniqueField(_x18) {
|
|
395
419
|
return _fetchUpdateUniqueField.apply(this, arguments);
|
|
396
420
|
}
|
|
397
421
|
/**
|
|
@@ -399,23 +423,23 @@ function fetchUpdateUniqueField(_x17) {
|
|
|
399
423
|
* @param {*} data
|
|
400
424
|
*/
|
|
401
425
|
function _fetchUpdateUniqueField() {
|
|
402
|
-
_fetchUpdateUniqueField = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
403
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
404
|
-
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) {
|
|
405
429
|
case 0:
|
|
406
|
-
return
|
|
430
|
+
return _context15.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/field/updateUniqueField"), {
|
|
407
431
|
method: 'POST',
|
|
408
432
|
data: data
|
|
409
433
|
}));
|
|
410
434
|
case 1:
|
|
411
435
|
case "end":
|
|
412
|
-
return
|
|
436
|
+
return _context15.stop();
|
|
413
437
|
}
|
|
414
|
-
},
|
|
438
|
+
}, _callee15);
|
|
415
439
|
}));
|
|
416
440
|
return _fetchUpdateUniqueField.apply(this, arguments);
|
|
417
441
|
}
|
|
418
|
-
function fetchAddFieldAttrs(
|
|
442
|
+
function fetchAddFieldAttrs(_x19) {
|
|
419
443
|
return _fetchAddFieldAttrs.apply(this, arguments);
|
|
420
444
|
}
|
|
421
445
|
/**
|
|
@@ -423,23 +447,23 @@ function fetchAddFieldAttrs(_x18) {
|
|
|
423
447
|
* @param {*} data
|
|
424
448
|
*/
|
|
425
449
|
function _fetchAddFieldAttrs() {
|
|
426
|
-
_fetchAddFieldAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
427
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
428
|
-
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) {
|
|
429
453
|
case 0:
|
|
430
|
-
return
|
|
454
|
+
return _context16.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/field/addAttributes"), {
|
|
431
455
|
data: data,
|
|
432
456
|
method: 'POST'
|
|
433
457
|
}));
|
|
434
458
|
case 1:
|
|
435
459
|
case "end":
|
|
436
|
-
return
|
|
460
|
+
return _context16.stop();
|
|
437
461
|
}
|
|
438
|
-
},
|
|
462
|
+
}, _callee16);
|
|
439
463
|
}));
|
|
440
464
|
return _fetchAddFieldAttrs.apply(this, arguments);
|
|
441
465
|
}
|
|
442
|
-
function fetchDelAttrs(
|
|
466
|
+
function fetchDelAttrs(_x20) {
|
|
443
467
|
return _fetchDelAttrs.apply(this, arguments);
|
|
444
468
|
}
|
|
445
469
|
/**
|
|
@@ -447,23 +471,23 @@ function fetchDelAttrs(_x19) {
|
|
|
447
471
|
* @param {*} params
|
|
448
472
|
*/
|
|
449
473
|
function _fetchDelAttrs() {
|
|
450
|
-
_fetchDelAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
451
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
452
|
-
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) {
|
|
453
477
|
case 0:
|
|
454
|
-
return
|
|
478
|
+
return _context17.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/field/deleteAttributes"), {
|
|
455
479
|
data: data,
|
|
456
480
|
method: 'POST'
|
|
457
481
|
}));
|
|
458
482
|
case 1:
|
|
459
483
|
case "end":
|
|
460
|
-
return
|
|
484
|
+
return _context17.stop();
|
|
461
485
|
}
|
|
462
|
-
},
|
|
486
|
+
}, _callee17);
|
|
463
487
|
}));
|
|
464
488
|
return _fetchDelAttrs.apply(this, arguments);
|
|
465
489
|
}
|
|
466
|
-
function fetchUpdateFieldAttrs(
|
|
490
|
+
function fetchUpdateFieldAttrs(_x21) {
|
|
467
491
|
return _fetchUpdateFieldAttrs.apply(this, arguments);
|
|
468
492
|
}
|
|
469
493
|
/**
|
|
@@ -472,23 +496,23 @@ function fetchUpdateFieldAttrs(_x20) {
|
|
|
472
496
|
* @returns
|
|
473
497
|
*/
|
|
474
498
|
function _fetchUpdateFieldAttrs() {
|
|
475
|
-
_fetchUpdateFieldAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
476
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
477
|
-
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) {
|
|
478
502
|
case 0:
|
|
479
|
-
return
|
|
503
|
+
return _context18.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/field/updateAttributes"), {
|
|
480
504
|
data: data,
|
|
481
505
|
method: 'POST'
|
|
482
506
|
}));
|
|
483
507
|
case 1:
|
|
484
508
|
case "end":
|
|
485
|
-
return
|
|
509
|
+
return _context18.stop();
|
|
486
510
|
}
|
|
487
|
-
},
|
|
511
|
+
}, _callee18);
|
|
488
512
|
}));
|
|
489
513
|
return _fetchUpdateFieldAttrs.apply(this, arguments);
|
|
490
514
|
}
|
|
491
|
-
function fetchAttrs(
|
|
515
|
+
function fetchAttrs(_x22) {
|
|
492
516
|
return _fetchAttrs.apply(this, arguments);
|
|
493
517
|
}
|
|
494
518
|
/**
|
|
@@ -497,22 +521,22 @@ function fetchAttrs(_x21) {
|
|
|
497
521
|
* @returns
|
|
498
522
|
*/
|
|
499
523
|
function _fetchAttrs() {
|
|
500
|
-
_fetchAttrs = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
501
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
502
|
-
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) {
|
|
503
527
|
case 0:
|
|
504
|
-
return
|
|
528
|
+
return _context19.abrupt("return", (0, _utils.request)("".concat(API_RREFIX_DATASET, "/field/readAttributes"), {
|
|
505
529
|
params: params
|
|
506
530
|
}));
|
|
507
531
|
case 1:
|
|
508
532
|
case "end":
|
|
509
|
-
return
|
|
533
|
+
return _context19.stop();
|
|
510
534
|
}
|
|
511
|
-
},
|
|
535
|
+
}, _callee19);
|
|
512
536
|
}));
|
|
513
537
|
return _fetchAttrs.apply(this, arguments);
|
|
514
538
|
}
|
|
515
|
-
function fetchAllBehavior(
|
|
539
|
+
function fetchAllBehavior(_x23) {
|
|
516
540
|
return _fetchAllBehavior.apply(this, arguments);
|
|
517
541
|
}
|
|
518
542
|
/**
|
|
@@ -521,22 +545,22 @@ function fetchAllBehavior(_x22) {
|
|
|
521
545
|
* @returns
|
|
522
546
|
*/
|
|
523
547
|
function _fetchAllBehavior() {
|
|
524
|
-
_fetchAllBehavior = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
525
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
526
|
-
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) {
|
|
527
551
|
case 0:
|
|
528
|
-
return
|
|
552
|
+
return _context20.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_MODULE, "/behavior/readAll"), {
|
|
529
553
|
params: params
|
|
530
554
|
}));
|
|
531
555
|
case 1:
|
|
532
556
|
case "end":
|
|
533
|
-
return
|
|
557
|
+
return _context20.stop();
|
|
534
558
|
}
|
|
535
|
-
},
|
|
559
|
+
}, _callee20);
|
|
536
560
|
}));
|
|
537
561
|
return _fetchAllBehavior.apply(this, arguments);
|
|
538
562
|
}
|
|
539
|
-
function fetchAllSerials(
|
|
563
|
+
function fetchAllSerials(_x24) {
|
|
540
564
|
return _fetchAllSerials.apply(this, arguments);
|
|
541
565
|
}
|
|
542
566
|
/**
|
|
@@ -545,42 +569,42 @@ function fetchAllSerials(_x23) {
|
|
|
545
569
|
* @returns
|
|
546
570
|
*/
|
|
547
571
|
function _fetchAllSerials() {
|
|
548
|
-
_fetchAllSerials = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
549
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
550
|
-
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) {
|
|
551
575
|
case 0:
|
|
552
|
-
return
|
|
576
|
+
return _context21.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_MODULE, "/Serials/readAll"), {
|
|
553
577
|
params: params
|
|
554
578
|
}));
|
|
555
579
|
case 1:
|
|
556
580
|
case "end":
|
|
557
|
-
return
|
|
581
|
+
return _context21.stop();
|
|
558
582
|
}
|
|
559
|
-
},
|
|
583
|
+
}, _callee21);
|
|
560
584
|
}));
|
|
561
585
|
return _fetchAllSerials.apply(this, arguments);
|
|
562
586
|
}
|
|
563
|
-
function fetchAllBehaviorEx(
|
|
587
|
+
function fetchAllBehaviorEx(_x25) {
|
|
564
588
|
return _fetchAllBehaviorEx.apply(this, arguments);
|
|
565
589
|
}
|
|
566
590
|
function _fetchAllBehaviorEx() {
|
|
567
|
-
_fetchAllBehaviorEx = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
568
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
569
|
-
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) {
|
|
570
594
|
case 0:
|
|
571
|
-
return
|
|
595
|
+
return _context22.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_PAGE, "/option/noAuthGetBehavior"), {
|
|
572
596
|
params: params
|
|
573
597
|
}));
|
|
574
598
|
case 1:
|
|
575
599
|
case "end":
|
|
576
|
-
return
|
|
600
|
+
return _context22.stop();
|
|
577
601
|
}
|
|
578
|
-
},
|
|
602
|
+
}, _callee22);
|
|
579
603
|
}));
|
|
580
604
|
return _fetchAllBehaviorEx.apply(this, arguments);
|
|
581
605
|
}
|
|
582
|
-
function getBehaviorUrl() {
|
|
583
|
-
var mdCode = (0, _helper.getLDMetaAttr)('dataModelKey');
|
|
606
|
+
function getBehaviorUrl(_mdCode) {
|
|
607
|
+
var mdCode = _mdCode || (0, _helper.getLDMetaAttr)('dataModelKey') || SYS_CODE;
|
|
584
608
|
return "".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/to/behavior/call");
|
|
585
609
|
}
|
|
586
610
|
|
|
@@ -590,36 +614,60 @@ function getBehaviorUrl() {
|
|
|
590
614
|
* @param {*} data
|
|
591
615
|
* @returns
|
|
592
616
|
*/
|
|
593
|
-
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
|
+
}));
|
|
594
639
|
return _fetchCallBehavior.apply(this, arguments);
|
|
595
640
|
}
|
|
641
|
+
function readCallBehavior(_x28, _x29, _x30) {
|
|
642
|
+
return _readCallBehavior.apply(this, arguments);
|
|
643
|
+
}
|
|
596
644
|
/**
|
|
597
645
|
* 清除当前模块缓存
|
|
598
646
|
* @param {{moduleCode}} params
|
|
599
647
|
* @returns
|
|
600
648
|
*/
|
|
601
|
-
function
|
|
602
|
-
|
|
603
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
604
|
-
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) {
|
|
605
653
|
case 0:
|
|
606
|
-
return
|
|
654
|
+
return _context24.abrupt("return", (0, _utils.request)(getBehaviorUrl(mdCode), {
|
|
607
655
|
method: 'POST',
|
|
608
656
|
data: data,
|
|
609
657
|
params: params,
|
|
610
658
|
headers: (0, _defineProperty2.default)({
|
|
611
659
|
'Content-Type': 'application/json;charset=UTF-8'
|
|
612
|
-
}, _constants.LC_RUNTIME_KEY,
|
|
660
|
+
}, _constants.LC_RUNTIME_KEY, 'live')
|
|
613
661
|
}));
|
|
614
662
|
case 1:
|
|
615
663
|
case "end":
|
|
616
|
-
return
|
|
664
|
+
return _context24.stop();
|
|
617
665
|
}
|
|
618
|
-
},
|
|
666
|
+
}, _callee24);
|
|
619
667
|
}));
|
|
620
|
-
return
|
|
668
|
+
return _readCallBehavior.apply(this, arguments);
|
|
621
669
|
}
|
|
622
|
-
function fetchClearCache(
|
|
670
|
+
function fetchClearCache(_x31) {
|
|
623
671
|
return _fetchClearCache.apply(this, arguments);
|
|
624
672
|
}
|
|
625
673
|
/**
|
|
@@ -628,22 +676,22 @@ function fetchClearCache(_x27) {
|
|
|
628
676
|
* @returns
|
|
629
677
|
*/
|
|
630
678
|
function _fetchClearCache() {
|
|
631
|
-
_fetchClearCache = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
632
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
633
|
-
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) {
|
|
634
682
|
case 0:
|
|
635
|
-
return
|
|
683
|
+
return _context25.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.LUCKDA_HOST, "/cache/manage/noAuthModuleConfigClear"), {
|
|
636
684
|
params: params
|
|
637
685
|
}));
|
|
638
686
|
case 1:
|
|
639
687
|
case "end":
|
|
640
|
-
return
|
|
688
|
+
return _context25.stop();
|
|
641
689
|
}
|
|
642
|
-
},
|
|
690
|
+
}, _callee25);
|
|
643
691
|
}));
|
|
644
692
|
return _fetchClearCache.apply(this, arguments);
|
|
645
693
|
}
|
|
646
|
-
function fetchUpdatePageData(
|
|
694
|
+
function fetchUpdatePageData(_x32) {
|
|
647
695
|
return _fetchUpdatePageData.apply(this, arguments);
|
|
648
696
|
}
|
|
649
697
|
/**
|
|
@@ -652,23 +700,23 @@ function fetchUpdatePageData(_x28) {
|
|
|
652
700
|
* @returns
|
|
653
701
|
*/
|
|
654
702
|
function _fetchUpdatePageData() {
|
|
655
|
-
_fetchUpdatePageData = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
656
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
657
|
-
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) {
|
|
658
706
|
case 0:
|
|
659
|
-
return
|
|
707
|
+
return _context26.abrupt("return", (0, _utils.request)("".concat(API_PREFIX_PAGE, "/data/update"), {
|
|
660
708
|
method: 'POST',
|
|
661
709
|
data: data
|
|
662
710
|
}));
|
|
663
711
|
case 1:
|
|
664
712
|
case "end":
|
|
665
|
-
return
|
|
713
|
+
return _context26.stop();
|
|
666
714
|
}
|
|
667
|
-
},
|
|
715
|
+
}, _callee26);
|
|
668
716
|
}));
|
|
669
717
|
return _fetchUpdatePageData.apply(this, arguments);
|
|
670
718
|
}
|
|
671
|
-
function fetchDataDic(
|
|
719
|
+
function fetchDataDic(_x33) {
|
|
672
720
|
return _fetchDataDic.apply(this, arguments);
|
|
673
721
|
}
|
|
674
722
|
/**
|
|
@@ -677,22 +725,22 @@ function fetchDataDic(_x29) {
|
|
|
677
725
|
* @returns
|
|
678
726
|
*/
|
|
679
727
|
function _fetchDataDic() {
|
|
680
|
-
_fetchDataDic = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
681
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
682
|
-
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) {
|
|
683
731
|
case 0:
|
|
684
|
-
return
|
|
732
|
+
return _context27.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.BASE_HOST, "/datadic/sysDatadic/noAuthReadAll"), {
|
|
685
733
|
params: params
|
|
686
734
|
}));
|
|
687
735
|
case 1:
|
|
688
736
|
case "end":
|
|
689
|
-
return
|
|
737
|
+
return _context27.stop();
|
|
690
738
|
}
|
|
691
|
-
},
|
|
739
|
+
}, _callee27);
|
|
692
740
|
}));
|
|
693
741
|
return _fetchDataDic.apply(this, arguments);
|
|
694
742
|
}
|
|
695
|
-
function exportExcel(
|
|
743
|
+
function exportExcel(_x34, _x35) {
|
|
696
744
|
return _exportExcel.apply(this, arguments);
|
|
697
745
|
}
|
|
698
746
|
/**
|
|
@@ -701,14 +749,14 @@ function exportExcel(_x30, _x31) {
|
|
|
701
749
|
* @returns
|
|
702
750
|
*/
|
|
703
751
|
function _exportExcel() {
|
|
704
|
-
_exportExcel = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
752
|
+
_exportExcel = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee28(params, data) {
|
|
705
753
|
var mdCode, FUNC_NAME;
|
|
706
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
707
|
-
while (1) switch (
|
|
754
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee28$(_context28) {
|
|
755
|
+
while (1) switch (_context28.prev = _context28.next) {
|
|
708
756
|
case 0:
|
|
709
757
|
mdCode = (0, _helper.getLDMetaAttr)('dataModelKey');
|
|
710
758
|
FUNC_NAME = params;
|
|
711
|
-
return
|
|
759
|
+
return _context28.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthExport").concat(FUNC_NAME), {
|
|
712
760
|
method: 'POST',
|
|
713
761
|
data: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, data), {}, {
|
|
714
762
|
gatewayUrl: "".concat(window.location.origin).concat(_ApiConfig.default.API_HOST)
|
|
@@ -716,48 +764,48 @@ function _exportExcel() {
|
|
|
716
764
|
}));
|
|
717
765
|
case 3:
|
|
718
766
|
case "end":
|
|
719
|
-
return
|
|
767
|
+
return _context28.stop();
|
|
720
768
|
}
|
|
721
|
-
},
|
|
769
|
+
}, _callee28);
|
|
722
770
|
}));
|
|
723
771
|
return _exportExcel.apply(this, arguments);
|
|
724
772
|
}
|
|
725
|
-
function uploadTemplate(
|
|
773
|
+
function uploadTemplate(_x36, _x37) {
|
|
726
774
|
return _uploadTemplate.apply(this, arguments);
|
|
727
775
|
} // var successCount = 10;
|
|
728
776
|
// 获取导入进度数据
|
|
729
777
|
function _uploadTemplate() {
|
|
730
|
-
_uploadTemplate = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
778
|
+
_uploadTemplate = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee29(params, data) {
|
|
731
779
|
var mdCode, FUNC_NAME;
|
|
732
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
733
|
-
while (1) switch (
|
|
780
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee29$(_context29) {
|
|
781
|
+
while (1) switch (_context29.prev = _context29.next) {
|
|
734
782
|
case 0:
|
|
735
783
|
mdCode = (0, _helper.getLDMetaAttr)('dataModelKey');
|
|
736
784
|
FUNC_NAME = params;
|
|
737
|
-
return
|
|
785
|
+
return _context29.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthImport").concat(FUNC_NAME), {
|
|
738
786
|
method: 'POST',
|
|
739
787
|
data: data
|
|
740
788
|
}));
|
|
741
789
|
case 3:
|
|
742
790
|
case "end":
|
|
743
|
-
return
|
|
791
|
+
return _context29.stop();
|
|
744
792
|
}
|
|
745
|
-
},
|
|
793
|
+
}, _callee29);
|
|
746
794
|
}));
|
|
747
795
|
return _uploadTemplate.apply(this, arguments);
|
|
748
796
|
}
|
|
749
|
-
function getFindexcelstate(
|
|
797
|
+
function getFindexcelstate(_x38, _x39) {
|
|
750
798
|
return _getFindexcelstate.apply(this, arguments);
|
|
751
799
|
}
|
|
752
800
|
function _getFindexcelstate() {
|
|
753
|
-
_getFindexcelstate = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
801
|
+
_getFindexcelstate = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee30(params, data) {
|
|
754
802
|
var mdCode, FUNC_NAME;
|
|
755
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
756
|
-
while (1) switch (
|
|
803
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee30$(_context30) {
|
|
804
|
+
while (1) switch (_context30.prev = _context30.next) {
|
|
757
805
|
case 0:
|
|
758
806
|
mdCode = (0, _helper.getLDMetaAttr)('dataModelKey');
|
|
759
807
|
FUNC_NAME = params;
|
|
760
|
-
return
|
|
808
|
+
return _context30.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthGetProgress").concat(FUNC_NAME), {
|
|
761
809
|
method: 'POST',
|
|
762
810
|
data: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, data), {}, {
|
|
763
811
|
gatewayUrl: "".concat(window.location.origin).concat(_ApiConfig.default.API_HOST)
|
|
@@ -765,23 +813,27 @@ function _getFindexcelstate() {
|
|
|
765
813
|
}));
|
|
766
814
|
case 3:
|
|
767
815
|
case "end":
|
|
768
|
-
return
|
|
816
|
+
return _context30.stop();
|
|
769
817
|
}
|
|
770
|
-
},
|
|
818
|
+
}, _callee30);
|
|
771
819
|
}));
|
|
772
820
|
return _getFindexcelstate.apply(this, arguments);
|
|
773
821
|
}
|
|
774
|
-
function noAuthGetTemplateUrl(
|
|
822
|
+
function noAuthGetTemplateUrl(_x40) {
|
|
775
823
|
return _noAuthGetTemplateUrl.apply(this, arguments);
|
|
776
|
-
}
|
|
824
|
+
}
|
|
825
|
+
/**
|
|
826
|
+
* 页面预览调试获取模拟用户
|
|
827
|
+
* @param {string} sname
|
|
828
|
+
*/
|
|
777
829
|
function _noAuthGetTemplateUrl() {
|
|
778
|
-
_noAuthGetTemplateUrl = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
830
|
+
_noAuthGetTemplateUrl = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee31(params) {
|
|
779
831
|
var mdCode;
|
|
780
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
781
|
-
while (1) switch (
|
|
832
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee31$(_context31) {
|
|
833
|
+
while (1) switch (_context31.prev = _context31.next) {
|
|
782
834
|
case 0:
|
|
783
835
|
mdCode = (0, _helper.getLDMetaAttr)('dataModelKey');
|
|
784
|
-
return
|
|
836
|
+
return _context31.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthGetTemplateUrl"), {
|
|
785
837
|
method: 'POST',
|
|
786
838
|
data: {
|
|
787
839
|
gatewayUrl: "".concat(window.location.origin).concat(_ApiConfig.default.API_HOST),
|
|
@@ -790,52 +842,29 @@ function _noAuthGetTemplateUrl() {
|
|
|
790
842
|
}));
|
|
791
843
|
case 2:
|
|
792
844
|
case "end":
|
|
793
|
-
return
|
|
845
|
+
return _context31.stop();
|
|
794
846
|
}
|
|
795
|
-
},
|
|
847
|
+
}, _callee31);
|
|
796
848
|
}));
|
|
797
849
|
return _noAuthGetTemplateUrl.apply(this, arguments);
|
|
798
850
|
}
|
|
799
|
-
function
|
|
800
|
-
return _clearProcess.apply(this, arguments);
|
|
801
|
-
}
|
|
802
|
-
/**
|
|
803
|
-
* 页面预览调试获取模拟用户
|
|
804
|
-
* @param {string} sname
|
|
805
|
-
*/
|
|
806
|
-
function _clearProcess() {
|
|
807
|
-
_clearProcess = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee30(batchNo) {
|
|
808
|
-
var mdCode;
|
|
809
|
-
return (0, _regeneratorRuntime2.default)().wrap(function _callee30$(_context30) {
|
|
810
|
-
while (1) switch (_context30.prev = _context30.next) {
|
|
811
|
-
case 0:
|
|
812
|
-
mdCode = (0, _helper.getLDMetaAttr)('dataModelKey');
|
|
813
|
-
return _context30.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/batch/clearProgress?batchNo=").concat(batchNo)));
|
|
814
|
-
case 2:
|
|
815
|
-
case "end":
|
|
816
|
-
return _context30.stop();
|
|
817
|
-
}
|
|
818
|
-
}, _callee30);
|
|
819
|
-
}));
|
|
820
|
-
return _clearProcess.apply(this, arguments);
|
|
821
|
-
}
|
|
822
|
-
function fetchSearchUser(_x38) {
|
|
851
|
+
function fetchSearchUser(_x41) {
|
|
823
852
|
return _fetchSearchUser.apply(this, arguments);
|
|
824
853
|
}
|
|
825
854
|
function _fetchSearchUser() {
|
|
826
|
-
_fetchSearchUser = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function
|
|
827
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
828
|
-
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) {
|
|
829
858
|
case 0:
|
|
830
|
-
return
|
|
859
|
+
return _context32.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.BASE_HOST, "/user/sysUser/noAuthReadUser"), {
|
|
831
860
|
params: params,
|
|
832
861
|
method: 'POST'
|
|
833
862
|
}));
|
|
834
863
|
case 1:
|
|
835
864
|
case "end":
|
|
836
|
-
return
|
|
865
|
+
return _context32.stop();
|
|
837
866
|
}
|
|
838
|
-
},
|
|
867
|
+
}, _callee32);
|
|
839
868
|
}));
|
|
840
869
|
return _fetchSearchUser.apply(this, arguments);
|
|
841
870
|
}
|