@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
|
@@ -180,7 +180,7 @@ function _fetchDesignModlueData() {
|
|
|
180
180
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
181
181
|
while (1) switch (_context6.prev = _context6.next) {
|
|
182
182
|
case 0:
|
|
183
|
-
return _context6.abrupt("return", request("".concat(API_PREFIX_PAGE, "/
|
|
183
|
+
return _context6.abrupt("return", request("".concat(API_PREFIX_PAGE, "/fetchModuleInfos"), {
|
|
184
184
|
params: params,
|
|
185
185
|
headers: _defineProperty({}, LC_RUNTIME_KEY, getMetaAttr(LC_RUNTIME_KEY))
|
|
186
186
|
}));
|
|
@@ -205,7 +205,7 @@ function _fetchPreviewModlueData() {
|
|
|
205
205
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
206
206
|
while (1) switch (_context7.prev = _context7.next) {
|
|
207
207
|
case 0:
|
|
208
|
-
return _context7.abrupt("return", request("".concat(api.API_HOST, "/").concat(dmCode, "/ui/builder/
|
|
208
|
+
return _context7.abrupt("return", request("".concat(api.API_HOST, "/").concat(dmCode, "/ui/builder/fetchModulesForPreview"), {
|
|
209
209
|
params: params,
|
|
210
210
|
headers: _defineProperty({}, LC_RUNTIME_KEY, getMetaAttr(LC_RUNTIME_KEY))
|
|
211
211
|
}));
|
|
@@ -230,7 +230,7 @@ function _fetchModlueData() {
|
|
|
230
230
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
231
231
|
while (1) switch (_context8.prev = _context8.next) {
|
|
232
232
|
case 0:
|
|
233
|
-
return _context8.abrupt("return", request("".concat(api.API_HOST, "/").concat(dmCode, "/ui/builder/
|
|
233
|
+
return _context8.abrupt("return", request("".concat(api.API_HOST, "/").concat(dmCode, "/ui/builder/noAuthFetchModules"), {
|
|
234
234
|
params: params,
|
|
235
235
|
headers: _defineProperty({}, LC_RUNTIME_KEY, getMetaAttr(LC_RUNTIME_KEY))
|
|
236
236
|
}));
|
|
@@ -271,8 +271,8 @@ export function fetchAddDataset(_x13) {
|
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
/**
|
|
274
|
-
*
|
|
275
|
-
* @param {{
|
|
274
|
+
* 获取数据模型下的菜单
|
|
275
|
+
* @param {{ dataModelKey, menuType }} params
|
|
276
276
|
*/
|
|
277
277
|
function _fetchAddDataset() {
|
|
278
278
|
_fetchAddDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(data) {
|
|
@@ -291,7 +291,31 @@ function _fetchAddDataset() {
|
|
|
291
291
|
}));
|
|
292
292
|
return _fetchAddDataset.apply(this, arguments);
|
|
293
293
|
}
|
|
294
|
-
export function
|
|
294
|
+
export function fetchMenuTree(_x14) {
|
|
295
|
+
return _fetchMenuTree.apply(this, arguments);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* 获取数据集下的所有字段
|
|
300
|
+
* @param {{datasetUid}} params
|
|
301
|
+
*/
|
|
302
|
+
function _fetchMenuTree() {
|
|
303
|
+
_fetchMenuTree = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(params) {
|
|
304
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
305
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
306
|
+
case 0:
|
|
307
|
+
return _context11.abrupt("return", request("".concat(API_PREFIX_PAGE, "/readMenuTree"), {
|
|
308
|
+
params: params
|
|
309
|
+
}));
|
|
310
|
+
case 1:
|
|
311
|
+
case "end":
|
|
312
|
+
return _context11.stop();
|
|
313
|
+
}
|
|
314
|
+
}, _callee11);
|
|
315
|
+
}));
|
|
316
|
+
return _fetchMenuTree.apply(this, arguments);
|
|
317
|
+
}
|
|
318
|
+
export function fetchFieldsByDataset(_x15) {
|
|
295
319
|
return _fetchFieldsByDataset.apply(this, arguments);
|
|
296
320
|
}
|
|
297
321
|
|
|
@@ -301,22 +325,22 @@ export function fetchFieldsByDataset(_x14) {
|
|
|
301
325
|
* @returns
|
|
302
326
|
*/
|
|
303
327
|
function _fetchFieldsByDataset() {
|
|
304
|
-
_fetchFieldsByDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
305
|
-
return _regeneratorRuntime().wrap(function
|
|
306
|
-
while (1) switch (
|
|
328
|
+
_fetchFieldsByDataset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(params) {
|
|
329
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
330
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
307
331
|
case 0:
|
|
308
|
-
return
|
|
332
|
+
return _context12.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/readAll"), {
|
|
309
333
|
params: params
|
|
310
334
|
}));
|
|
311
335
|
case 1:
|
|
312
336
|
case "end":
|
|
313
|
-
return
|
|
337
|
+
return _context12.stop();
|
|
314
338
|
}
|
|
315
|
-
},
|
|
339
|
+
}, _callee12);
|
|
316
340
|
}));
|
|
317
341
|
return _fetchFieldsByDataset.apply(this, arguments);
|
|
318
342
|
}
|
|
319
|
-
export function fetchFieldCondition(
|
|
343
|
+
export function fetchFieldCondition(_x16) {
|
|
320
344
|
return _fetchFieldCondition.apply(this, arguments);
|
|
321
345
|
}
|
|
322
346
|
|
|
@@ -325,22 +349,22 @@ export function fetchFieldCondition(_x15) {
|
|
|
325
349
|
* @param {{moduleId,datasetId,moduleFieldId}} params
|
|
326
350
|
*/
|
|
327
351
|
function _fetchFieldCondition() {
|
|
328
|
-
_fetchFieldCondition = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
329
|
-
return _regeneratorRuntime().wrap(function
|
|
330
|
-
while (1) switch (
|
|
352
|
+
_fetchFieldCondition = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(params) {
|
|
353
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
354
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
331
355
|
case 0:
|
|
332
|
-
return
|
|
356
|
+
return _context13.abrupt("return", request("".concat(API_PREFIX_PAGE, "/readFieldCondition"), {
|
|
333
357
|
params: params
|
|
334
358
|
}));
|
|
335
359
|
case 1:
|
|
336
360
|
case "end":
|
|
337
|
-
return
|
|
361
|
+
return _context13.stop();
|
|
338
362
|
}
|
|
339
|
-
},
|
|
363
|
+
}, _callee13);
|
|
340
364
|
}));
|
|
341
365
|
return _fetchFieldCondition.apply(this, arguments);
|
|
342
366
|
}
|
|
343
|
-
export function fetchUpdateTitleField(
|
|
367
|
+
export function fetchUpdateTitleField(_x17) {
|
|
344
368
|
return _fetchUpdateTitleField.apply(this, arguments);
|
|
345
369
|
}
|
|
346
370
|
|
|
@@ -350,23 +374,23 @@ export function fetchUpdateTitleField(_x16) {
|
|
|
350
374
|
* @returns
|
|
351
375
|
*/
|
|
352
376
|
function _fetchUpdateTitleField() {
|
|
353
|
-
_fetchUpdateTitleField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
354
|
-
return _regeneratorRuntime().wrap(function
|
|
355
|
-
while (1) switch (
|
|
377
|
+
_fetchUpdateTitleField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(data) {
|
|
378
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
379
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
356
380
|
case 0:
|
|
357
|
-
return
|
|
381
|
+
return _context14.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/updateTitleField"), {
|
|
358
382
|
method: 'POST',
|
|
359
383
|
data: data
|
|
360
384
|
}));
|
|
361
385
|
case 1:
|
|
362
386
|
case "end":
|
|
363
|
-
return
|
|
387
|
+
return _context14.stop();
|
|
364
388
|
}
|
|
365
|
-
},
|
|
389
|
+
}, _callee14);
|
|
366
390
|
}));
|
|
367
391
|
return _fetchUpdateTitleField.apply(this, arguments);
|
|
368
392
|
}
|
|
369
|
-
export function fetchUpdateUniqueField(
|
|
393
|
+
export function fetchUpdateUniqueField(_x18) {
|
|
370
394
|
return _fetchUpdateUniqueField.apply(this, arguments);
|
|
371
395
|
}
|
|
372
396
|
|
|
@@ -375,23 +399,23 @@ export function fetchUpdateUniqueField(_x17) {
|
|
|
375
399
|
* @param {*} data
|
|
376
400
|
*/
|
|
377
401
|
function _fetchUpdateUniqueField() {
|
|
378
|
-
_fetchUpdateUniqueField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
379
|
-
return _regeneratorRuntime().wrap(function
|
|
380
|
-
while (1) switch (
|
|
402
|
+
_fetchUpdateUniqueField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(data) {
|
|
403
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
404
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
381
405
|
case 0:
|
|
382
|
-
return
|
|
406
|
+
return _context15.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/updateUniqueField"), {
|
|
383
407
|
method: 'POST',
|
|
384
408
|
data: data
|
|
385
409
|
}));
|
|
386
410
|
case 1:
|
|
387
411
|
case "end":
|
|
388
|
-
return
|
|
412
|
+
return _context15.stop();
|
|
389
413
|
}
|
|
390
|
-
},
|
|
414
|
+
}, _callee15);
|
|
391
415
|
}));
|
|
392
416
|
return _fetchUpdateUniqueField.apply(this, arguments);
|
|
393
417
|
}
|
|
394
|
-
export function fetchAddFieldAttrs(
|
|
418
|
+
export function fetchAddFieldAttrs(_x19) {
|
|
395
419
|
return _fetchAddFieldAttrs.apply(this, arguments);
|
|
396
420
|
}
|
|
397
421
|
|
|
@@ -400,23 +424,23 @@ export function fetchAddFieldAttrs(_x18) {
|
|
|
400
424
|
* @param {*} data
|
|
401
425
|
*/
|
|
402
426
|
function _fetchAddFieldAttrs() {
|
|
403
|
-
_fetchAddFieldAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
404
|
-
return _regeneratorRuntime().wrap(function
|
|
405
|
-
while (1) switch (
|
|
427
|
+
_fetchAddFieldAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(data) {
|
|
428
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
429
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
406
430
|
case 0:
|
|
407
|
-
return
|
|
431
|
+
return _context16.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/addAttributes"), {
|
|
408
432
|
data: data,
|
|
409
433
|
method: 'POST'
|
|
410
434
|
}));
|
|
411
435
|
case 1:
|
|
412
436
|
case "end":
|
|
413
|
-
return
|
|
437
|
+
return _context16.stop();
|
|
414
438
|
}
|
|
415
|
-
},
|
|
439
|
+
}, _callee16);
|
|
416
440
|
}));
|
|
417
441
|
return _fetchAddFieldAttrs.apply(this, arguments);
|
|
418
442
|
}
|
|
419
|
-
export function fetchDelAttrs(
|
|
443
|
+
export function fetchDelAttrs(_x20) {
|
|
420
444
|
return _fetchDelAttrs.apply(this, arguments);
|
|
421
445
|
}
|
|
422
446
|
|
|
@@ -425,23 +449,23 @@ export function fetchDelAttrs(_x19) {
|
|
|
425
449
|
* @param {*} params
|
|
426
450
|
*/
|
|
427
451
|
function _fetchDelAttrs() {
|
|
428
|
-
_fetchDelAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
429
|
-
return _regeneratorRuntime().wrap(function
|
|
430
|
-
while (1) switch (
|
|
452
|
+
_fetchDelAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(data) {
|
|
453
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
454
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
431
455
|
case 0:
|
|
432
|
-
return
|
|
456
|
+
return _context17.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/deleteAttributes"), {
|
|
433
457
|
data: data,
|
|
434
458
|
method: 'POST'
|
|
435
459
|
}));
|
|
436
460
|
case 1:
|
|
437
461
|
case "end":
|
|
438
|
-
return
|
|
462
|
+
return _context17.stop();
|
|
439
463
|
}
|
|
440
|
-
},
|
|
464
|
+
}, _callee17);
|
|
441
465
|
}));
|
|
442
466
|
return _fetchDelAttrs.apply(this, arguments);
|
|
443
467
|
}
|
|
444
|
-
export function fetchUpdateFieldAttrs(
|
|
468
|
+
export function fetchUpdateFieldAttrs(_x21) {
|
|
445
469
|
return _fetchUpdateFieldAttrs.apply(this, arguments);
|
|
446
470
|
}
|
|
447
471
|
|
|
@@ -451,23 +475,23 @@ export function fetchUpdateFieldAttrs(_x20) {
|
|
|
451
475
|
* @returns
|
|
452
476
|
*/
|
|
453
477
|
function _fetchUpdateFieldAttrs() {
|
|
454
|
-
_fetchUpdateFieldAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
455
|
-
return _regeneratorRuntime().wrap(function
|
|
456
|
-
while (1) switch (
|
|
478
|
+
_fetchUpdateFieldAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(data) {
|
|
479
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
480
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
457
481
|
case 0:
|
|
458
|
-
return
|
|
482
|
+
return _context18.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/updateAttributes"), {
|
|
459
483
|
data: data,
|
|
460
484
|
method: 'POST'
|
|
461
485
|
}));
|
|
462
486
|
case 1:
|
|
463
487
|
case "end":
|
|
464
|
-
return
|
|
488
|
+
return _context18.stop();
|
|
465
489
|
}
|
|
466
|
-
},
|
|
490
|
+
}, _callee18);
|
|
467
491
|
}));
|
|
468
492
|
return _fetchUpdateFieldAttrs.apply(this, arguments);
|
|
469
493
|
}
|
|
470
|
-
export function fetchAttrs(
|
|
494
|
+
export function fetchAttrs(_x22) {
|
|
471
495
|
return _fetchAttrs.apply(this, arguments);
|
|
472
496
|
}
|
|
473
497
|
|
|
@@ -477,22 +501,22 @@ export function fetchAttrs(_x21) {
|
|
|
477
501
|
* @returns
|
|
478
502
|
*/
|
|
479
503
|
function _fetchAttrs() {
|
|
480
|
-
_fetchAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
481
|
-
return _regeneratorRuntime().wrap(function
|
|
482
|
-
while (1) switch (
|
|
504
|
+
_fetchAttrs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(params) {
|
|
505
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
506
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
483
507
|
case 0:
|
|
484
|
-
return
|
|
508
|
+
return _context19.abrupt("return", request("".concat(API_RREFIX_DATASET, "/field/readAttributes"), {
|
|
485
509
|
params: params
|
|
486
510
|
}));
|
|
487
511
|
case 1:
|
|
488
512
|
case "end":
|
|
489
|
-
return
|
|
513
|
+
return _context19.stop();
|
|
490
514
|
}
|
|
491
|
-
},
|
|
515
|
+
}, _callee19);
|
|
492
516
|
}));
|
|
493
517
|
return _fetchAttrs.apply(this, arguments);
|
|
494
518
|
}
|
|
495
|
-
export function fetchAllBehavior(
|
|
519
|
+
export function fetchAllBehavior(_x23) {
|
|
496
520
|
return _fetchAllBehavior.apply(this, arguments);
|
|
497
521
|
}
|
|
498
522
|
|
|
@@ -502,22 +526,22 @@ export function fetchAllBehavior(_x22) {
|
|
|
502
526
|
* @returns
|
|
503
527
|
*/
|
|
504
528
|
function _fetchAllBehavior() {
|
|
505
|
-
_fetchAllBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
506
|
-
return _regeneratorRuntime().wrap(function
|
|
507
|
-
while (1) switch (
|
|
529
|
+
_fetchAllBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(params) {
|
|
530
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
531
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
508
532
|
case 0:
|
|
509
|
-
return
|
|
533
|
+
return _context20.abrupt("return", request("".concat(API_PREFIX_MODULE, "/behavior/readAll"), {
|
|
510
534
|
params: params
|
|
511
535
|
}));
|
|
512
536
|
case 1:
|
|
513
537
|
case "end":
|
|
514
|
-
return
|
|
538
|
+
return _context20.stop();
|
|
515
539
|
}
|
|
516
|
-
},
|
|
540
|
+
}, _callee20);
|
|
517
541
|
}));
|
|
518
542
|
return _fetchAllBehavior.apply(this, arguments);
|
|
519
543
|
}
|
|
520
|
-
export function fetchAllSerials(
|
|
544
|
+
export function fetchAllSerials(_x24) {
|
|
521
545
|
return _fetchAllSerials.apply(this, arguments);
|
|
522
546
|
}
|
|
523
547
|
|
|
@@ -527,42 +551,42 @@ export function fetchAllSerials(_x23) {
|
|
|
527
551
|
* @returns
|
|
528
552
|
*/
|
|
529
553
|
function _fetchAllSerials() {
|
|
530
|
-
_fetchAllSerials = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
531
|
-
return _regeneratorRuntime().wrap(function
|
|
532
|
-
while (1) switch (
|
|
554
|
+
_fetchAllSerials = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(params) {
|
|
555
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
|
556
|
+
while (1) switch (_context21.prev = _context21.next) {
|
|
533
557
|
case 0:
|
|
534
|
-
return
|
|
558
|
+
return _context21.abrupt("return", request("".concat(API_PREFIX_MODULE, "/Serials/readAll"), {
|
|
535
559
|
params: params
|
|
536
560
|
}));
|
|
537
561
|
case 1:
|
|
538
562
|
case "end":
|
|
539
|
-
return
|
|
563
|
+
return _context21.stop();
|
|
540
564
|
}
|
|
541
|
-
},
|
|
565
|
+
}, _callee21);
|
|
542
566
|
}));
|
|
543
567
|
return _fetchAllSerials.apply(this, arguments);
|
|
544
568
|
}
|
|
545
|
-
export function fetchAllBehaviorEx(
|
|
569
|
+
export function fetchAllBehaviorEx(_x25) {
|
|
546
570
|
return _fetchAllBehaviorEx.apply(this, arguments);
|
|
547
571
|
}
|
|
548
572
|
function _fetchAllBehaviorEx() {
|
|
549
|
-
_fetchAllBehaviorEx = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
550
|
-
return _regeneratorRuntime().wrap(function
|
|
551
|
-
while (1) switch (
|
|
573
|
+
_fetchAllBehaviorEx = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(params) {
|
|
574
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
|
575
|
+
while (1) switch (_context22.prev = _context22.next) {
|
|
552
576
|
case 0:
|
|
553
|
-
return
|
|
577
|
+
return _context22.abrupt("return", request("".concat(API_PREFIX_PAGE, "/option/noAuthGetBehavior"), {
|
|
554
578
|
params: params
|
|
555
579
|
}));
|
|
556
580
|
case 1:
|
|
557
581
|
case "end":
|
|
558
|
-
return
|
|
582
|
+
return _context22.stop();
|
|
559
583
|
}
|
|
560
|
-
},
|
|
584
|
+
}, _callee22);
|
|
561
585
|
}));
|
|
562
586
|
return _fetchAllBehaviorEx.apply(this, arguments);
|
|
563
587
|
}
|
|
564
|
-
export function getBehaviorUrl() {
|
|
565
|
-
var mdCode = getLDMetaAttr('dataModelKey');
|
|
588
|
+
export function getBehaviorUrl(_mdCode) {
|
|
589
|
+
var mdCode = _mdCode || getLDMetaAttr('dataModelKey') || SYS_CODE;
|
|
566
590
|
return "".concat(api.API_HOST, "/").concat(mdCode, "/to/behavior/call");
|
|
567
591
|
}
|
|
568
592
|
|
|
@@ -572,37 +596,61 @@ export function getBehaviorUrl() {
|
|
|
572
596
|
* @param {*} data
|
|
573
597
|
* @returns
|
|
574
598
|
*/
|
|
575
|
-
export function fetchCallBehavior(
|
|
599
|
+
export function fetchCallBehavior(_x26, _x27) {
|
|
576
600
|
return _fetchCallBehavior.apply(this, arguments);
|
|
577
601
|
}
|
|
602
|
+
function _fetchCallBehavior() {
|
|
603
|
+
_fetchCallBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(params, data) {
|
|
604
|
+
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
|
605
|
+
while (1) switch (_context23.prev = _context23.next) {
|
|
606
|
+
case 0:
|
|
607
|
+
return _context23.abrupt("return", request(getBehaviorUrl(), {
|
|
608
|
+
method: 'POST',
|
|
609
|
+
data: data,
|
|
610
|
+
params: params,
|
|
611
|
+
headers: _defineProperty({
|
|
612
|
+
'Content-Type': 'application/json;charset=UTF-8'
|
|
613
|
+
}, LC_RUNTIME_KEY, getMetaAttr(LC_RUNTIME_KEY))
|
|
614
|
+
}));
|
|
615
|
+
case 1:
|
|
616
|
+
case "end":
|
|
617
|
+
return _context23.stop();
|
|
618
|
+
}
|
|
619
|
+
}, _callee23);
|
|
620
|
+
}));
|
|
621
|
+
return _fetchCallBehavior.apply(this, arguments);
|
|
622
|
+
}
|
|
623
|
+
export function readCallBehavior(_x28, _x29, _x30) {
|
|
624
|
+
return _readCallBehavior.apply(this, arguments);
|
|
625
|
+
}
|
|
578
626
|
|
|
579
627
|
/**
|
|
580
628
|
* 清除当前模块缓存
|
|
581
629
|
* @param {{moduleCode}} params
|
|
582
630
|
* @returns
|
|
583
631
|
*/
|
|
584
|
-
function
|
|
585
|
-
|
|
586
|
-
return _regeneratorRuntime().wrap(function
|
|
587
|
-
while (1) switch (
|
|
632
|
+
function _readCallBehavior() {
|
|
633
|
+
_readCallBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(mdCode, params, data) {
|
|
634
|
+
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
|
635
|
+
while (1) switch (_context24.prev = _context24.next) {
|
|
588
636
|
case 0:
|
|
589
|
-
return
|
|
637
|
+
return _context24.abrupt("return", request(getBehaviorUrl(mdCode), {
|
|
590
638
|
method: 'POST',
|
|
591
639
|
data: data,
|
|
592
640
|
params: params,
|
|
593
641
|
headers: _defineProperty({
|
|
594
642
|
'Content-Type': 'application/json;charset=UTF-8'
|
|
595
|
-
}, LC_RUNTIME_KEY,
|
|
643
|
+
}, LC_RUNTIME_KEY, 'live')
|
|
596
644
|
}));
|
|
597
645
|
case 1:
|
|
598
646
|
case "end":
|
|
599
|
-
return
|
|
647
|
+
return _context24.stop();
|
|
600
648
|
}
|
|
601
|
-
},
|
|
649
|
+
}, _callee24);
|
|
602
650
|
}));
|
|
603
|
-
return
|
|
651
|
+
return _readCallBehavior.apply(this, arguments);
|
|
604
652
|
}
|
|
605
|
-
export function fetchClearCache(
|
|
653
|
+
export function fetchClearCache(_x31) {
|
|
606
654
|
return _fetchClearCache.apply(this, arguments);
|
|
607
655
|
}
|
|
608
656
|
|
|
@@ -612,22 +660,22 @@ export function fetchClearCache(_x27) {
|
|
|
612
660
|
* @returns
|
|
613
661
|
*/
|
|
614
662
|
function _fetchClearCache() {
|
|
615
|
-
_fetchClearCache = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
616
|
-
return _regeneratorRuntime().wrap(function
|
|
617
|
-
while (1) switch (
|
|
663
|
+
_fetchClearCache = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25(params) {
|
|
664
|
+
return _regeneratorRuntime().wrap(function _callee25$(_context25) {
|
|
665
|
+
while (1) switch (_context25.prev = _context25.next) {
|
|
618
666
|
case 0:
|
|
619
|
-
return
|
|
667
|
+
return _context25.abrupt("return", request("".concat(api.LUCKDA_HOST, "/cache/manage/noAuthModuleConfigClear"), {
|
|
620
668
|
params: params
|
|
621
669
|
}));
|
|
622
670
|
case 1:
|
|
623
671
|
case "end":
|
|
624
|
-
return
|
|
672
|
+
return _context25.stop();
|
|
625
673
|
}
|
|
626
|
-
},
|
|
674
|
+
}, _callee25);
|
|
627
675
|
}));
|
|
628
676
|
return _fetchClearCache.apply(this, arguments);
|
|
629
677
|
}
|
|
630
|
-
export function fetchUpdatePageData(
|
|
678
|
+
export function fetchUpdatePageData(_x32) {
|
|
631
679
|
return _fetchUpdatePageData.apply(this, arguments);
|
|
632
680
|
}
|
|
633
681
|
|
|
@@ -637,23 +685,23 @@ export function fetchUpdatePageData(_x28) {
|
|
|
637
685
|
* @returns
|
|
638
686
|
*/
|
|
639
687
|
function _fetchUpdatePageData() {
|
|
640
|
-
_fetchUpdatePageData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
641
|
-
return _regeneratorRuntime().wrap(function
|
|
642
|
-
while (1) switch (
|
|
688
|
+
_fetchUpdatePageData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26(data) {
|
|
689
|
+
return _regeneratorRuntime().wrap(function _callee26$(_context26) {
|
|
690
|
+
while (1) switch (_context26.prev = _context26.next) {
|
|
643
691
|
case 0:
|
|
644
|
-
return
|
|
692
|
+
return _context26.abrupt("return", request("".concat(API_PREFIX_PAGE, "/data/update"), {
|
|
645
693
|
method: 'POST',
|
|
646
694
|
data: data
|
|
647
695
|
}));
|
|
648
696
|
case 1:
|
|
649
697
|
case "end":
|
|
650
|
-
return
|
|
698
|
+
return _context26.stop();
|
|
651
699
|
}
|
|
652
|
-
},
|
|
700
|
+
}, _callee26);
|
|
653
701
|
}));
|
|
654
702
|
return _fetchUpdatePageData.apply(this, arguments);
|
|
655
703
|
}
|
|
656
|
-
export function fetchDataDic(
|
|
704
|
+
export function fetchDataDic(_x33) {
|
|
657
705
|
return _fetchDataDic.apply(this, arguments);
|
|
658
706
|
}
|
|
659
707
|
|
|
@@ -663,22 +711,22 @@ export function fetchDataDic(_x29) {
|
|
|
663
711
|
* @returns
|
|
664
712
|
*/
|
|
665
713
|
function _fetchDataDic() {
|
|
666
|
-
_fetchDataDic = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
667
|
-
return _regeneratorRuntime().wrap(function
|
|
668
|
-
while (1) switch (
|
|
714
|
+
_fetchDataDic = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27(params) {
|
|
715
|
+
return _regeneratorRuntime().wrap(function _callee27$(_context27) {
|
|
716
|
+
while (1) switch (_context27.prev = _context27.next) {
|
|
669
717
|
case 0:
|
|
670
|
-
return
|
|
718
|
+
return _context27.abrupt("return", request("".concat(api.BASE_HOST, "/datadic/sysDatadic/noAuthReadAll"), {
|
|
671
719
|
params: params
|
|
672
720
|
}));
|
|
673
721
|
case 1:
|
|
674
722
|
case "end":
|
|
675
|
-
return
|
|
723
|
+
return _context27.stop();
|
|
676
724
|
}
|
|
677
|
-
},
|
|
725
|
+
}, _callee27);
|
|
678
726
|
}));
|
|
679
727
|
return _fetchDataDic.apply(this, arguments);
|
|
680
728
|
}
|
|
681
|
-
export function exportExcel(
|
|
729
|
+
export function exportExcel(_x34, _x35) {
|
|
682
730
|
return _exportExcel.apply(this, arguments);
|
|
683
731
|
}
|
|
684
732
|
|
|
@@ -688,14 +736,14 @@ export function exportExcel(_x30, _x31) {
|
|
|
688
736
|
* @returns
|
|
689
737
|
*/
|
|
690
738
|
function _exportExcel() {
|
|
691
|
-
_exportExcel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
739
|
+
_exportExcel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28(params, data) {
|
|
692
740
|
var mdCode, FUNC_NAME;
|
|
693
|
-
return _regeneratorRuntime().wrap(function
|
|
694
|
-
while (1) switch (
|
|
741
|
+
return _regeneratorRuntime().wrap(function _callee28$(_context28) {
|
|
742
|
+
while (1) switch (_context28.prev = _context28.next) {
|
|
695
743
|
case 0:
|
|
696
744
|
mdCode = getLDMetaAttr('dataModelKey');
|
|
697
745
|
FUNC_NAME = params;
|
|
698
|
-
return
|
|
746
|
+
return _context28.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthExport").concat(FUNC_NAME), {
|
|
699
747
|
method: 'POST',
|
|
700
748
|
data: _objectSpread(_objectSpread({}, data), {}, {
|
|
701
749
|
gatewayUrl: "".concat(window.location.origin).concat(api.API_HOST)
|
|
@@ -703,50 +751,50 @@ function _exportExcel() {
|
|
|
703
751
|
}));
|
|
704
752
|
case 3:
|
|
705
753
|
case "end":
|
|
706
|
-
return
|
|
754
|
+
return _context28.stop();
|
|
707
755
|
}
|
|
708
|
-
},
|
|
756
|
+
}, _callee28);
|
|
709
757
|
}));
|
|
710
758
|
return _exportExcel.apply(this, arguments);
|
|
711
759
|
}
|
|
712
|
-
export function uploadTemplate(
|
|
760
|
+
export function uploadTemplate(_x36, _x37) {
|
|
713
761
|
return _uploadTemplate.apply(this, arguments);
|
|
714
762
|
}
|
|
715
763
|
|
|
716
764
|
// var successCount = 10;
|
|
717
765
|
// 获取导入进度数据
|
|
718
766
|
function _uploadTemplate() {
|
|
719
|
-
_uploadTemplate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
767
|
+
_uploadTemplate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29(params, data) {
|
|
720
768
|
var mdCode, FUNC_NAME;
|
|
721
|
-
return _regeneratorRuntime().wrap(function
|
|
722
|
-
while (1) switch (
|
|
769
|
+
return _regeneratorRuntime().wrap(function _callee29$(_context29) {
|
|
770
|
+
while (1) switch (_context29.prev = _context29.next) {
|
|
723
771
|
case 0:
|
|
724
772
|
mdCode = getLDMetaAttr('dataModelKey');
|
|
725
773
|
FUNC_NAME = params;
|
|
726
|
-
return
|
|
774
|
+
return _context29.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthImport").concat(FUNC_NAME), {
|
|
727
775
|
method: 'POST',
|
|
728
776
|
data: data
|
|
729
777
|
}));
|
|
730
778
|
case 3:
|
|
731
779
|
case "end":
|
|
732
|
-
return
|
|
780
|
+
return _context29.stop();
|
|
733
781
|
}
|
|
734
|
-
},
|
|
782
|
+
}, _callee29);
|
|
735
783
|
}));
|
|
736
784
|
return _uploadTemplate.apply(this, arguments);
|
|
737
785
|
}
|
|
738
|
-
export function getFindexcelstate(
|
|
786
|
+
export function getFindexcelstate(_x38, _x39) {
|
|
739
787
|
return _getFindexcelstate.apply(this, arguments);
|
|
740
788
|
}
|
|
741
789
|
function _getFindexcelstate() {
|
|
742
|
-
_getFindexcelstate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
790
|
+
_getFindexcelstate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30(params, data) {
|
|
743
791
|
var mdCode, FUNC_NAME;
|
|
744
|
-
return _regeneratorRuntime().wrap(function
|
|
745
|
-
while (1) switch (
|
|
792
|
+
return _regeneratorRuntime().wrap(function _callee30$(_context30) {
|
|
793
|
+
while (1) switch (_context30.prev = _context30.next) {
|
|
746
794
|
case 0:
|
|
747
795
|
mdCode = getLDMetaAttr('dataModelKey');
|
|
748
796
|
FUNC_NAME = params;
|
|
749
|
-
return
|
|
797
|
+
return _context30.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthGetProgress").concat(FUNC_NAME), {
|
|
750
798
|
method: 'POST',
|
|
751
799
|
data: _objectSpread(_objectSpread({}, data), {}, {
|
|
752
800
|
gatewayUrl: "".concat(window.location.origin).concat(api.API_HOST)
|
|
@@ -754,25 +802,28 @@ function _getFindexcelstate() {
|
|
|
754
802
|
}));
|
|
755
803
|
case 3:
|
|
756
804
|
case "end":
|
|
757
|
-
return
|
|
805
|
+
return _context30.stop();
|
|
758
806
|
}
|
|
759
|
-
},
|
|
807
|
+
}, _callee30);
|
|
760
808
|
}));
|
|
761
809
|
return _getFindexcelstate.apply(this, arguments);
|
|
762
810
|
}
|
|
763
|
-
export function noAuthGetTemplateUrl(
|
|
811
|
+
export function noAuthGetTemplateUrl(_x40) {
|
|
764
812
|
return _noAuthGetTemplateUrl.apply(this, arguments);
|
|
765
813
|
}
|
|
766
814
|
|
|
767
|
-
|
|
815
|
+
/**
|
|
816
|
+
* 页面预览调试获取模拟用户
|
|
817
|
+
* @param {string} sname
|
|
818
|
+
*/
|
|
768
819
|
function _noAuthGetTemplateUrl() {
|
|
769
|
-
_noAuthGetTemplateUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
820
|
+
_noAuthGetTemplateUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31(params) {
|
|
770
821
|
var mdCode;
|
|
771
|
-
return _regeneratorRuntime().wrap(function
|
|
772
|
-
while (1) switch (
|
|
822
|
+
return _regeneratorRuntime().wrap(function _callee31$(_context31) {
|
|
823
|
+
while (1) switch (_context31.prev = _context31.next) {
|
|
773
824
|
case 0:
|
|
774
825
|
mdCode = getLDMetaAttr('dataModelKey');
|
|
775
|
-
return
|
|
826
|
+
return _context31.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthGetTemplateUrl"), {
|
|
776
827
|
method: 'POST',
|
|
777
828
|
data: {
|
|
778
829
|
gatewayUrl: "".concat(window.location.origin).concat(api.API_HOST),
|
|
@@ -781,53 +832,29 @@ function _noAuthGetTemplateUrl() {
|
|
|
781
832
|
}));
|
|
782
833
|
case 2:
|
|
783
834
|
case "end":
|
|
784
|
-
return
|
|
835
|
+
return _context31.stop();
|
|
785
836
|
}
|
|
786
|
-
},
|
|
837
|
+
}, _callee31);
|
|
787
838
|
}));
|
|
788
839
|
return _noAuthGetTemplateUrl.apply(this, arguments);
|
|
789
840
|
}
|
|
790
|
-
export function
|
|
791
|
-
return _clearProcess.apply(this, arguments);
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
/**
|
|
795
|
-
* 页面预览调试获取模拟用户
|
|
796
|
-
* @param {string} sname
|
|
797
|
-
*/
|
|
798
|
-
function _clearProcess() {
|
|
799
|
-
_clearProcess = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30(batchNo) {
|
|
800
|
-
var mdCode;
|
|
801
|
-
return _regeneratorRuntime().wrap(function _callee30$(_context30) {
|
|
802
|
-
while (1) switch (_context30.prev = _context30.next) {
|
|
803
|
-
case 0:
|
|
804
|
-
mdCode = getLDMetaAttr('dataModelKey');
|
|
805
|
-
return _context30.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/batch/clearProgress?batchNo=").concat(batchNo)));
|
|
806
|
-
case 2:
|
|
807
|
-
case "end":
|
|
808
|
-
return _context30.stop();
|
|
809
|
-
}
|
|
810
|
-
}, _callee30);
|
|
811
|
-
}));
|
|
812
|
-
return _clearProcess.apply(this, arguments);
|
|
813
|
-
}
|
|
814
|
-
export function fetchSearchUser(_x38) {
|
|
841
|
+
export function fetchSearchUser(_x41) {
|
|
815
842
|
return _fetchSearchUser.apply(this, arguments);
|
|
816
843
|
}
|
|
817
844
|
function _fetchSearchUser() {
|
|
818
|
-
_fetchSearchUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
819
|
-
return _regeneratorRuntime().wrap(function
|
|
820
|
-
while (1) switch (
|
|
845
|
+
_fetchSearchUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee32(params) {
|
|
846
|
+
return _regeneratorRuntime().wrap(function _callee32$(_context32) {
|
|
847
|
+
while (1) switch (_context32.prev = _context32.next) {
|
|
821
848
|
case 0:
|
|
822
|
-
return
|
|
849
|
+
return _context32.abrupt("return", request("".concat(api.BASE_HOST, "/user/sysUser/noAuthReadUser"), {
|
|
823
850
|
params: params,
|
|
824
851
|
method: 'POST'
|
|
825
852
|
}));
|
|
826
853
|
case 1:
|
|
827
854
|
case "end":
|
|
828
|
-
return
|
|
855
|
+
return _context32.stop();
|
|
829
856
|
}
|
|
830
|
-
},
|
|
857
|
+
}, _callee32);
|
|
831
858
|
}));
|
|
832
859
|
return _fetchSearchUser.apply(this, arguments);
|
|
833
860
|
}
|