@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
@@ -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 = function open() {
36
- return (_open = _open || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
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
- }))).apply(this, arguments);
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 hmGetTopoAlarmByDoc(_x) {
174
- return (_hmGetTopoAlarmByDoc = _hmGetTopoAlarmByDoc || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(id) {
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
- }))).apply(this, arguments);
202
- };
207
+ }));
208
+
209
+ function hmGetTopoAlarmByDoc(_x) {
210
+ return _hmGetTopoAlarmByDoc.apply(this, arguments);
211
+ }
203
212
 
204
- _proto.hmGetTopoAlarm = function hmGetTopoAlarm(_x2) {
205
- return (_hmGetTopoAlarm = _hmGetTopoAlarm || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(id) {
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
- }))).apply(this, arguments);
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 = function setAlarmDataByMock(_x3) {
281
- return (_setAlarmDataByMock = _setAlarmDataByMock || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(datas) {
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
- }))).apply(this, arguments);
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 = function switchAlarmPopPanel(_x4) {
304
- return (_switchAlarmPopPanel = _switchAlarmPopPanel || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(flag) {
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
- }))).apply(this, arguments);
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 = function openTopoAlarm(_x5) {
330
- return (_openTopoAlarm = _openTopoAlarm || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(id) {
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
- }))).apply(this, arguments);
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 = function closeTopoAlarm(_x6) {
393
- return (_closeTopoAlarm = _closeTopoAlarm || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(id) {
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
- }))).apply(this, arguments);
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 = function restart() {
444
- return (_restart = _restart || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
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
- }))).apply(this, arguments);
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 = function handleAlarmEvent(_x7) {
466
- return (_handleAlarmEvent = _handleAlarmEvent || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(alertData) {
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
- }))).apply(this, arguments);
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 = function loadData(_x) {
316
- return (_loadData = _loadData || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(data) {
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
- }))).apply(this, arguments);
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 = function loadAttributeAndMetric(_x2) {
365
- return (_loadAttributeAndMetric = _loadAttributeAndMetric || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(data) {
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
- }))).apply(this, arguments);
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 = function translateRefAttribute(_x3) {
387
- return (_translateRefAttribute = _translateRefAttribute || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(ciDatas) {
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
- }))).apply(this, arguments);
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