@riil-frontend/component-topology 11.0.35 → 12.0.0-dev.2
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/build/1.js +2 -2
- package/build/2.js +1 -1
- package/build/index.js +45 -29
- package/es/components/BatchAttrMetric/setting.js +1 -1
- package/es/components/MultiResourceDrawer/index.js +8 -6
- package/es/components/ResourceList/ResourceSelect.js +8 -7
- package/es/components/ResourceSelectDrawer/ResourceSelectDrawer.js +8 -6
- package/es/components/SingleResourceDrawer/SelectDrawer.js +8 -6
- package/es/core/components/DisplaySettingDrawer/DisplaySettingDrawer.js +8 -6
- package/es/core/components/DisplaySettingDrawer/hooks/useDisplaySetting.js +24 -14
- package/es/core/editor/components/BackgroundView/index.js +73 -54
- package/es/core/editor/components/CustomIconPlugin/RenameDialog.js +8 -6
- package/es/core/editor/components/CustomIconPlugin/utils/svgToShape.js +7 -5
- package/es/core/editor/components/GroupAddResourceDrawerPlugin/GroupAddResourceDrawer.js +8 -6
- package/es/core/editor/components/Sidebar/views/CanvasPanel/hooks/useCanvasThemeConfig.js +15 -8
- package/es/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxBackgroundSetting.js +16 -10
- package/es/core/editor/components/Toolbar/widgets/FontColorButton.js +16 -10
- package/es/core/editor/components/settings/propertyViews/layer/DataTab/DefaultLayerAddResourceDrawer.js +8 -6
- package/es/core/editor/components/settings/propertyViews/node/data/BindResourceDrawer.js +8 -6
- package/es/core/editor/components/settings/propertyViews/node/data/Data.js +8 -6
- package/es/core/editor/components/settings/propertyViews/view/BackgroundSize.js +8 -6
- package/es/core/editor/components/titlebar/TopoEditorTitleBar.js +28 -16
- package/es/core/editor/hooks/useKeyboardShortcut.js +36 -32
- package/es/core/editor/utils/copyElementUtil.js +174 -0
- package/es/core/hooks/useCiAttributeChange.js +6 -3
- package/es/core/hooks/usePolling.js +21 -13
- package/es/core/hooks/useResourceConfig.js +37 -21
- package/es/core/hooks/useTopoEdit.js +202 -139
- package/es/core/models/Alarm.js +104 -38
- package/es/core/models/AttributeMetricDisplay.js +36 -14
- package/es/core/models/TopoApp.js +197 -75
- package/es/core/models/TopoGraphView.js +20 -10
- package/es/core/models/attributeFormatter/formatter/commonTransform.js +0 -5
- package/es/core/models/cache/CiCache.js +12 -6
- package/es/core/models/cache/CiTypeCache.js +20 -10
- package/es/core/models/cache/DictCache.js +10 -6
- package/es/core/models/graph/Background.js +9 -6
- package/es/core/models/plugins/resourceWebControllUrl.js +21 -8
- package/es/core/models/tagstips/ElementTagTipConfig.js +20 -10
- package/es/core/models/topoData.js +7 -5
- package/es/core/models/utils/linkUtils.js +8 -5
- package/es/core/services/cmdb/metric.js +7 -5
- package/es/core/services/cmdb.js +9 -5
- package/es/core/services/index.js +23 -9
- package/es/core/services/topo/tagtip.js +7 -5
- package/es/core/store/models/customIcon.js +11 -6
- package/es/core/utils/imageUtil.js +7 -5
- package/es/core/utils/metricUtil.js +13 -1
- package/es/core/utils/saveSerialize.js +7 -5
- package/es/core/viewer/components/plugins/ResourceDetail/components/ClusterMemberTable.js +8 -6
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/EventsCard.js +8 -5
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +57 -25
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/Configurator/index.js +47 -34
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/LinkTopoCard.js +9 -5
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/services/index.js +74 -34
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useAlarmAndRiskData.js +9 -6
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useMetricModels.js +9 -6
- package/es/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/hooks/useWebConsole.js +31 -26
- package/es/core/viewer/components/plugins/ResourceDetail/getCiDisplayMetricModels.js +15 -7
- package/es/core/viewer/components/plugins/ResourceDetail/hooks/useUserId.js +7 -4
- package/es/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.js +8 -6
- package/es/networkTopo/components/Link/hook.js +21 -14
- package/es/networkTopo/components/Link/index.js +32 -18
- package/es/networkTopo/components/Link/setting.js +8 -6
- package/es/networkTopo/getTopoData.js +23 -10
- package/es/networkTopo/hooks/viewer/useRelateTopo.js +7 -4
- package/es/networkTopo/models/TopoCenter.js +24 -10
- package/es/networkTopo/services/cmdb.js +333 -233
- package/es/networkTopo/services/mdc.js +24 -15
- package/es/networkTopo/services/metric.js +16 -11
- package/es/networkTopo/services/model.js +412 -283
- package/es/networkTopo/utils/exportData.js +7 -5
- package/es/utils/clipboardUtil.d.ts +7 -0
- package/es/utils/clipboardUtil.js +104 -0
- package/lib/components/BatchAttrMetric/setting.js +1 -1
- package/lib/components/MultiResourceDrawer/index.js +8 -6
- package/lib/components/ResourceList/ResourceSelect.js +8 -6
- package/lib/components/ResourceSelectDrawer/ResourceSelectDrawer.js +8 -6
- package/lib/components/SingleResourceDrawer/SelectDrawer.js +8 -6
- package/lib/core/components/DisplaySettingDrawer/DisplaySettingDrawer.js +8 -6
- package/lib/core/components/DisplaySettingDrawer/hooks/useDisplaySetting.js +24 -14
- package/lib/core/editor/components/BackgroundView/index.js +74 -55
- package/lib/core/editor/components/CustomIconPlugin/RenameDialog.js +8 -6
- package/lib/core/editor/components/CustomIconPlugin/utils/svgToShape.js +7 -4
- package/lib/core/editor/components/GroupAddResourceDrawerPlugin/GroupAddResourceDrawer.js +8 -6
- package/lib/core/editor/components/Sidebar/views/CanvasPanel/hooks/useCanvasThemeConfig.js +15 -8
- package/lib/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxBackgroundSetting.js +16 -10
- package/lib/core/editor/components/Toolbar/widgets/FontColorButton.js +16 -10
- package/lib/core/editor/components/settings/propertyViews/layer/DataTab/DefaultLayerAddResourceDrawer.js +8 -6
- package/lib/core/editor/components/settings/propertyViews/node/data/BindResourceDrawer.js +8 -6
- package/lib/core/editor/components/settings/propertyViews/node/data/Data.js +8 -6
- package/lib/core/editor/components/settings/propertyViews/view/BackgroundSize.js +8 -6
- package/lib/core/editor/components/titlebar/TopoEditorTitleBar.js +28 -16
- package/lib/core/editor/hooks/useKeyboardShortcut.js +37 -34
- package/lib/core/editor/utils/copyElementUtil.js +187 -0
- package/lib/core/hooks/useCiAttributeChange.js +6 -3
- package/lib/core/hooks/usePolling.js +21 -13
- package/lib/core/hooks/useResourceConfig.js +37 -21
- package/lib/core/hooks/useTopoEdit.js +202 -139
- package/lib/core/models/Alarm.js +104 -38
- package/lib/core/models/AttributeMetricDisplay.js +36 -14
- package/lib/core/models/TopoApp.js +197 -75
- package/lib/core/models/TopoGraphView.js +20 -10
- package/lib/core/models/attributeFormatter/formatter/commonTransform.js +0 -5
- package/lib/core/models/cache/CiCache.js +12 -6
- package/lib/core/models/cache/CiTypeCache.js +20 -10
- package/lib/core/models/cache/DictCache.js +10 -6
- package/lib/core/models/graph/Background.js +9 -6
- package/lib/core/models/plugins/resourceWebControllUrl.js +21 -8
- package/lib/core/models/tagstips/ElementTagTipConfig.js +20 -10
- package/lib/core/models/topoData.js +7 -4
- package/lib/core/models/utils/linkUtils.js +8 -4
- package/lib/core/services/cmdb/metric.js +7 -4
- package/lib/core/services/cmdb.js +9 -4
- package/lib/core/services/index.js +21 -8
- package/lib/core/services/topo/tagtip.js +7 -4
- package/lib/core/store/models/customIcon.js +11 -6
- package/lib/core/utils/imageUtil.js +7 -4
- package/lib/core/utils/metricUtil.js +13 -1
- package/lib/core/utils/saveSerialize.js +7 -4
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ClusterMemberTable.js +8 -6
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/EventsCard.js +9 -6
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +57 -25
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/Configurator/index.js +49 -36
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/LinkTopoCard.js +9 -5
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/services/index.js +73 -35
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useAlarmAndRiskData.js +9 -6
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useMetricModels.js +9 -6
- package/lib/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/hooks/useWebConsole.js +31 -25
- package/lib/core/viewer/components/plugins/ResourceDetail/getCiDisplayMetricModels.js +14 -6
- package/lib/core/viewer/components/plugins/ResourceDetail/hooks/useUserId.js +7 -4
- package/lib/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.js +8 -6
- package/lib/networkTopo/components/Link/hook.js +23 -15
- package/lib/networkTopo/components/Link/index.js +32 -18
- package/lib/networkTopo/components/Link/setting.js +8 -6
- package/lib/networkTopo/getTopoData.js +23 -10
- package/lib/networkTopo/hooks/viewer/useRelateTopo.js +7 -4
- package/lib/networkTopo/models/TopoCenter.js +24 -10
- package/lib/networkTopo/services/cmdb.js +336 -235
- package/lib/networkTopo/services/mdc.js +24 -14
- package/lib/networkTopo/services/metric.js +16 -10
- package/lib/networkTopo/services/model.js +414 -284
- package/lib/networkTopo/utils/exportData.js +7 -4
- package/lib/utils/clipboardUtil.d.ts +7 -0
- package/lib/utils/clipboardUtil.js +113 -0
- package/lib/utils/htElementDataUtil.js +4 -2
- package/package.json +3 -2
package/es/core/models/Alarm.js
CHANGED
@@ -6,8 +6,6 @@ import rlog from '@riil-frontend/component-topology-utils/es/rlog';
|
|
6
6
|
import { isAvailableArray } from '@riil-frontend/utils';
|
7
7
|
|
8
8
|
var Alarm = /*#__PURE__*/function () {
|
9
|
-
var _open, _hmGetTopoAlarmByDoc, _hmGetTopoAlarm, _setAlarmDataByMock, _switchAlarmPopPanel, _openTopoAlarm, _closeTopoAlarm, _restart, _handleAlarmEvent;
|
10
|
-
|
11
9
|
function Alarm() {
|
12
10
|
this.topo = void 0;
|
13
11
|
this.currentTopoId = void 0;
|
@@ -32,8 +30,10 @@ var Alarm = /*#__PURE__*/function () {
|
|
32
30
|
*/
|
33
31
|
;
|
34
32
|
|
35
|
-
_proto.open =
|
36
|
-
|
33
|
+
_proto.open =
|
34
|
+
/*#__PURE__*/
|
35
|
+
function () {
|
36
|
+
var _open = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
37
37
|
var _this = this;
|
38
38
|
|
39
39
|
var nodeCount;
|
@@ -65,8 +65,14 @@ var Alarm = /*#__PURE__*/function () {
|
|
65
65
|
return _context.stop();
|
66
66
|
}
|
67
67
|
}, _callee, this);
|
68
|
-
}))
|
69
|
-
|
68
|
+
}));
|
69
|
+
|
70
|
+
function open() {
|
71
|
+
return _open.apply(this, arguments);
|
72
|
+
}
|
73
|
+
|
74
|
+
return open;
|
75
|
+
}();
|
70
76
|
|
71
77
|
_proto.doOpen = function doOpen() {
|
72
78
|
// 获得拓扑id
|
@@ -170,8 +176,8 @@ var Alarm = /*#__PURE__*/function () {
|
|
170
176
|
};
|
171
177
|
};
|
172
178
|
|
173
|
-
_proto.hmGetTopoAlarmByDoc = function
|
174
|
-
|
179
|
+
_proto.hmGetTopoAlarmByDoc = /*#__PURE__*/function () {
|
180
|
+
var _hmGetTopoAlarmByDoc = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(id) {
|
175
181
|
var result, alarms, state, _this$topo$store$getM, alarmListDefaultOpen;
|
176
182
|
|
177
183
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
@@ -198,11 +204,17 @@ var Alarm = /*#__PURE__*/function () {
|
|
198
204
|
return _context2.stop();
|
199
205
|
}
|
200
206
|
}, _callee2, this);
|
201
|
-
}))
|
202
|
-
|
207
|
+
}));
|
208
|
+
|
209
|
+
function hmGetTopoAlarmByDoc(_x) {
|
210
|
+
return _hmGetTopoAlarmByDoc.apply(this, arguments);
|
211
|
+
}
|
203
212
|
|
204
|
-
|
205
|
-
|
213
|
+
return hmGetTopoAlarmByDoc;
|
214
|
+
}();
|
215
|
+
|
216
|
+
_proto.hmGetTopoAlarm = /*#__PURE__*/function () {
|
217
|
+
var _hmGetTopoAlarm = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(id) {
|
206
218
|
var mainCiIdList, endTime, startTime, parms, result;
|
207
219
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
208
220
|
while (1) switch (_context3.prev = _context3.next) {
|
@@ -269,16 +281,24 @@ var Alarm = /*#__PURE__*/function () {
|
|
269
281
|
return _context3.stop();
|
270
282
|
}
|
271
283
|
}, _callee3, this);
|
272
|
-
}))
|
273
|
-
|
284
|
+
}));
|
285
|
+
|
286
|
+
function hmGetTopoAlarm(_x2) {
|
287
|
+
return _hmGetTopoAlarm.apply(this, arguments);
|
288
|
+
}
|
289
|
+
|
290
|
+
return hmGetTopoAlarm;
|
291
|
+
}()
|
274
292
|
/**
|
275
293
|
* 直接装载告警数据(可装载mock列表)
|
276
294
|
*
|
277
295
|
*/
|
278
296
|
;
|
279
297
|
|
280
|
-
_proto.setAlarmDataByMock =
|
281
|
-
|
298
|
+
_proto.setAlarmDataByMock =
|
299
|
+
/*#__PURE__*/
|
300
|
+
function () {
|
301
|
+
var _setAlarmDataByMock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(datas) {
|
282
302
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
283
303
|
while (1) switch (_context4.prev = _context4.next) {
|
284
304
|
case 0:
|
@@ -292,16 +312,24 @@ var Alarm = /*#__PURE__*/function () {
|
|
292
312
|
return _context4.stop();
|
293
313
|
}
|
294
314
|
}, _callee4, this);
|
295
|
-
}))
|
296
|
-
|
315
|
+
}));
|
316
|
+
|
317
|
+
function setAlarmDataByMock(_x3) {
|
318
|
+
return _setAlarmDataByMock.apply(this, arguments);
|
319
|
+
}
|
320
|
+
|
321
|
+
return setAlarmDataByMock;
|
322
|
+
}()
|
297
323
|
/**
|
298
324
|
* 打开\关闭告警列表弹窗
|
299
325
|
*
|
300
326
|
*/
|
301
327
|
;
|
302
328
|
|
303
|
-
_proto.switchAlarmPopPanel =
|
304
|
-
|
329
|
+
_proto.switchAlarmPopPanel =
|
330
|
+
/*#__PURE__*/
|
331
|
+
function () {
|
332
|
+
var _switchAlarmPopPanel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(flag) {
|
305
333
|
var topoDispatchers;
|
306
334
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
307
335
|
while (1) switch (_context5.prev = _context5.next) {
|
@@ -317,8 +345,14 @@ var Alarm = /*#__PURE__*/function () {
|
|
317
345
|
return _context5.stop();
|
318
346
|
}
|
319
347
|
}, _callee5, this);
|
320
|
-
}))
|
321
|
-
|
348
|
+
}));
|
349
|
+
|
350
|
+
function switchAlarmPopPanel(_x4) {
|
351
|
+
return _switchAlarmPopPanel.apply(this, arguments);
|
352
|
+
}
|
353
|
+
|
354
|
+
return switchAlarmPopPanel;
|
355
|
+
}()
|
322
356
|
/**
|
323
357
|
* 打开告警推送。
|
324
358
|
*
|
@@ -326,8 +360,10 @@ var Alarm = /*#__PURE__*/function () {
|
|
326
360
|
*/
|
327
361
|
;
|
328
362
|
|
329
|
-
_proto.openTopoAlarm =
|
330
|
-
|
363
|
+
_proto.openTopoAlarm =
|
364
|
+
/*#__PURE__*/
|
365
|
+
function () {
|
366
|
+
var _openTopoAlarm = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(id) {
|
331
367
|
var _this$getState2, alarmOpening, topoAlarmIsOpen, alarmDispatchers;
|
332
368
|
|
333
369
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
@@ -380,8 +416,14 @@ var Alarm = /*#__PURE__*/function () {
|
|
380
416
|
return _context6.stop();
|
381
417
|
}
|
382
418
|
}, _callee6, this, [[8, 16]]);
|
383
|
-
}))
|
384
|
-
|
419
|
+
}));
|
420
|
+
|
421
|
+
function openTopoAlarm(_x5) {
|
422
|
+
return _openTopoAlarm.apply(this, arguments);
|
423
|
+
}
|
424
|
+
|
425
|
+
return openTopoAlarm;
|
426
|
+
}()
|
385
427
|
/**
|
386
428
|
* 关闭告警推送。
|
387
429
|
*
|
@@ -389,8 +431,10 @@ var Alarm = /*#__PURE__*/function () {
|
|
389
431
|
*/
|
390
432
|
;
|
391
433
|
|
392
|
-
_proto.closeTopoAlarm =
|
393
|
-
|
434
|
+
_proto.closeTopoAlarm =
|
435
|
+
/*#__PURE__*/
|
436
|
+
function () {
|
437
|
+
var _closeTopoAlarm = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(id) {
|
394
438
|
var _this$getState3, alarmIsOpened, alarmOpening;
|
395
439
|
|
396
440
|
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
@@ -422,8 +466,14 @@ var Alarm = /*#__PURE__*/function () {
|
|
422
466
|
return _context7.stop();
|
423
467
|
}
|
424
468
|
}, _callee7, this);
|
425
|
-
}))
|
426
|
-
|
469
|
+
}));
|
470
|
+
|
471
|
+
function closeTopoAlarm(_x6) {
|
472
|
+
return _closeTopoAlarm.apply(this, arguments);
|
473
|
+
}
|
474
|
+
|
475
|
+
return closeTopoAlarm;
|
476
|
+
}()
|
427
477
|
/**
|
428
478
|
* 打开\关闭告警列表弹窗
|
429
479
|
*
|
@@ -440,8 +490,10 @@ var Alarm = /*#__PURE__*/function () {
|
|
440
490
|
*/
|
441
491
|
;
|
442
492
|
|
443
|
-
_proto.restart =
|
444
|
-
|
493
|
+
_proto.restart =
|
494
|
+
/*#__PURE__*/
|
495
|
+
function () {
|
496
|
+
var _restart = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
|
445
497
|
var id;
|
446
498
|
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
447
499
|
while (1) switch (_context8.prev = _context8.next) {
|
@@ -455,15 +507,23 @@ var Alarm = /*#__PURE__*/function () {
|
|
455
507
|
return _context8.stop();
|
456
508
|
}
|
457
509
|
}, _callee8, this);
|
458
|
-
}))
|
459
|
-
|
510
|
+
}));
|
511
|
+
|
512
|
+
function restart() {
|
513
|
+
return _restart.apply(this, arguments);
|
514
|
+
}
|
515
|
+
|
516
|
+
return restart;
|
517
|
+
}()
|
460
518
|
/**
|
461
519
|
* 处理告警推送事件
|
462
520
|
*/
|
463
521
|
;
|
464
522
|
|
465
|
-
_proto.handleAlarmEvent =
|
466
|
-
|
523
|
+
_proto.handleAlarmEvent =
|
524
|
+
/*#__PURE__*/
|
525
|
+
function () {
|
526
|
+
var _handleAlarmEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(alertData) {
|
467
527
|
var _this$getState4, alarmIsOpened, resAndMetrics, resIdsList, nodeIdsList, linkIdsList, alarmDispatchers, sendAl, idsList, operations, _yield$alarmDispatche2, eqFlag, alarmlist, _this$topo$viewProps, _this$topo$viewProps2;
|
468
528
|
|
469
529
|
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
@@ -554,8 +614,14 @@ var Alarm = /*#__PURE__*/function () {
|
|
554
614
|
return _context9.stop();
|
555
615
|
}
|
556
616
|
}, _callee9, this, [[12, 21]]);
|
557
|
-
}))
|
558
|
-
|
617
|
+
}));
|
618
|
+
|
619
|
+
function handleAlarmEvent(_x7) {
|
620
|
+
return _handleAlarmEvent.apply(this, arguments);
|
621
|
+
}
|
622
|
+
|
623
|
+
return handleAlarmEvent;
|
624
|
+
}();
|
559
625
|
|
560
626
|
_proto.getState = function getState() {
|
561
627
|
return this.topo.store.getModelState('topoAlarm');
|
@@ -27,8 +27,6 @@ function filterUnExistedFields(fields, ciTypeMeta) {
|
|
27
27
|
|
28
28
|
|
29
29
|
var AttributeMetricDisplay = /*#__PURE__*/function () {
|
30
|
-
var _loadData, _loadAttributeAndMetric, _translateRefAttribute;
|
31
|
-
|
32
30
|
function AttributeMetricDisplay(topo) {
|
33
31
|
var _this$topo$options$ta;
|
34
32
|
|
@@ -312,8 +310,10 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
312
310
|
*/
|
313
311
|
;
|
314
312
|
|
315
|
-
_proto.loadData =
|
316
|
-
|
313
|
+
_proto.loadData =
|
314
|
+
/*#__PURE__*/
|
315
|
+
function () {
|
316
|
+
var _loadData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(data) {
|
317
317
|
var topo, ciDatas, bizDispatchers;
|
318
318
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
319
319
|
while (1) switch (_context.prev = _context.next) {
|
@@ -351,8 +351,14 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
351
351
|
return _context.stop();
|
352
352
|
}
|
353
353
|
}, _callee, this);
|
354
|
-
}))
|
355
|
-
|
354
|
+
}));
|
355
|
+
|
356
|
+
function loadData(_x) {
|
357
|
+
return _loadData.apply(this, arguments);
|
358
|
+
}
|
359
|
+
|
360
|
+
return loadData;
|
361
|
+
}()
|
356
362
|
/**
|
357
363
|
* 加载标注、悬浮框数据
|
358
364
|
* 业务拓扑使用
|
@@ -361,8 +367,10 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
361
367
|
*/
|
362
368
|
;
|
363
369
|
|
364
|
-
_proto.loadAttributeAndMetric =
|
365
|
-
|
370
|
+
_proto.loadAttributeAndMetric =
|
371
|
+
/*#__PURE__*/
|
372
|
+
function () {
|
373
|
+
var _loadAttributeAndMetric = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(data) {
|
366
374
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
367
375
|
while (1) switch (_context2.prev = _context2.next) {
|
368
376
|
case 0:
|
@@ -374,8 +382,14 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
374
382
|
return _context2.stop();
|
375
383
|
}
|
376
384
|
}, _callee2, this);
|
377
|
-
}))
|
378
|
-
|
385
|
+
}));
|
386
|
+
|
387
|
+
function loadAttributeAndMetric(_x2) {
|
388
|
+
return _loadAttributeAndMetric.apply(this, arguments);
|
389
|
+
}
|
390
|
+
|
391
|
+
return loadAttributeAndMetric;
|
392
|
+
}()
|
379
393
|
/**
|
380
394
|
* 临时由前端翻译引用属性名称
|
381
395
|
* @param {array<{id, ciType, attributeMap: {}, ...}>} ciDatas
|
@@ -383,8 +397,10 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
383
397
|
*/
|
384
398
|
;
|
385
399
|
|
386
|
-
_proto.translateRefAttribute =
|
387
|
-
|
400
|
+
_proto.translateRefAttribute =
|
401
|
+
/*#__PURE__*/
|
402
|
+
function () {
|
403
|
+
var _translateRefAttribute = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(ciDatas) {
|
388
404
|
var _this4 = this;
|
389
405
|
|
390
406
|
var refIdMap, ciRefAttributeMap, refIds, refCiMap;
|
@@ -460,8 +476,14 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
460
476
|
return _context3.stop();
|
461
477
|
}
|
462
478
|
}, _callee3, this);
|
463
|
-
}))
|
464
|
-
|
479
|
+
}));
|
480
|
+
|
481
|
+
function translateRefAttribute(_x3) {
|
482
|
+
return _translateRefAttribute.apply(this, arguments);
|
483
|
+
}
|
484
|
+
|
485
|
+
return translateRefAttribute;
|
486
|
+
}()
|
465
487
|
/**
|
466
488
|
* 推送标注、悬浮框数据 => ht
|
467
489
|
* @returns
|