@riil-frontend/component-topology 12.0.0-dev.3 → 12.0.0-dev.31
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 +1 -1
- package/build/index.css +1 -1
- package/build/index.js +13 -13
- package/es/components/BatchAttrMetric/setting.js +1 -1
- package/es/components/ModelAttrSelectDrawer/components/MultipleTypeAttributeSelectDrawer.js +1 -1
- package/es/components/ResourceSelectDrawer/ResourceSelectDrawer.js +1 -1
- package/es/components/TemplateButton/index.module.scss +1 -1
- package/es/core/components/AlarmListPanel/components/AlarmListItem.js +58 -3
- package/es/core/components/AlarmListPanel/index.js +1 -1
- package/es/core/components/DisplaySettingDrawer/DisplaySetting.js +1 -1
- package/es/core/components/DisplaySettingDrawer/DisplaySettingDrawer.js +2 -2
- package/es/core/components/DisplaySettingDrawer/ResourceDisplay/BasicConfig.js +1 -1
- package/es/core/components/DisplaySettingDrawer/components/NodeAttrSettingDrawer.js +1 -1
- package/es/core/components/ResourceViewAttributeSetting/Setting.js +1 -1
- package/es/core/components/TopoView/topoView.js +6 -2
- package/es/core/editor/components/BackgroundView/index.js +1 -1
- package/es/core/editor/components/CustomIconPlugin/UploadIconDialog.js +1 -1
- package/es/core/editor/components/EditorPlugin.js +1 -1
- package/es/core/editor/components/Sidebar/views/ComponentPanel.js +1 -1
- package/es/core/editor/components/Sidebar/views/ImagePanel/CiTypeImagePanel.js +1 -1
- package/es/core/editor/components/Sidebar/views/ImagePanel/CustomImagePanel.js +1 -1
- package/es/core/editor/components/Sidebar/views/ImagePanel/HtCustomImagePanel.js +1 -1
- package/es/core/editor/components/Sidebar/views/ImagePanel/HtImagePalette.js +1 -1
- package/es/core/editor/components/Sidebar/views/ImagePanel/ImagePalette.js +1 -1
- package/es/core/editor/components/Sidebar/views/LinkPanel.js +1 -1
- package/es/core/editor/components/Toolbar/widgets/EdgeColorButton/EdgeColorButton.js +5 -12
- package/es/core/editor/components/Toolbar/widgets/EdgeTypeButton/EdgeType.js +27 -10
- package/es/core/editor/components/Toolbar/widgets/EdgeTypeButton/EdgeType.module.scss +21 -1
- package/es/core/editor/components/Toolbar/widgets/EdgeTypeButton/LineType.js +9 -0
- package/es/core/editor/components/Toolbar/widgets/EdgeTypeButton/index.js +2 -2
- package/es/core/editor/components/Toolbar/widgets/Layout/index.js +16 -2
- package/es/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.js +1 -1
- package/es/core/editor/components/settings/common/SizeInput/NodeSizeInput.js +1 -1
- package/es/core/editor/components/settings/propertyViews/layer/BasicSetting.js +1 -1
- package/es/core/editor/components/settings/propertyViews/layer/SettingTab/Setting.js +1 -1
- package/es/core/editor/components/settings/propertyViews/view/hooks/useBackgroundSizeConfig.js +1 -1
- package/es/core/editor/hooks/useKeyboardShortcut.js +3 -1
- package/es/core/editor/store/background.js +1 -1
- package/es/core/editor/store/historyManager.js +1 -1
- package/es/core/editor/store/topoEdit.js +1 -1
- package/es/core/editor/utils/copyElementUtil.js +12 -0
- package/es/core/editor/utils/edgeTypeStyleUtil.js +8 -7
- package/es/core/hooks/__tests__/useCiAttributeChange.test.js +0 -0
- package/es/core/hooks/ht/useHtDataPropertyChangeListener.js +1 -1
- package/es/core/hooks/useAlarm.js +119 -82
- package/es/core/hooks/useCiAttributeChange.js +31 -15
- package/es/core/hooks/useCmpLinkAlarm.js +153 -0
- package/es/core/hooks/useEventData.js +1 -2
- package/es/core/hooks/useGraphAlarmDisplay.js +91 -56
- package/es/core/hooks/useManageStatus.js +1 -1
- package/es/core/hooks/usePolling.js +1 -1
- package/es/core/hooks/useResourceConfig.js +1 -3
- package/es/core/hooks/useTopoEdit.js +51 -54
- package/es/core/models/Alarm.js +70 -143
- package/es/core/models/AttributeMetricDisplay.js +15 -6
- package/es/core/models/HistoryManager.js +1 -1
- package/es/core/models/SelectionModel.js +1 -1
- package/es/core/models/TopoApp.js +2 -2
- package/es/core/models/attributeFormatter/formatter/graphTransform.js +1 -1
- package/es/core/models/attributeFormatter/index.js +1 -1
- package/es/core/models/cache/CiCache.d.ts +1 -1
- package/es/core/models/cache/CiCache.js +3 -3
- package/es/core/models/cache/CiTypeCache.js +5 -1
- package/es/core/models/cache/DictCache.js +1 -1
- package/es/core/models/plugins/resourceWebControllUrl.js +1 -1
- package/es/core/models/tagstips/ElementTagTipConfig.js +1 -1
- package/es/core/models/topoData.js +0 -1
- package/es/core/services/alarm.js +1 -1
- package/es/core/services/index.js +1 -1
- package/es/core/services/topo/basic.js +2 -2
- package/es/core/store/models/customIcon.js +1 -1
- package/es/core/store/models/displayConfig.js +1 -1
- package/es/core/store/models/selection.js +1 -1
- package/es/core/store/models/topoBaseInfoOverview.js +1 -1
- package/es/core/store/models/topoBizMod.js +1 -1
- package/es/core/store/models/topoConfig.js +7 -10
- package/es/core/store/models/topoGraphView.js +1 -1
- package/es/core/store/models/topoMod.js +82 -135
- package/es/core/store/models/viewer/lock.js +1 -1
- package/es/core/store/models/viewer/resourceDetail.js +1 -1
- package/es/core/store/models/viewer/resourceWebControllUrlSetting.js +1 -1
- package/es/core/utils/edgeUtil.js +10 -1
- package/es/core/utils/metricUtil.js +8 -4
- package/es/core/utils/showGraphManageStatusUtil.js +3 -2
- package/es/core/utils/showMessage.js +1 -1
- package/es/core/viewer/components/plugins/ResourceDetail/ResourceDetail.js +1 -0
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/EventsCard.js +12 -13
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +3 -1
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/LinkTopoCard.js +4 -2
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/hooks/useMetricPolling.js +1 -1
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/services/index.js +1 -1
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useAlarmAndRiskData.js +20 -18
- package/es/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/hooks/useWebConsole.js +1 -1
- package/es/core/viewer/components/plugins/ViewerPlugin.js +3 -1
- package/es/core/viewer/components/titlebar/widgets/AlarmButton.js +1 -5
- package/es/networkTopo/components/Link/index.js +1 -1
- package/es/networkTopo/components/TopoView.js +6 -11
- package/es/networkTopo/hooks/useEdgeExpand.js +2 -3
- package/es/networkTopo/hooks/viewer/useRelateTopo.js +1 -1
- package/es/networkTopo/models/LinkDynamicStyleExecutor.js +1 -1
- package/es/networkTopo/models/LinkTagsTipsBuilder.js +1 -1
- package/es/networkTopo/models/TopoCenter.js +1 -1
- package/es/networkTopo/services/model.js +1 -1
- package/es/networkTopo/services/topo/basic.js +4 -4
- package/es/networkTopo/services/topo/ciInfo.js +1 -1
- package/es/networkTopo/store/functionAuth.js +1 -1
- package/es/networkTopo/store/topoCenter.js +261 -224
- package/es/networkTopo/store/topoTreeMod.js +1 -1
- package/es/networkTopo/utils/exportData.js +1 -1
- package/es/style.js +2 -2
- package/es/utils/ResourceConfigUtil.js +4 -37
- package/es/utils/ciRefAttributeTranslateUtil.d.ts +19 -0
- package/es/utils/ciRefAttributeTranslateUtil.js +155 -0
- package/es/utils/format.js +1 -1
- package/es/utils/topoData.js +4 -2
- package/lib/components/BatchAttrMetric/setting.js +2 -2
- package/lib/components/ModelAttrSelectDrawer/components/MultipleTypeAttributeSelectDrawer.js +2 -2
- package/lib/components/ResourceSelectDrawer/ResourceSelectDrawer.js +2 -2
- package/lib/components/TemplateButton/index.module.scss +1 -1
- package/lib/core/components/AlarmListPanel/components/AlarmListItem.js +60 -3
- package/lib/core/components/AlarmListPanel/index.js +1 -1
- package/lib/core/components/DisplaySettingDrawer/DisplaySetting.js +2 -2
- package/lib/core/components/DisplaySettingDrawer/DisplaySettingDrawer.js +2 -2
- package/lib/core/components/DisplaySettingDrawer/ResourceDisplay/BasicConfig.js +3 -3
- package/lib/core/components/DisplaySettingDrawer/components/NodeAttrSettingDrawer.js +2 -2
- package/lib/core/components/ResourceViewAttributeSetting/Setting.js +2 -2
- package/lib/core/components/TopoView/topoView.js +14 -10
- package/lib/core/editor/components/BackgroundView/index.js +3 -3
- package/lib/core/editor/components/CustomIconPlugin/UploadIconDialog.js +2 -2
- package/lib/core/editor/components/EditorPlugin.js +3 -3
- package/lib/core/editor/components/Sidebar/views/ComponentPanel.js +2 -4
- package/lib/core/editor/components/Sidebar/views/ImagePanel/CiTypeImagePanel.js +1 -1
- package/lib/core/editor/components/Sidebar/views/ImagePanel/CustomImagePanel.js +1 -1
- package/lib/core/editor/components/Sidebar/views/ImagePanel/HtCustomImagePanel.js +2 -2
- package/lib/core/editor/components/Sidebar/views/ImagePanel/HtImagePalette.js +2 -2
- package/lib/core/editor/components/Sidebar/views/ImagePanel/ImagePalette.js +2 -4
- package/lib/core/editor/components/Sidebar/views/LinkPanel.js +2 -4
- package/lib/core/editor/components/Toolbar/widgets/EdgeColorButton/EdgeColorButton.js +6 -12
- package/lib/core/editor/components/Toolbar/widgets/EdgeTypeButton/EdgeType.js +27 -9
- package/lib/core/editor/components/Toolbar/widgets/EdgeTypeButton/EdgeType.module.scss +21 -1
- package/lib/core/editor/components/Toolbar/widgets/EdgeTypeButton/LineType.js +8 -0
- package/lib/core/editor/components/Toolbar/widgets/EdgeTypeButton/index.js +1 -1
- package/lib/core/editor/components/Toolbar/widgets/Layout/index.js +16 -2
- package/lib/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.js +5 -5
- package/lib/core/editor/components/settings/common/SizeInput/NodeSizeInput.js +1 -1
- package/lib/core/editor/components/settings/propertyViews/layer/BasicSetting.js +1 -1
- package/lib/core/editor/components/settings/propertyViews/layer/SettingTab/Setting.js +3 -3
- package/lib/core/editor/components/settings/propertyViews/view/hooks/useBackgroundSizeConfig.js +2 -2
- package/lib/core/editor/hooks/useKeyboardShortcut.js +2 -0
- package/lib/core/editor/store/background.js +1 -1
- package/lib/core/editor/store/historyManager.js +1 -1
- package/lib/core/editor/store/topoEdit.js +1 -1
- package/lib/core/editor/utils/copyElementUtil.js +15 -0
- package/lib/core/editor/utils/edgeTypeStyleUtil.js +8 -6
- package/lib/core/hooks/__tests__/useCiAttributeChange.test.js +1 -0
- package/lib/core/hooks/ht/useHtDataPropertyChangeListener.js +1 -3
- package/lib/core/hooks/useAlarm.js +118 -80
- package/lib/core/hooks/useCiAttributeChange.js +30 -14
- package/lib/core/hooks/useCmpLinkAlarm.js +166 -0
- package/lib/core/hooks/useEventData.js +1 -2
- package/lib/core/hooks/useGraphAlarmDisplay.js +91 -55
- package/lib/core/hooks/useManageStatus.js +1 -1
- package/lib/core/hooks/usePolling.js +3 -3
- package/lib/core/hooks/useResourceConfig.js +1 -3
- package/lib/core/hooks/useTopoEdit.js +50 -53
- package/lib/core/models/Alarm.js +77 -152
- package/lib/core/models/AttributeMetricDisplay.js +18 -6
- package/lib/core/models/HistoryManager.js +8 -8
- package/lib/core/models/SelectionModel.js +5 -5
- package/lib/core/models/TopoApp.js +4 -6
- package/lib/core/models/attributeFormatter/formatter/graphTransform.js +2 -4
- package/lib/core/models/attributeFormatter/index.js +1 -1
- package/lib/core/models/cache/CiCache.d.ts +1 -1
- package/lib/core/models/cache/CiCache.js +3 -3
- package/lib/core/models/cache/CiTypeCache.js +6 -2
- package/lib/core/models/cache/DictCache.js +2 -2
- package/lib/core/models/plugins/resourceWebControllUrl.js +2 -2
- package/lib/core/models/tagstips/ElementTagTipConfig.js +2 -2
- package/lib/core/models/topoData.js +0 -1
- package/lib/core/services/alarm.js +2 -2
- package/lib/core/services/index.js +1 -1
- package/lib/core/services/topo/basic.js +2 -2
- package/lib/core/store/models/customIcon.js +3 -3
- package/lib/core/store/models/displayConfig.js +1 -1
- package/lib/core/store/models/selection.js +1 -1
- package/lib/core/store/models/topoBaseInfoOverview.js +1 -1
- package/lib/core/store/models/topoBizMod.js +1 -1
- package/lib/core/store/models/topoConfig.js +7 -10
- package/lib/core/store/models/topoGraphView.js +1 -1
- package/lib/core/store/models/topoMod.js +89 -142
- package/lib/core/store/models/viewer/lock.js +1 -1
- package/lib/core/store/models/viewer/resourceDetail.js +1 -1
- package/lib/core/store/models/viewer/resourceWebControllUrlSetting.js +1 -1
- package/lib/core/utils/edgeUtil.js +12 -1
- package/lib/core/utils/metricUtil.js +8 -4
- package/lib/core/utils/showGraphManageStatusUtil.js +3 -2
- package/lib/core/utils/showMessage.js +2 -2
- package/lib/core/viewer/components/plugins/ResourceDetail/ResourceDetail.js +1 -0
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/EventsCard.js +12 -13
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +3 -1
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/LinkTopoCard.js +4 -2
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/hooks/useMetricPolling.js +6 -6
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/services/index.js +3 -5
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useAlarmAndRiskData.js +20 -18
- package/lib/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/hooks/useWebConsole.js +2 -2
- package/lib/core/viewer/components/plugins/ViewerPlugin.js +3 -1
- package/lib/core/viewer/components/titlebar/widgets/AlarmButton.js +1 -5
- package/lib/networkTopo/components/Link/index.js +2 -2
- package/lib/networkTopo/components/TopoView.js +5 -14
- package/lib/networkTopo/hooks/useEdgeExpand.js +2 -3
- package/lib/networkTopo/hooks/viewer/useRelateTopo.js +4 -4
- package/lib/networkTopo/models/LinkDynamicStyleExecutor.js +3 -5
- package/lib/networkTopo/models/LinkTagsTipsBuilder.js +3 -3
- package/lib/networkTopo/models/TopoCenter.js +1 -1
- package/lib/networkTopo/services/model.js +1 -3
- package/lib/networkTopo/services/topo/basic.js +4 -6
- package/lib/networkTopo/services/topo/ciInfo.js +0 -2
- package/lib/networkTopo/store/functionAuth.js +1 -1
- package/lib/networkTopo/store/topoCenter.js +263 -226
- package/lib/networkTopo/store/topoTreeMod.js +5 -5
- package/lib/networkTopo/utils/exportData.js +1 -3
- package/lib/style.js +2 -2
- package/lib/utils/ResourceConfigUtil.js +4 -39
- package/lib/utils/ciRefAttributeTranslateUtil.d.ts +19 -0
- package/lib/utils/ciRefAttributeTranslateUtil.js +168 -0
- package/lib/utils/format.js +1 -1
- package/lib/utils/topoData.js +4 -2
- package/package.json +4 -4
package/lib/core/models/Alarm.js
CHANGED
@@ -13,7 +13,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
13
13
|
|
14
14
|
var _topo = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/services/topo"));
|
15
15
|
|
16
|
-
var
|
16
|
+
var _componentTopologyUtils = require("@riil-frontend/component-topology-utils");
|
17
17
|
|
18
18
|
var _utils = require("@riil-frontend/utils");
|
19
19
|
|
@@ -94,10 +94,9 @@ var Alarm = /*#__PURE__*/function () {
|
|
94
94
|
return;
|
95
95
|
}
|
96
96
|
|
97
|
-
|
98
|
-
|
99
|
-
this.openTopoAlarm(id); // this.hmGetTopoAlarm(id);
|
97
|
+
_componentTopologyUtils.rlog.info('Alarm.open 打开告警通道', id);
|
100
98
|
|
99
|
+
this.openTopoAlarm(id);
|
101
100
|
this.hmGetTopoAlarmByDoc(id);
|
102
101
|
}
|
103
102
|
/**
|
@@ -116,7 +115,7 @@ var Alarm = /*#__PURE__*/function () {
|
|
116
115
|
return;
|
117
116
|
}
|
118
117
|
|
119
|
-
|
118
|
+
_componentTopologyUtils.rlog.info('关闭告警通道', currentTopoId); // 取消订阅告警推送
|
120
119
|
// 关闭告警推送通道
|
121
120
|
|
122
121
|
|
@@ -199,7 +198,7 @@ var Alarm = /*#__PURE__*/function () {
|
|
199
198
|
case 0:
|
200
199
|
result = this.getAlarms();
|
201
200
|
|
202
|
-
|
201
|
+
_componentTopologyUtils.rlog.debug('hmGetTopoAlarmByDoc', result);
|
203
202
|
|
204
203
|
alarms = result.map(function (item) {
|
205
204
|
return item.obj;
|
@@ -227,85 +226,6 @@ var Alarm = /*#__PURE__*/function () {
|
|
227
226
|
}
|
228
227
|
|
229
228
|
return hmGetTopoAlarmByDoc;
|
230
|
-
}();
|
231
|
-
|
232
|
-
_proto.hmGetTopoAlarm = /*#__PURE__*/function () {
|
233
|
-
var _hmGetTopoAlarm = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(id) {
|
234
|
-
var mainCiIdList, endTime, startTime, parms, result;
|
235
|
-
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
236
|
-
while (1) switch (_context3.prev = _context3.next) {
|
237
|
-
case 0:
|
238
|
-
mainCiIdList = this.topo.dataModel.getDatas().filter(function (ci) {
|
239
|
-
return !!ci.operation;
|
240
|
-
}) // 过滤掉权限
|
241
|
-
.map(function (ci) {
|
242
|
-
return ci.id;
|
243
|
-
});
|
244
|
-
|
245
|
-
if (!(mainCiIdList.length === 0)) {
|
246
|
-
_context3.next = 4;
|
247
|
-
break;
|
248
|
-
}
|
249
|
-
|
250
|
-
this.updateState({
|
251
|
-
alarmData: [],
|
252
|
-
alarmPanelIsOpen: false
|
253
|
-
});
|
254
|
-
return _context3.abrupt("return");
|
255
|
-
|
256
|
-
case 4:
|
257
|
-
//rlog.debug("获取告警列表", mainCiIdList);
|
258
|
-
endTime = null; // new Date().valueOf();
|
259
|
-
|
260
|
-
startTime = null; // moment().subtract(1, "months").valueOf();
|
261
|
-
|
262
|
-
parms = {
|
263
|
-
mainCiIdList: mainCiIdList,
|
264
|
-
alertStatusList: ['toDeal', 'dealing'],
|
265
|
-
pageNum: 1,
|
266
|
-
pageSize: 10,
|
267
|
-
sortField: 'alertLevel',
|
268
|
-
alertLevelList: [],
|
269
|
-
orders: [{
|
270
|
-
property: 'alertLevel',
|
271
|
-
direction: 'ASC'
|
272
|
-
}, {
|
273
|
-
property: 'createTime',
|
274
|
-
direction: 'DESC'
|
275
|
-
}],
|
276
|
-
createTime: {
|
277
|
-
startTime: startTime,
|
278
|
-
endTime: endTime
|
279
|
-
}
|
280
|
-
};
|
281
|
-
_context3.next = 9;
|
282
|
-
return _topo["default"].getAlarmByIds(parms);
|
283
|
-
|
284
|
-
case 9:
|
285
|
-
result = _context3.sent;
|
286
|
-
|
287
|
-
_rlog["default"].debug('getAlarmById-result', result); // if (alarmIsOpened) {
|
288
|
-
// //this.topo.loadAlarm(result.datas);
|
289
|
-
// this.handleAlarmEvent({ type: "alarm", data: result.datas });
|
290
|
-
// }
|
291
|
-
// this.updateState({
|
292
|
-
// alarmData: result.datas.length > 0 ? result.datas : [],
|
293
|
-
// alarmPanelIsOpen: result.datas.length > 0,
|
294
|
-
// });
|
295
|
-
|
296
|
-
|
297
|
-
case 11:
|
298
|
-
case "end":
|
299
|
-
return _context3.stop();
|
300
|
-
}
|
301
|
-
}, _callee3, this);
|
302
|
-
}));
|
303
|
-
|
304
|
-
function hmGetTopoAlarm(_x2) {
|
305
|
-
return _hmGetTopoAlarm.apply(this, arguments);
|
306
|
-
}
|
307
|
-
|
308
|
-
return hmGetTopoAlarm;
|
309
229
|
}()
|
310
230
|
/**
|
311
231
|
* 直接装载告警数据(可装载mock列表)
|
@@ -316,9 +236,9 @@ var Alarm = /*#__PURE__*/function () {
|
|
316
236
|
_proto.setAlarmDataByMock =
|
317
237
|
/*#__PURE__*/
|
318
238
|
function () {
|
319
|
-
var _setAlarmDataByMock = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
320
|
-
return _regenerator["default"].wrap(function
|
321
|
-
while (1) switch (
|
239
|
+
var _setAlarmDataByMock = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(datas) {
|
240
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
241
|
+
while (1) switch (_context3.prev = _context3.next) {
|
322
242
|
case 0:
|
323
243
|
this.updateState({
|
324
244
|
alarmData: datas.length > 0 ? datas : [],
|
@@ -327,12 +247,12 @@ var Alarm = /*#__PURE__*/function () {
|
|
327
247
|
|
328
248
|
case 1:
|
329
249
|
case "end":
|
330
|
-
return
|
250
|
+
return _context3.stop();
|
331
251
|
}
|
332
|
-
},
|
252
|
+
}, _callee3, this);
|
333
253
|
}));
|
334
254
|
|
335
|
-
function setAlarmDataByMock(
|
255
|
+
function setAlarmDataByMock(_x2) {
|
336
256
|
return _setAlarmDataByMock.apply(this, arguments);
|
337
257
|
}
|
338
258
|
|
@@ -347,10 +267,10 @@ var Alarm = /*#__PURE__*/function () {
|
|
347
267
|
_proto.switchAlarmPopPanel =
|
348
268
|
/*#__PURE__*/
|
349
269
|
function () {
|
350
|
-
var _switchAlarmPopPanel = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
270
|
+
var _switchAlarmPopPanel = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(flag) {
|
351
271
|
var topoDispatchers;
|
352
|
-
return _regenerator["default"].wrap(function
|
353
|
-
while (1) switch (
|
272
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
273
|
+
while (1) switch (_context4.prev = _context4.next) {
|
354
274
|
case 0:
|
355
275
|
// console.log("switchAlarmPopPanel", flag);
|
356
276
|
topoDispatchers = this.topo.store.getModelDispatchers('topoAlarm');
|
@@ -360,12 +280,12 @@ var Alarm = /*#__PURE__*/function () {
|
|
360
280
|
|
361
281
|
case 2:
|
362
282
|
case "end":
|
363
|
-
return
|
283
|
+
return _context4.stop();
|
364
284
|
}
|
365
|
-
},
|
285
|
+
}, _callee4, this);
|
366
286
|
}));
|
367
287
|
|
368
|
-
function switchAlarmPopPanel(
|
288
|
+
function switchAlarmPopPanel(_x3) {
|
369
289
|
return _switchAlarmPopPanel.apply(this, arguments);
|
370
290
|
}
|
371
291
|
|
@@ -381,21 +301,21 @@ var Alarm = /*#__PURE__*/function () {
|
|
381
301
|
_proto.openTopoAlarm =
|
382
302
|
/*#__PURE__*/
|
383
303
|
function () {
|
384
|
-
var _openTopoAlarm = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
304
|
+
var _openTopoAlarm = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(id) {
|
385
305
|
var _this$getState2, alarmOpening, topoAlarmIsOpen, alarmDispatchers;
|
386
306
|
|
387
|
-
return _regenerator["default"].wrap(function
|
388
|
-
while (1) switch (
|
307
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
308
|
+
while (1) switch (_context5.prev = _context5.next) {
|
389
309
|
case 0:
|
390
310
|
// 如果当前拓扑图开启中或已开启则退出
|
391
311
|
_this$getState2 = this.getState(), alarmOpening = _this$getState2.alarmOpening, topoAlarmIsOpen = _this$getState2.topoAlarmIsOpen;
|
392
312
|
|
393
313
|
if (!(this.currentTopoId === id && (topoAlarmIsOpen || alarmOpening))) {
|
394
|
-
|
314
|
+
_context5.next = 3;
|
395
315
|
break;
|
396
316
|
}
|
397
317
|
|
398
|
-
return
|
318
|
+
return _context5.abrupt("return");
|
399
319
|
|
400
320
|
case 3:
|
401
321
|
this.currentTopoId = id;
|
@@ -403,31 +323,31 @@ var Alarm = /*#__PURE__*/function () {
|
|
403
323
|
alarmOpening: true
|
404
324
|
});
|
405
325
|
alarmDispatchers = this.topo.store.getModelDispatchers('topoAlarm');
|
406
|
-
|
326
|
+
_context5.next = 8;
|
407
327
|
return alarmDispatchers.resetAlarmDoc();
|
408
328
|
|
409
329
|
case 8:
|
410
|
-
|
411
|
-
|
330
|
+
_context5.prev = 8;
|
331
|
+
_context5.next = 11;
|
412
332
|
return this.topo.serverApi.openTopoAlarm(id);
|
413
333
|
|
414
334
|
case 11:
|
415
|
-
this.secretKey =
|
335
|
+
this.secretKey = _context5.sent;
|
416
336
|
|
417
|
-
|
337
|
+
_componentTopologyUtils.rlog.info('openTopoAlarm 打开拓扑告警推送-------------------开始');
|
418
338
|
|
419
339
|
this.updateState({
|
420
340
|
alarmOpening: false,
|
421
341
|
alarmIsOpened: true
|
422
342
|
});
|
423
|
-
|
343
|
+
_context5.next = 20;
|
424
344
|
break;
|
425
345
|
|
426
346
|
case 16:
|
427
|
-
|
428
|
-
|
347
|
+
_context5.prev = 16;
|
348
|
+
_context5.t0 = _context5["catch"](8);
|
429
349
|
|
430
|
-
|
350
|
+
_componentTopologyUtils.rlog.error('打开拓扑告警推送 失败');
|
431
351
|
|
432
352
|
this.updateState({
|
433
353
|
alarmOpening: false
|
@@ -435,12 +355,12 @@ var Alarm = /*#__PURE__*/function () {
|
|
435
355
|
|
436
356
|
case 20:
|
437
357
|
case "end":
|
438
|
-
return
|
358
|
+
return _context5.stop();
|
439
359
|
}
|
440
|
-
},
|
360
|
+
}, _callee5, this, [[8, 16]]);
|
441
361
|
}));
|
442
362
|
|
443
|
-
function openTopoAlarm(
|
363
|
+
function openTopoAlarm(_x4) {
|
444
364
|
return _openTopoAlarm.apply(this, arguments);
|
445
365
|
}
|
446
366
|
|
@@ -456,43 +376,43 @@ var Alarm = /*#__PURE__*/function () {
|
|
456
376
|
_proto.closeTopoAlarm =
|
457
377
|
/*#__PURE__*/
|
458
378
|
function () {
|
459
|
-
var _closeTopoAlarm = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
379
|
+
var _closeTopoAlarm = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(id) {
|
460
380
|
var _this$getState3, alarmIsOpened, alarmOpening;
|
461
381
|
|
462
|
-
return _regenerator["default"].wrap(function
|
463
|
-
while (1) switch (
|
382
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
383
|
+
while (1) switch (_context6.prev = _context6.next) {
|
464
384
|
case 0:
|
465
385
|
// 如果未开启则退出
|
466
386
|
_this$getState3 = this.getState(), alarmIsOpened = _this$getState3.alarmIsOpened, alarmOpening = _this$getState3.alarmOpening;
|
467
387
|
|
468
388
|
if (!(!alarmIsOpened && !alarmOpening)) {
|
469
|
-
|
389
|
+
_context6.next = 3;
|
470
390
|
break;
|
471
391
|
}
|
472
392
|
|
473
|
-
return
|
393
|
+
return _context6.abrupt("return");
|
474
394
|
|
475
395
|
case 3:
|
476
396
|
this.currentTopoId = null;
|
477
397
|
|
478
|
-
|
398
|
+
_componentTopologyUtils.rlog.debug('useAlarm.useEffect 告警WebSocket 结束');
|
479
399
|
|
480
400
|
this.updateState({
|
481
401
|
topoAlarmIsOpen: false,
|
482
402
|
alarmOpening: false,
|
483
403
|
alarmPanelIsOpen: false
|
484
404
|
});
|
485
|
-
|
405
|
+
_context6.next = 8;
|
486
406
|
return this.topo.serverApi.closeTopoAlarm(id, this.secretKey);
|
487
407
|
|
488
408
|
case 8:
|
489
409
|
case "end":
|
490
|
-
return
|
410
|
+
return _context6.stop();
|
491
411
|
}
|
492
|
-
},
|
412
|
+
}, _callee6, this);
|
493
413
|
}));
|
494
414
|
|
495
|
-
function closeTopoAlarm(
|
415
|
+
function closeTopoAlarm(_x5) {
|
496
416
|
return _closeTopoAlarm.apply(this, arguments);
|
497
417
|
}
|
498
418
|
|
@@ -517,20 +437,20 @@ var Alarm = /*#__PURE__*/function () {
|
|
517
437
|
_proto.restart =
|
518
438
|
/*#__PURE__*/
|
519
439
|
function () {
|
520
|
-
var _restart = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
440
|
+
var _restart = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7() {
|
521
441
|
var id;
|
522
|
-
return _regenerator["default"].wrap(function
|
523
|
-
while (1) switch (
|
442
|
+
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
443
|
+
while (1) switch (_context7.prev = _context7.next) {
|
524
444
|
case 0:
|
525
445
|
id = this.currentTopoId;
|
526
|
-
|
446
|
+
_context7.next = 3;
|
527
447
|
return this.openTopoAlarm(id);
|
528
448
|
|
529
449
|
case 3:
|
530
450
|
case "end":
|
531
|
-
return
|
451
|
+
return _context7.stop();
|
532
452
|
}
|
533
|
-
},
|
453
|
+
}, _callee7, this);
|
534
454
|
}));
|
535
455
|
|
536
456
|
function restart() {
|
@@ -547,26 +467,28 @@ var Alarm = /*#__PURE__*/function () {
|
|
547
467
|
_proto.handleAlarmEvent =
|
548
468
|
/*#__PURE__*/
|
549
469
|
function () {
|
550
|
-
var _handleAlarmEvent = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
470
|
+
var _handleAlarmEvent = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8(alertData) {
|
551
471
|
var _this$getState4, alarmIsOpened, resAndMetrics, resIdsList, nodeIdsList, linkIdsList, alarmDispatchers, sendAl, idsList, operations, _yield$alarmDispatche2, eqFlag, alarmlist, _this$topo$viewProps, _this$topo$viewProps2;
|
552
472
|
|
553
|
-
return _regenerator["default"].wrap(function
|
554
|
-
while (1) switch (
|
473
|
+
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
474
|
+
while (1) switch (_context8.prev = _context8.next) {
|
555
475
|
case 0:
|
556
476
|
_this$getState4 = this.getState(), alarmIsOpened = _this$getState4.alarmIsOpened;
|
557
477
|
resAndMetrics = this.topo.store.getState().topoMod.resAndMetrics;
|
558
478
|
resIdsList = resAndMetrics.resIdsList, nodeIdsList = resAndMetrics.nodeIdsList, linkIdsList = resAndMetrics.linkIdsList;
|
559
479
|
alarmDispatchers = this.topo.store.getModelDispatchers('topoAlarm'); // 添加事件
|
560
|
-
|
480
|
+
|
481
|
+
console.log("handleAlarmEvent-接收到推送的原始告警信息", alertData);
|
561
482
|
|
562
483
|
if (!((0, _utils.isAvailableArray)(alertData) && (0, _utils.isAvailableArray)(resIdsList))) {
|
563
|
-
|
484
|
+
_context8.next = 27;
|
564
485
|
break;
|
565
486
|
}
|
566
487
|
|
567
488
|
sendAl = [];
|
568
489
|
idsList = [].concat(nodeIdsList, linkIdsList);
|
569
490
|
operations = [];
|
491
|
+
console.log('idsList---------', idsList);
|
570
492
|
idsList.forEach(function (idItem) {
|
571
493
|
if (idItem.operation === null) {
|
572
494
|
operations.push(idItem.ciId);
|
@@ -576,6 +498,7 @@ var Alarm = /*#__PURE__*/function () {
|
|
576
498
|
var _item$resourceId;
|
577
499
|
|
578
500
|
var ciId = (_item$resourceId = item.resourceId) !== null && _item$resourceId !== void 0 ? _item$resourceId : item.ciId;
|
501
|
+
var isSub = false;
|
579
502
|
var obj = {
|
580
503
|
id: ciId,
|
581
504
|
level: item.alertLevel,
|
@@ -584,29 +507,31 @@ var Alarm = /*#__PURE__*/function () {
|
|
584
507
|
obj: item,
|
585
508
|
info: item.alertType,
|
586
509
|
ciCode: item === null || item === void 0 ? void 0 : item.ciCode,
|
587
|
-
ruleId: item === null || item === void 0 ? void 0 : item.ruleId
|
510
|
+
ruleId: item === null || item === void 0 ? void 0 : item.ruleId,
|
511
|
+
isSub: isSub
|
588
512
|
};
|
589
513
|
|
590
514
|
if (resIdsList.indexOf(ciId) >= 0 && operations.indexOf(ciId) < 0) {
|
591
515
|
sendAl.push(obj);
|
592
516
|
}
|
593
|
-
});
|
517
|
+
});
|
518
|
+
console.log("before-combAlarmData", sendAl, idsList);
|
594
519
|
|
595
520
|
if (!(sendAl.length > 0)) {
|
596
|
-
|
521
|
+
_context8.next = 27;
|
597
522
|
break;
|
598
523
|
}
|
599
524
|
|
600
|
-
|
525
|
+
_componentTopologyUtils.rlog.debug('过滤掉非本拓扑的告警信息 告警开关-推送告警到ht-alarmIsOpened-sendAl', alarmIsOpened, sendAl);
|
601
526
|
|
602
|
-
|
603
|
-
|
527
|
+
_context8.prev = 15;
|
528
|
+
_context8.next = 18;
|
604
529
|
return alarmDispatchers.combAlarmData({
|
605
530
|
alarmdata: sendAl
|
606
531
|
});
|
607
532
|
|
608
|
-
case
|
609
|
-
_yield$alarmDispatche2 =
|
533
|
+
case 18:
|
534
|
+
_yield$alarmDispatche2 = _context8.sent;
|
610
535
|
eqFlag = _yield$alarmDispatche2.eqFlag;
|
611
536
|
alarmlist = _yield$alarmDispatche2.alarmlist;
|
612
537
|
|
@@ -626,23 +551,23 @@ var Alarm = /*#__PURE__*/function () {
|
|
626
551
|
}
|
627
552
|
}
|
628
553
|
|
629
|
-
|
554
|
+
_context8.next = 27;
|
630
555
|
break;
|
631
556
|
|
632
|
-
case
|
633
|
-
|
634
|
-
|
557
|
+
case 24:
|
558
|
+
_context8.prev = 24;
|
559
|
+
_context8.t0 = _context8["catch"](15);
|
635
560
|
|
636
|
-
|
561
|
+
_componentTopologyUtils.rlog.error('告警发送异常', _context8.t0);
|
637
562
|
|
638
|
-
case
|
563
|
+
case 27:
|
639
564
|
case "end":
|
640
|
-
return
|
565
|
+
return _context8.stop();
|
641
566
|
}
|
642
|
-
},
|
567
|
+
}, _callee8, this, [[15, 24]]);
|
643
568
|
}));
|
644
569
|
|
645
|
-
function handleAlarmEvent(
|
570
|
+
function handleAlarmEvent(_x6) {
|
646
571
|
return _handleAlarmEvent.apply(this, arguments);
|
647
572
|
}
|
648
573
|
|
@@ -11,7 +11,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
11
11
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
13
13
|
|
14
|
-
var
|
14
|
+
var _componentTopologyUtils = require("@riil-frontend/component-topology-utils");
|
15
15
|
|
16
16
|
var _ResourceInfoDisplay = require("../../constants/ResourceInfoDisplay");
|
17
17
|
|
@@ -23,6 +23,8 @@ var _DictCache = _interopRequireDefault(require("./cache/DictCache"));
|
|
23
23
|
|
24
24
|
var _nodeNameVisibleUtil = require("./utils/nodeNameVisibleUtil");
|
25
25
|
|
26
|
+
var _ciRefAttributeTranslateUtil = require("../../utils/ciRefAttributeTranslateUtil");
|
27
|
+
|
26
28
|
function isGraphField(item) {
|
27
29
|
return item.type === 'graph';
|
28
30
|
}
|
@@ -346,7 +348,7 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
346
348
|
}); // 翻译引用属性
|
347
349
|
|
348
350
|
_context.next = 4;
|
349
|
-
return
|
351
|
+
return (0, _ciRefAttributeTranslateUtil.translateCisRefAttributeName)(ciDatas);
|
350
352
|
|
351
353
|
case 4:
|
352
354
|
ciDatas = _context.sent;
|
@@ -449,7 +451,7 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
449
451
|
});
|
450
452
|
});
|
451
453
|
} else {
|
452
|
-
|
454
|
+
_componentTopologyUtils.rlog.warn("\u63A8\u9001\u5C5E\u6027\u6307\u6807\u6570\u636E\uFF1A\u672A\u67E5\u8BE2\u5230ciType " + ciType, ciData);
|
453
455
|
}
|
454
456
|
});
|
455
457
|
refIds = Object.keys(refIdMap);
|
@@ -474,8 +476,10 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
474
476
|
var refCi = refCiMap[refAttrs.id];
|
475
477
|
|
476
478
|
if (refCi) {
|
479
|
+
// 引用ci名称获取规则:如果ci是树形结构(例如区域),取 tree_name_path;非树形,取display_name
|
480
|
+
var displayName = refCi.attributes.tree_name_path || refCi.attributes.display_name;
|
477
481
|
attributeMap[refAttrs.attrCode + "_object"] = {
|
478
|
-
displayName:
|
482
|
+
displayName: displayName
|
479
483
|
};
|
480
484
|
}
|
481
485
|
});
|
@@ -535,7 +539,9 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
535
539
|
return (0, _extends2["default"])({}, item, {
|
536
540
|
tags: tags
|
537
541
|
});
|
538
|
-
});
|
542
|
+
});
|
543
|
+
|
544
|
+
_componentTopologyUtils.rlog.debug('推送标注 => ht', elementTagsAndTips);
|
539
545
|
|
540
546
|
var htTopo = topo.getHtTopo();
|
541
547
|
|
@@ -543,7 +549,13 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
543
549
|
var _topo$historyManager, _topo$historyManager2;
|
544
550
|
|
545
551
|
(_topo$historyManager = topo.historyManager) === null || _topo$historyManager === void 0 ? void 0 : _topo$historyManager.setDisabled(true, '加载标注');
|
546
|
-
|
552
|
+
|
553
|
+
try {
|
554
|
+
htTopo.loadTagAndTip(JSON.parse(JSON.stringify(elementTagsAndTips)));
|
555
|
+
} catch (error) {
|
556
|
+
_componentTopologyUtils.rlog.error('推送标注 => ht 失败', error);
|
557
|
+
}
|
558
|
+
|
547
559
|
(_topo$historyManager2 = topo.historyManager) === null || _topo$historyManager2 === void 0 ? void 0 : _topo$historyManager2.setDisabled(false, '加载标注');
|
548
560
|
}
|
549
561
|
}
|
@@ -7,7 +7,7 @@ exports["default"] = void 0;
|
|
7
7
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
9
9
|
|
10
|
-
var
|
10
|
+
var _componentTopologyUtils = require("@riil-frontend/component-topology-utils");
|
11
11
|
|
12
12
|
var ht = window.ht;
|
13
13
|
|
@@ -20,7 +20,7 @@ var HistoryManager = /*#__PURE__*/function () {
|
|
20
20
|
this.htHistoryManager = htHistoryManager;
|
21
21
|
htHistoryManager.clear();
|
22
22
|
|
23
|
-
|
23
|
+
_componentTopologyUtils.rlog.info('HistoryManager 初始化', htHistoryManager);
|
24
24
|
|
25
25
|
this.updateStore = this.updateStore.bind(this);
|
26
26
|
this.init();
|
@@ -70,7 +70,7 @@ var HistoryManager = /*#__PURE__*/function () {
|
|
70
70
|
_proto.setDisabled = function setDisabled(disabled, message) {
|
71
71
|
this.htHistoryManager.setDisabled(disabled);
|
72
72
|
|
73
|
-
|
73
|
+
_componentTopologyUtils.rlog.debug("HistoryManager.setDisabled " + (disabled ? '禁用' : '启用') + (message ? "(" + message + ")" : '') + ": " + this.toString(), this.getHistories());
|
74
74
|
};
|
75
75
|
|
76
76
|
_proto.beginTransaction = function beginTransaction() {
|
@@ -105,7 +105,7 @@ var HistoryManager = /*#__PURE__*/function () {
|
|
105
105
|
});
|
106
106
|
});
|
107
107
|
|
108
|
-
|
108
|
+
_componentTopologyUtils.rlog.debug("HistoryManager.beginTransaction: " + this.toString(), this.getHistories());
|
109
109
|
};
|
110
110
|
|
111
111
|
_proto.addStoreHistory = function addStoreHistory() {
|
@@ -131,7 +131,7 @@ var HistoryManager = /*#__PURE__*/function () {
|
|
131
131
|
data: storeChanged
|
132
132
|
});
|
133
133
|
|
134
|
-
|
134
|
+
_componentTopologyUtils.rlog.debug('HistoryManager.addStoreHistory', storeChanged);
|
135
135
|
}
|
136
136
|
|
137
137
|
this.storeHistory = [];
|
@@ -141,7 +141,7 @@ var HistoryManager = /*#__PURE__*/function () {
|
|
141
141
|
this.addStoreHistory();
|
142
142
|
this.htHistoryManager.endTransaction();
|
143
143
|
|
144
|
-
|
144
|
+
_componentTopologyUtils.rlog.debug("HistoryManager.endTransaction: " + this.toString(), this.getHistories());
|
145
145
|
};
|
146
146
|
|
147
147
|
_proto.clear = function clear() {
|
@@ -185,7 +185,7 @@ var HistoryManager = /*#__PURE__*/function () {
|
|
185
185
|
return;
|
186
186
|
}
|
187
187
|
|
188
|
-
|
188
|
+
_componentTopologyUtils.rlog.debug('HistoryManager.undo', this.getHistories(), this.getHistoryIndex());
|
189
189
|
|
190
190
|
var storeHistory = this.getCurrentStoreHistory(true);
|
191
191
|
|
@@ -204,7 +204,7 @@ var HistoryManager = /*#__PURE__*/function () {
|
|
204
204
|
_proto.redo = function redo() {
|
205
205
|
var _this4 = this;
|
206
206
|
|
207
|
-
|
207
|
+
_componentTopologyUtils.rlog.debug('HistoryManager.redo', this.getHistories(), this.getHistoryIndex());
|
208
208
|
|
209
209
|
var storeHistory = this.getCurrentStoreHistory(false);
|
210
210
|
|
@@ -7,7 +7,7 @@ exports["default"] = void 0;
|
|
7
7
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
9
9
|
|
10
|
-
var
|
10
|
+
var _componentTopologyUtils = require("@riil-frontend/component-topology-utils");
|
11
11
|
|
12
12
|
var _useHtElements = _interopRequireDefault(require("../common/hooks/useHtElements"));
|
13
13
|
|
@@ -33,7 +33,7 @@ var SelectionModel = /*#__PURE__*/function () {
|
|
33
33
|
|
34
34
|
_this.updateStoreSelection(selectionArr);
|
35
35
|
} catch (e) {
|
36
|
-
|
36
|
+
_componentTopologyUtils.rlog.error('updateSelection error', e);
|
37
37
|
}
|
38
38
|
};
|
39
39
|
|
@@ -103,7 +103,7 @@ var SelectionModel = /*#__PURE__*/function () {
|
|
103
103
|
};
|
104
104
|
|
105
105
|
_proto.handleSelectionChange = function handleSelectionChange(e) {
|
106
|
-
|
106
|
+
_componentTopologyUtils.rlog.info('Selection handleSelectionChange', e);
|
107
107
|
|
108
108
|
this.updateSelection();
|
109
109
|
};
|
@@ -130,7 +130,7 @@ var SelectionModel = /*#__PURE__*/function () {
|
|
130
130
|
};
|
131
131
|
|
132
132
|
_proto.initListener = function initListener() {
|
133
|
-
|
133
|
+
_componentTopologyUtils.rlog.info('Selection initListener');
|
134
134
|
|
135
135
|
var dataModel = this.topo.getDataModel();
|
136
136
|
var selectionModel = this.topo.getSelectionModel();
|
@@ -143,7 +143,7 @@ var SelectionModel = /*#__PURE__*/function () {
|
|
143
143
|
return;
|
144
144
|
}
|
145
145
|
|
146
|
-
|
146
|
+
_componentTopologyUtils.rlog.info('Selection removeListener');
|
147
147
|
|
148
148
|
var dataModel = this.topo.getDataModel();
|
149
149
|
var selectionModel = this.topo.getSelectionModel();
|