@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.
Files changed (147) hide show
  1. package/build/1.js +2 -2
  2. package/build/2.js +1 -1
  3. package/build/index.js +45 -29
  4. package/es/components/BatchAttrMetric/setting.js +1 -1
  5. package/es/components/MultiResourceDrawer/index.js +8 -6
  6. package/es/components/ResourceList/ResourceSelect.js +8 -7
  7. package/es/components/ResourceSelectDrawer/ResourceSelectDrawer.js +8 -6
  8. package/es/components/SingleResourceDrawer/SelectDrawer.js +8 -6
  9. package/es/core/components/DisplaySettingDrawer/DisplaySettingDrawer.js +8 -6
  10. package/es/core/components/DisplaySettingDrawer/hooks/useDisplaySetting.js +24 -14
  11. package/es/core/editor/components/BackgroundView/index.js +73 -54
  12. package/es/core/editor/components/CustomIconPlugin/RenameDialog.js +8 -6
  13. package/es/core/editor/components/CustomIconPlugin/utils/svgToShape.js +7 -5
  14. package/es/core/editor/components/GroupAddResourceDrawerPlugin/GroupAddResourceDrawer.js +8 -6
  15. package/es/core/editor/components/Sidebar/views/CanvasPanel/hooks/useCanvasThemeConfig.js +15 -8
  16. package/es/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxBackgroundSetting.js +16 -10
  17. package/es/core/editor/components/Toolbar/widgets/FontColorButton.js +16 -10
  18. package/es/core/editor/components/settings/propertyViews/layer/DataTab/DefaultLayerAddResourceDrawer.js +8 -6
  19. package/es/core/editor/components/settings/propertyViews/node/data/BindResourceDrawer.js +8 -6
  20. package/es/core/editor/components/settings/propertyViews/node/data/Data.js +8 -6
  21. package/es/core/editor/components/settings/propertyViews/view/BackgroundSize.js +8 -6
  22. package/es/core/editor/components/titlebar/TopoEditorTitleBar.js +28 -16
  23. package/es/core/editor/hooks/useKeyboardShortcut.js +36 -32
  24. package/es/core/editor/utils/copyElementUtil.js +174 -0
  25. package/es/core/hooks/useCiAttributeChange.js +6 -3
  26. package/es/core/hooks/usePolling.js +21 -13
  27. package/es/core/hooks/useResourceConfig.js +37 -21
  28. package/es/core/hooks/useTopoEdit.js +202 -139
  29. package/es/core/models/Alarm.js +104 -38
  30. package/es/core/models/AttributeMetricDisplay.js +36 -14
  31. package/es/core/models/TopoApp.js +197 -75
  32. package/es/core/models/TopoGraphView.js +20 -10
  33. package/es/core/models/attributeFormatter/formatter/commonTransform.js +0 -5
  34. package/es/core/models/cache/CiCache.js +12 -6
  35. package/es/core/models/cache/CiTypeCache.js +20 -10
  36. package/es/core/models/cache/DictCache.js +10 -6
  37. package/es/core/models/graph/Background.js +9 -6
  38. package/es/core/models/plugins/resourceWebControllUrl.js +21 -8
  39. package/es/core/models/tagstips/ElementTagTipConfig.js +20 -10
  40. package/es/core/models/topoData.js +7 -5
  41. package/es/core/models/utils/linkUtils.js +8 -5
  42. package/es/core/services/cmdb/metric.js +7 -5
  43. package/es/core/services/cmdb.js +9 -5
  44. package/es/core/services/index.js +23 -9
  45. package/es/core/services/topo/tagtip.js +7 -5
  46. package/es/core/store/models/customIcon.js +11 -6
  47. package/es/core/utils/imageUtil.js +7 -5
  48. package/es/core/utils/metricUtil.js +13 -1
  49. package/es/core/utils/saveSerialize.js +7 -5
  50. package/es/core/viewer/components/plugins/ResourceDetail/components/ClusterMemberTable.js +8 -6
  51. package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/EventsCard.js +8 -5
  52. package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +57 -25
  53. package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/Configurator/index.js +47 -34
  54. package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/LinkTopoCard.js +9 -5
  55. package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/services/index.js +74 -34
  56. package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useAlarmAndRiskData.js +9 -6
  57. package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useMetricModels.js +9 -6
  58. package/es/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/hooks/useWebConsole.js +31 -26
  59. package/es/core/viewer/components/plugins/ResourceDetail/getCiDisplayMetricModels.js +15 -7
  60. package/es/core/viewer/components/plugins/ResourceDetail/hooks/useUserId.js +7 -4
  61. package/es/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.js +8 -6
  62. package/es/networkTopo/components/Link/hook.js +21 -14
  63. package/es/networkTopo/components/Link/index.js +32 -18
  64. package/es/networkTopo/components/Link/setting.js +8 -6
  65. package/es/networkTopo/getTopoData.js +23 -10
  66. package/es/networkTopo/hooks/viewer/useRelateTopo.js +7 -4
  67. package/es/networkTopo/models/TopoCenter.js +24 -10
  68. package/es/networkTopo/services/cmdb.js +333 -233
  69. package/es/networkTopo/services/mdc.js +24 -15
  70. package/es/networkTopo/services/metric.js +16 -11
  71. package/es/networkTopo/services/model.js +412 -283
  72. package/es/networkTopo/utils/exportData.js +7 -5
  73. package/es/utils/clipboardUtil.d.ts +7 -0
  74. package/es/utils/clipboardUtil.js +104 -0
  75. package/lib/components/BatchAttrMetric/setting.js +1 -1
  76. package/lib/components/MultiResourceDrawer/index.js +8 -6
  77. package/lib/components/ResourceList/ResourceSelect.js +8 -6
  78. package/lib/components/ResourceSelectDrawer/ResourceSelectDrawer.js +8 -6
  79. package/lib/components/SingleResourceDrawer/SelectDrawer.js +8 -6
  80. package/lib/core/components/DisplaySettingDrawer/DisplaySettingDrawer.js +8 -6
  81. package/lib/core/components/DisplaySettingDrawer/hooks/useDisplaySetting.js +24 -14
  82. package/lib/core/editor/components/BackgroundView/index.js +74 -55
  83. package/lib/core/editor/components/CustomIconPlugin/RenameDialog.js +8 -6
  84. package/lib/core/editor/components/CustomIconPlugin/utils/svgToShape.js +7 -4
  85. package/lib/core/editor/components/GroupAddResourceDrawerPlugin/GroupAddResourceDrawer.js +8 -6
  86. package/lib/core/editor/components/Sidebar/views/CanvasPanel/hooks/useCanvasThemeConfig.js +15 -8
  87. package/lib/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxBackgroundSetting.js +16 -10
  88. package/lib/core/editor/components/Toolbar/widgets/FontColorButton.js +16 -10
  89. package/lib/core/editor/components/settings/propertyViews/layer/DataTab/DefaultLayerAddResourceDrawer.js +8 -6
  90. package/lib/core/editor/components/settings/propertyViews/node/data/BindResourceDrawer.js +8 -6
  91. package/lib/core/editor/components/settings/propertyViews/node/data/Data.js +8 -6
  92. package/lib/core/editor/components/settings/propertyViews/view/BackgroundSize.js +8 -6
  93. package/lib/core/editor/components/titlebar/TopoEditorTitleBar.js +28 -16
  94. package/lib/core/editor/hooks/useKeyboardShortcut.js +37 -34
  95. package/lib/core/editor/utils/copyElementUtil.js +187 -0
  96. package/lib/core/hooks/useCiAttributeChange.js +6 -3
  97. package/lib/core/hooks/usePolling.js +21 -13
  98. package/lib/core/hooks/useResourceConfig.js +37 -21
  99. package/lib/core/hooks/useTopoEdit.js +202 -139
  100. package/lib/core/models/Alarm.js +104 -38
  101. package/lib/core/models/AttributeMetricDisplay.js +36 -14
  102. package/lib/core/models/TopoApp.js +197 -75
  103. package/lib/core/models/TopoGraphView.js +20 -10
  104. package/lib/core/models/attributeFormatter/formatter/commonTransform.js +0 -5
  105. package/lib/core/models/cache/CiCache.js +12 -6
  106. package/lib/core/models/cache/CiTypeCache.js +20 -10
  107. package/lib/core/models/cache/DictCache.js +10 -6
  108. package/lib/core/models/graph/Background.js +9 -6
  109. package/lib/core/models/plugins/resourceWebControllUrl.js +21 -8
  110. package/lib/core/models/tagstips/ElementTagTipConfig.js +20 -10
  111. package/lib/core/models/topoData.js +7 -4
  112. package/lib/core/models/utils/linkUtils.js +8 -4
  113. package/lib/core/services/cmdb/metric.js +7 -4
  114. package/lib/core/services/cmdb.js +9 -4
  115. package/lib/core/services/index.js +21 -8
  116. package/lib/core/services/topo/tagtip.js +7 -4
  117. package/lib/core/store/models/customIcon.js +11 -6
  118. package/lib/core/utils/imageUtil.js +7 -4
  119. package/lib/core/utils/metricUtil.js +13 -1
  120. package/lib/core/utils/saveSerialize.js +7 -4
  121. package/lib/core/viewer/components/plugins/ResourceDetail/components/ClusterMemberTable.js +8 -6
  122. package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/EventsCard.js +9 -6
  123. package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +57 -25
  124. package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/Configurator/index.js +49 -36
  125. package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/LinkTopoCard.js +9 -5
  126. package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/services/index.js +73 -35
  127. package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useAlarmAndRiskData.js +9 -6
  128. package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useMetricModels.js +9 -6
  129. package/lib/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/hooks/useWebConsole.js +31 -25
  130. package/lib/core/viewer/components/plugins/ResourceDetail/getCiDisplayMetricModels.js +14 -6
  131. package/lib/core/viewer/components/plugins/ResourceDetail/hooks/useUserId.js +7 -4
  132. package/lib/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.js +8 -6
  133. package/lib/networkTopo/components/Link/hook.js +23 -15
  134. package/lib/networkTopo/components/Link/index.js +32 -18
  135. package/lib/networkTopo/components/Link/setting.js +8 -6
  136. package/lib/networkTopo/getTopoData.js +23 -10
  137. package/lib/networkTopo/hooks/viewer/useRelateTopo.js +7 -4
  138. package/lib/networkTopo/models/TopoCenter.js +24 -10
  139. package/lib/networkTopo/services/cmdb.js +336 -235
  140. package/lib/networkTopo/services/mdc.js +24 -14
  141. package/lib/networkTopo/services/metric.js +16 -10
  142. package/lib/networkTopo/services/model.js +414 -284
  143. package/lib/networkTopo/utils/exportData.js +7 -4
  144. package/lib/utils/clipboardUtil.d.ts +7 -0
  145. package/lib/utils/clipboardUtil.js +113 -0
  146. package/lib/utils/htElementDataUtil.js +4 -2
  147. package/package.json +3 -2
@@ -18,8 +18,6 @@ var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-ut
18
18
  var _utils = require("@riil-frontend/utils");
19
19
 
20
20
  var Alarm = /*#__PURE__*/function () {
21
- var _open, _hmGetTopoAlarmByDoc, _hmGetTopoAlarm, _setAlarmDataByMock, _switchAlarmPopPanel, _openTopoAlarm, _closeTopoAlarm, _restart, _handleAlarmEvent;
22
-
23
21
  function Alarm() {
24
22
  this.topo = void 0;
25
23
  this.currentTopoId = void 0;
@@ -44,8 +42,10 @@ var Alarm = /*#__PURE__*/function () {
44
42
  */
45
43
  ;
46
44
 
47
- _proto.open = function open() {
48
- return (_open = _open || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
45
+ _proto.open =
46
+ /*#__PURE__*/
47
+ function () {
48
+ var _open = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
49
49
  var _this = this;
50
50
 
51
51
  var nodeCount;
@@ -77,8 +77,14 @@ var Alarm = /*#__PURE__*/function () {
77
77
  return _context.stop();
78
78
  }
79
79
  }, _callee, this);
80
- }))).apply(this, arguments);
81
- };
80
+ }));
81
+
82
+ function open() {
83
+ return _open.apply(this, arguments);
84
+ }
85
+
86
+ return open;
87
+ }();
82
88
 
83
89
  _proto.doOpen = function doOpen() {
84
90
  // 获得拓扑id
@@ -184,8 +190,8 @@ var Alarm = /*#__PURE__*/function () {
184
190
  };
185
191
  };
186
192
 
187
- _proto.hmGetTopoAlarmByDoc = function hmGetTopoAlarmByDoc(_x) {
188
- return (_hmGetTopoAlarmByDoc = _hmGetTopoAlarmByDoc || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(id) {
193
+ _proto.hmGetTopoAlarmByDoc = /*#__PURE__*/function () {
194
+ var _hmGetTopoAlarmByDoc = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(id) {
189
195
  var result, alarms, state, _this$topo$store$getM, alarmListDefaultOpen;
190
196
 
191
197
  return _regenerator["default"].wrap(function _callee2$(_context2) {
@@ -214,11 +220,17 @@ var Alarm = /*#__PURE__*/function () {
214
220
  return _context2.stop();
215
221
  }
216
222
  }, _callee2, this);
217
- }))).apply(this, arguments);
218
- };
223
+ }));
224
+
225
+ function hmGetTopoAlarmByDoc(_x) {
226
+ return _hmGetTopoAlarmByDoc.apply(this, arguments);
227
+ }
219
228
 
220
- _proto.hmGetTopoAlarm = function hmGetTopoAlarm(_x2) {
221
- return (_hmGetTopoAlarm = _hmGetTopoAlarm || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(id) {
229
+ return hmGetTopoAlarmByDoc;
230
+ }();
231
+
232
+ _proto.hmGetTopoAlarm = /*#__PURE__*/function () {
233
+ var _hmGetTopoAlarm = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(id) {
222
234
  var mainCiIdList, endTime, startTime, parms, result;
223
235
  return _regenerator["default"].wrap(function _callee3$(_context3) {
224
236
  while (1) switch (_context3.prev = _context3.next) {
@@ -287,16 +299,24 @@ var Alarm = /*#__PURE__*/function () {
287
299
  return _context3.stop();
288
300
  }
289
301
  }, _callee3, this);
290
- }))).apply(this, arguments);
291
- }
302
+ }));
303
+
304
+ function hmGetTopoAlarm(_x2) {
305
+ return _hmGetTopoAlarm.apply(this, arguments);
306
+ }
307
+
308
+ return hmGetTopoAlarm;
309
+ }()
292
310
  /**
293
311
  * 直接装载告警数据(可装载mock列表)
294
312
  *
295
313
  */
296
314
  ;
297
315
 
298
- _proto.setAlarmDataByMock = function setAlarmDataByMock(_x3) {
299
- return (_setAlarmDataByMock = _setAlarmDataByMock || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(datas) {
316
+ _proto.setAlarmDataByMock =
317
+ /*#__PURE__*/
318
+ function () {
319
+ var _setAlarmDataByMock = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(datas) {
300
320
  return _regenerator["default"].wrap(function _callee4$(_context4) {
301
321
  while (1) switch (_context4.prev = _context4.next) {
302
322
  case 0:
@@ -310,16 +330,24 @@ var Alarm = /*#__PURE__*/function () {
310
330
  return _context4.stop();
311
331
  }
312
332
  }, _callee4, this);
313
- }))).apply(this, arguments);
314
- }
333
+ }));
334
+
335
+ function setAlarmDataByMock(_x3) {
336
+ return _setAlarmDataByMock.apply(this, arguments);
337
+ }
338
+
339
+ return setAlarmDataByMock;
340
+ }()
315
341
  /**
316
342
  * 打开\关闭告警列表弹窗
317
343
  *
318
344
  */
319
345
  ;
320
346
 
321
- _proto.switchAlarmPopPanel = function switchAlarmPopPanel(_x4) {
322
- return (_switchAlarmPopPanel = _switchAlarmPopPanel || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(flag) {
347
+ _proto.switchAlarmPopPanel =
348
+ /*#__PURE__*/
349
+ function () {
350
+ var _switchAlarmPopPanel = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(flag) {
323
351
  var topoDispatchers;
324
352
  return _regenerator["default"].wrap(function _callee5$(_context5) {
325
353
  while (1) switch (_context5.prev = _context5.next) {
@@ -335,8 +363,14 @@ var Alarm = /*#__PURE__*/function () {
335
363
  return _context5.stop();
336
364
  }
337
365
  }, _callee5, this);
338
- }))).apply(this, arguments);
339
- }
366
+ }));
367
+
368
+ function switchAlarmPopPanel(_x4) {
369
+ return _switchAlarmPopPanel.apply(this, arguments);
370
+ }
371
+
372
+ return switchAlarmPopPanel;
373
+ }()
340
374
  /**
341
375
  * 打开告警推送。
342
376
  *
@@ -344,8 +378,10 @@ var Alarm = /*#__PURE__*/function () {
344
378
  */
345
379
  ;
346
380
 
347
- _proto.openTopoAlarm = function openTopoAlarm(_x5) {
348
- return (_openTopoAlarm = _openTopoAlarm || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(id) {
381
+ _proto.openTopoAlarm =
382
+ /*#__PURE__*/
383
+ function () {
384
+ var _openTopoAlarm = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(id) {
349
385
  var _this$getState2, alarmOpening, topoAlarmIsOpen, alarmDispatchers;
350
386
 
351
387
  return _regenerator["default"].wrap(function _callee6$(_context6) {
@@ -402,8 +438,14 @@ var Alarm = /*#__PURE__*/function () {
402
438
  return _context6.stop();
403
439
  }
404
440
  }, _callee6, this, [[8, 16]]);
405
- }))).apply(this, arguments);
406
- }
441
+ }));
442
+
443
+ function openTopoAlarm(_x5) {
444
+ return _openTopoAlarm.apply(this, arguments);
445
+ }
446
+
447
+ return openTopoAlarm;
448
+ }()
407
449
  /**
408
450
  * 关闭告警推送。
409
451
  *
@@ -411,8 +453,10 @@ var Alarm = /*#__PURE__*/function () {
411
453
  */
412
454
  ;
413
455
 
414
- _proto.closeTopoAlarm = function closeTopoAlarm(_x6) {
415
- return (_closeTopoAlarm = _closeTopoAlarm || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7(id) {
456
+ _proto.closeTopoAlarm =
457
+ /*#__PURE__*/
458
+ function () {
459
+ var _closeTopoAlarm = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7(id) {
416
460
  var _this$getState3, alarmIsOpened, alarmOpening;
417
461
 
418
462
  return _regenerator["default"].wrap(function _callee7$(_context7) {
@@ -446,8 +490,14 @@ var Alarm = /*#__PURE__*/function () {
446
490
  return _context7.stop();
447
491
  }
448
492
  }, _callee7, this);
449
- }))).apply(this, arguments);
450
- }
493
+ }));
494
+
495
+ function closeTopoAlarm(_x6) {
496
+ return _closeTopoAlarm.apply(this, arguments);
497
+ }
498
+
499
+ return closeTopoAlarm;
500
+ }()
451
501
  /**
452
502
  * 打开\关闭告警列表弹窗
453
503
  *
@@ -464,8 +514,10 @@ var Alarm = /*#__PURE__*/function () {
464
514
  */
465
515
  ;
466
516
 
467
- _proto.restart = function restart() {
468
- return (_restart = _restart || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8() {
517
+ _proto.restart =
518
+ /*#__PURE__*/
519
+ function () {
520
+ var _restart = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8() {
469
521
  var id;
470
522
  return _regenerator["default"].wrap(function _callee8$(_context8) {
471
523
  while (1) switch (_context8.prev = _context8.next) {
@@ -479,15 +531,23 @@ var Alarm = /*#__PURE__*/function () {
479
531
  return _context8.stop();
480
532
  }
481
533
  }, _callee8, this);
482
- }))).apply(this, arguments);
483
- }
534
+ }));
535
+
536
+ function restart() {
537
+ return _restart.apply(this, arguments);
538
+ }
539
+
540
+ return restart;
541
+ }()
484
542
  /**
485
543
  * 处理告警推送事件
486
544
  */
487
545
  ;
488
546
 
489
- _proto.handleAlarmEvent = function handleAlarmEvent(_x7) {
490
- return (_handleAlarmEvent = _handleAlarmEvent || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9(alertData) {
547
+ _proto.handleAlarmEvent =
548
+ /*#__PURE__*/
549
+ function () {
550
+ var _handleAlarmEvent = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9(alertData) {
491
551
  var _this$getState4, alarmIsOpened, resAndMetrics, resIdsList, nodeIdsList, linkIdsList, alarmDispatchers, sendAl, idsList, operations, _yield$alarmDispatche2, eqFlag, alarmlist, _this$topo$viewProps, _this$topo$viewProps2;
492
552
 
493
553
  return _regenerator["default"].wrap(function _callee9$(_context9) {
@@ -580,8 +640,14 @@ var Alarm = /*#__PURE__*/function () {
580
640
  return _context9.stop();
581
641
  }
582
642
  }, _callee9, this, [[12, 21]]);
583
- }))).apply(this, arguments);
584
- };
643
+ }));
644
+
645
+ function handleAlarmEvent(_x7) {
646
+ return _handleAlarmEvent.apply(this, arguments);
647
+ }
648
+
649
+ return handleAlarmEvent;
650
+ }();
585
651
 
586
652
  _proto.getState = function getState() {
587
653
  return this.topo.store.getModelState('topoAlarm');
@@ -42,8 +42,6 @@ function filterUnExistedFields(fields, ciTypeMeta) {
42
42
 
43
43
 
44
44
  var AttributeMetricDisplay = /*#__PURE__*/function () {
45
- var _loadData, _loadAttributeAndMetric, _translateRefAttribute;
46
-
47
45
  function AttributeMetricDisplay(topo) {
48
46
  var _this$topo$options$ta;
49
47
 
@@ -327,8 +325,10 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
327
325
  */
328
326
  ;
329
327
 
330
- _proto.loadData = function loadData(_x) {
331
- return (_loadData = _loadData || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(data) {
328
+ _proto.loadData =
329
+ /*#__PURE__*/
330
+ function () {
331
+ var _loadData = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(data) {
332
332
  var topo, ciDatas, bizDispatchers;
333
333
  return _regenerator["default"].wrap(function _callee$(_context) {
334
334
  while (1) switch (_context.prev = _context.next) {
@@ -366,8 +366,14 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
366
366
  return _context.stop();
367
367
  }
368
368
  }, _callee, this);
369
- }))).apply(this, arguments);
370
- }
369
+ }));
370
+
371
+ function loadData(_x) {
372
+ return _loadData.apply(this, arguments);
373
+ }
374
+
375
+ return loadData;
376
+ }()
371
377
  /**
372
378
  * 加载标注、悬浮框数据
373
379
  * 业务拓扑使用
@@ -376,8 +382,10 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
376
382
  */
377
383
  ;
378
384
 
379
- _proto.loadAttributeAndMetric = function loadAttributeAndMetric(_x2) {
380
- return (_loadAttributeAndMetric = _loadAttributeAndMetric || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(data) {
385
+ _proto.loadAttributeAndMetric =
386
+ /*#__PURE__*/
387
+ function () {
388
+ var _loadAttributeAndMetric = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(data) {
381
389
  return _regenerator["default"].wrap(function _callee2$(_context2) {
382
390
  while (1) switch (_context2.prev = _context2.next) {
383
391
  case 0:
@@ -389,8 +397,14 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
389
397
  return _context2.stop();
390
398
  }
391
399
  }, _callee2, this);
392
- }))).apply(this, arguments);
393
- }
400
+ }));
401
+
402
+ function loadAttributeAndMetric(_x2) {
403
+ return _loadAttributeAndMetric.apply(this, arguments);
404
+ }
405
+
406
+ return loadAttributeAndMetric;
407
+ }()
394
408
  /**
395
409
  * 临时由前端翻译引用属性名称
396
410
  * @param {array<{id, ciType, attributeMap: {}, ...}>} ciDatas
@@ -398,8 +412,10 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
398
412
  */
399
413
  ;
400
414
 
401
- _proto.translateRefAttribute = function translateRefAttribute(_x3) {
402
- return (_translateRefAttribute = _translateRefAttribute || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(ciDatas) {
415
+ _proto.translateRefAttribute =
416
+ /*#__PURE__*/
417
+ function () {
418
+ var _translateRefAttribute = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(ciDatas) {
403
419
  var _this4 = this;
404
420
 
405
421
  var refIdMap, ciRefAttributeMap, refIds, refCiMap;
@@ -473,8 +489,14 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
473
489
  return _context3.stop();
474
490
  }
475
491
  }, _callee3, this);
476
- }))).apply(this, arguments);
477
- }
492
+ }));
493
+
494
+ function translateRefAttribute(_x3) {
495
+ return _translateRefAttribute.apply(this, arguments);
496
+ }
497
+
498
+ return translateRefAttribute;
499
+ }()
478
500
  /**
479
501
  * 推送标注、悬浮框数据 => ht
480
502
  * @returns