@riil-frontend/component-topology 12.0.0-dev.4 → 12.0.0-dev.41
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 +59 -4
- 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 +17 -3
- 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/ht/useHtDataPropertyChangeListener.js +1 -1
- package/es/core/hooks/useAlarm.js +131 -81
- package/es/core/hooks/useCiAttributeChange.js +1 -1
- 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 +69 -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 +46 -21
- 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/ResourceOverview/index.module.scss +8 -0
- 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 +61 -4
- 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/ht/useHtDataPropertyChangeListener.js +1 -3
- package/lib/core/hooks/useAlarm.js +130 -79
- package/lib/core/hooks/useCiAttributeChange.js +1 -1
- 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 +76 -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 +48 -21
- 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/ResourceOverview/index.module.scss +8 -0
- 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/es/core/models/Alarm.js
CHANGED
@@ -2,7 +2,7 @@ import _Dialog from "@alifd/next/es/dialog";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
4
4
|
import topoService from '@riil-frontend/component-topology-common/es/services/topo';
|
5
|
-
import rlog from '@riil-frontend/component-topology-utils
|
5
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
6
6
|
import { isAvailableArray } from '@riil-frontend/utils';
|
7
7
|
|
8
8
|
var Alarm = /*#__PURE__*/function () {
|
@@ -83,8 +83,7 @@ var Alarm = /*#__PURE__*/function () {
|
|
83
83
|
}
|
84
84
|
|
85
85
|
rlog.info('Alarm.open 打开告警通道', id);
|
86
|
-
this.openTopoAlarm(id);
|
87
|
-
|
86
|
+
this.openTopoAlarm(id);
|
88
87
|
this.hmGetTopoAlarmByDoc(id);
|
89
88
|
}
|
90
89
|
/**
|
@@ -211,83 +210,6 @@ var Alarm = /*#__PURE__*/function () {
|
|
211
210
|
}
|
212
211
|
|
213
212
|
return hmGetTopoAlarmByDoc;
|
214
|
-
}();
|
215
|
-
|
216
|
-
_proto.hmGetTopoAlarm = /*#__PURE__*/function () {
|
217
|
-
var _hmGetTopoAlarm = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(id) {
|
218
|
-
var mainCiIdList, endTime, startTime, parms, result;
|
219
|
-
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
220
|
-
while (1) switch (_context3.prev = _context3.next) {
|
221
|
-
case 0:
|
222
|
-
mainCiIdList = this.topo.dataModel.getDatas().filter(function (ci) {
|
223
|
-
return !!ci.operation;
|
224
|
-
}) // 过滤掉权限
|
225
|
-
.map(function (ci) {
|
226
|
-
return ci.id;
|
227
|
-
});
|
228
|
-
|
229
|
-
if (!(mainCiIdList.length === 0)) {
|
230
|
-
_context3.next = 4;
|
231
|
-
break;
|
232
|
-
}
|
233
|
-
|
234
|
-
this.updateState({
|
235
|
-
alarmData: [],
|
236
|
-
alarmPanelIsOpen: false
|
237
|
-
});
|
238
|
-
return _context3.abrupt("return");
|
239
|
-
|
240
|
-
case 4:
|
241
|
-
//rlog.debug("获取告警列表", mainCiIdList);
|
242
|
-
endTime = null; // new Date().valueOf();
|
243
|
-
|
244
|
-
startTime = null; // moment().subtract(1, "months").valueOf();
|
245
|
-
|
246
|
-
parms = {
|
247
|
-
mainCiIdList: mainCiIdList,
|
248
|
-
alertStatusList: ['toDeal', 'dealing'],
|
249
|
-
pageNum: 1,
|
250
|
-
pageSize: 10,
|
251
|
-
sortField: 'alertLevel',
|
252
|
-
alertLevelList: [],
|
253
|
-
orders: [{
|
254
|
-
property: 'alertLevel',
|
255
|
-
direction: 'ASC'
|
256
|
-
}, {
|
257
|
-
property: 'createTime',
|
258
|
-
direction: 'DESC'
|
259
|
-
}],
|
260
|
-
createTime: {
|
261
|
-
startTime: startTime,
|
262
|
-
endTime: endTime
|
263
|
-
}
|
264
|
-
};
|
265
|
-
_context3.next = 9;
|
266
|
-
return topoService.getAlarmByIds(parms);
|
267
|
-
|
268
|
-
case 9:
|
269
|
-
result = _context3.sent;
|
270
|
-
rlog.debug('getAlarmById-result', result); // if (alarmIsOpened) {
|
271
|
-
// //this.topo.loadAlarm(result.datas);
|
272
|
-
// this.handleAlarmEvent({ type: "alarm", data: result.datas });
|
273
|
-
// }
|
274
|
-
// this.updateState({
|
275
|
-
// alarmData: result.datas.length > 0 ? result.datas : [],
|
276
|
-
// alarmPanelIsOpen: result.datas.length > 0,
|
277
|
-
// });
|
278
|
-
|
279
|
-
case 11:
|
280
|
-
case "end":
|
281
|
-
return _context3.stop();
|
282
|
-
}
|
283
|
-
}, _callee3, this);
|
284
|
-
}));
|
285
|
-
|
286
|
-
function hmGetTopoAlarm(_x2) {
|
287
|
-
return _hmGetTopoAlarm.apply(this, arguments);
|
288
|
-
}
|
289
|
-
|
290
|
-
return hmGetTopoAlarm;
|
291
213
|
}()
|
292
214
|
/**
|
293
215
|
* 直接装载告警数据(可装载mock列表)
|
@@ -298,9 +220,9 @@ var Alarm = /*#__PURE__*/function () {
|
|
298
220
|
_proto.setAlarmDataByMock =
|
299
221
|
/*#__PURE__*/
|
300
222
|
function () {
|
301
|
-
var _setAlarmDataByMock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
302
|
-
return _regeneratorRuntime.wrap(function
|
303
|
-
while (1) switch (
|
223
|
+
var _setAlarmDataByMock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(datas) {
|
224
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
225
|
+
while (1) switch (_context3.prev = _context3.next) {
|
304
226
|
case 0:
|
305
227
|
this.updateState({
|
306
228
|
alarmData: datas.length > 0 ? datas : [],
|
@@ -309,12 +231,12 @@ var Alarm = /*#__PURE__*/function () {
|
|
309
231
|
|
310
232
|
case 1:
|
311
233
|
case "end":
|
312
|
-
return
|
234
|
+
return _context3.stop();
|
313
235
|
}
|
314
|
-
},
|
236
|
+
}, _callee3, this);
|
315
237
|
}));
|
316
238
|
|
317
|
-
function setAlarmDataByMock(
|
239
|
+
function setAlarmDataByMock(_x2) {
|
318
240
|
return _setAlarmDataByMock.apply(this, arguments);
|
319
241
|
}
|
320
242
|
|
@@ -329,10 +251,10 @@ var Alarm = /*#__PURE__*/function () {
|
|
329
251
|
_proto.switchAlarmPopPanel =
|
330
252
|
/*#__PURE__*/
|
331
253
|
function () {
|
332
|
-
var _switchAlarmPopPanel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
254
|
+
var _switchAlarmPopPanel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(flag) {
|
333
255
|
var topoDispatchers;
|
334
|
-
return _regeneratorRuntime.wrap(function
|
335
|
-
while (1) switch (
|
256
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
257
|
+
while (1) switch (_context4.prev = _context4.next) {
|
336
258
|
case 0:
|
337
259
|
// console.log("switchAlarmPopPanel", flag);
|
338
260
|
topoDispatchers = this.topo.store.getModelDispatchers('topoAlarm');
|
@@ -342,12 +264,12 @@ var Alarm = /*#__PURE__*/function () {
|
|
342
264
|
|
343
265
|
case 2:
|
344
266
|
case "end":
|
345
|
-
return
|
267
|
+
return _context4.stop();
|
346
268
|
}
|
347
|
-
},
|
269
|
+
}, _callee4, this);
|
348
270
|
}));
|
349
271
|
|
350
|
-
function switchAlarmPopPanel(
|
272
|
+
function switchAlarmPopPanel(_x3) {
|
351
273
|
return _switchAlarmPopPanel.apply(this, arguments);
|
352
274
|
}
|
353
275
|
|
@@ -363,21 +285,21 @@ var Alarm = /*#__PURE__*/function () {
|
|
363
285
|
_proto.openTopoAlarm =
|
364
286
|
/*#__PURE__*/
|
365
287
|
function () {
|
366
|
-
var _openTopoAlarm = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
288
|
+
var _openTopoAlarm = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(id) {
|
367
289
|
var _this$getState2, alarmOpening, topoAlarmIsOpen, alarmDispatchers;
|
368
290
|
|
369
|
-
return _regeneratorRuntime.wrap(function
|
370
|
-
while (1) switch (
|
291
|
+
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
292
|
+
while (1) switch (_context5.prev = _context5.next) {
|
371
293
|
case 0:
|
372
294
|
// 如果当前拓扑图开启中或已开启则退出
|
373
295
|
_this$getState2 = this.getState(), alarmOpening = _this$getState2.alarmOpening, topoAlarmIsOpen = _this$getState2.topoAlarmIsOpen;
|
374
296
|
|
375
297
|
if (!(this.currentTopoId === id && (topoAlarmIsOpen || alarmOpening))) {
|
376
|
-
|
298
|
+
_context5.next = 3;
|
377
299
|
break;
|
378
300
|
}
|
379
301
|
|
380
|
-
return
|
302
|
+
return _context5.abrupt("return");
|
381
303
|
|
382
304
|
case 3:
|
383
305
|
this.currentTopoId = id;
|
@@ -385,27 +307,27 @@ var Alarm = /*#__PURE__*/function () {
|
|
385
307
|
alarmOpening: true
|
386
308
|
});
|
387
309
|
alarmDispatchers = this.topo.store.getModelDispatchers('topoAlarm');
|
388
|
-
|
310
|
+
_context5.next = 8;
|
389
311
|
return alarmDispatchers.resetAlarmDoc();
|
390
312
|
|
391
313
|
case 8:
|
392
|
-
|
393
|
-
|
314
|
+
_context5.prev = 8;
|
315
|
+
_context5.next = 11;
|
394
316
|
return this.topo.serverApi.openTopoAlarm(id);
|
395
317
|
|
396
318
|
case 11:
|
397
|
-
this.secretKey =
|
319
|
+
this.secretKey = _context5.sent;
|
398
320
|
rlog.info('openTopoAlarm 打开拓扑告警推送-------------------开始');
|
399
321
|
this.updateState({
|
400
322
|
alarmOpening: false,
|
401
323
|
alarmIsOpened: true
|
402
324
|
});
|
403
|
-
|
325
|
+
_context5.next = 20;
|
404
326
|
break;
|
405
327
|
|
406
328
|
case 16:
|
407
|
-
|
408
|
-
|
329
|
+
_context5.prev = 16;
|
330
|
+
_context5.t0 = _context5["catch"](8);
|
409
331
|
rlog.error('打开拓扑告警推送 失败');
|
410
332
|
this.updateState({
|
411
333
|
alarmOpening: false
|
@@ -413,12 +335,12 @@ var Alarm = /*#__PURE__*/function () {
|
|
413
335
|
|
414
336
|
case 20:
|
415
337
|
case "end":
|
416
|
-
return
|
338
|
+
return _context5.stop();
|
417
339
|
}
|
418
|
-
},
|
340
|
+
}, _callee5, this, [[8, 16]]);
|
419
341
|
}));
|
420
342
|
|
421
|
-
function openTopoAlarm(
|
343
|
+
function openTopoAlarm(_x4) {
|
422
344
|
return _openTopoAlarm.apply(this, arguments);
|
423
345
|
}
|
424
346
|
|
@@ -434,21 +356,21 @@ var Alarm = /*#__PURE__*/function () {
|
|
434
356
|
_proto.closeTopoAlarm =
|
435
357
|
/*#__PURE__*/
|
436
358
|
function () {
|
437
|
-
var _closeTopoAlarm = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
359
|
+
var _closeTopoAlarm = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(id) {
|
438
360
|
var _this$getState3, alarmIsOpened, alarmOpening;
|
439
361
|
|
440
|
-
return _regeneratorRuntime.wrap(function
|
441
|
-
while (1) switch (
|
362
|
+
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
363
|
+
while (1) switch (_context6.prev = _context6.next) {
|
442
364
|
case 0:
|
443
365
|
// 如果未开启则退出
|
444
366
|
_this$getState3 = this.getState(), alarmIsOpened = _this$getState3.alarmIsOpened, alarmOpening = _this$getState3.alarmOpening;
|
445
367
|
|
446
368
|
if (!(!alarmIsOpened && !alarmOpening)) {
|
447
|
-
|
369
|
+
_context6.next = 3;
|
448
370
|
break;
|
449
371
|
}
|
450
372
|
|
451
|
-
return
|
373
|
+
return _context6.abrupt("return");
|
452
374
|
|
453
375
|
case 3:
|
454
376
|
this.currentTopoId = null;
|
@@ -458,17 +380,17 @@ var Alarm = /*#__PURE__*/function () {
|
|
458
380
|
alarmOpening: false,
|
459
381
|
alarmPanelIsOpen: false
|
460
382
|
});
|
461
|
-
|
383
|
+
_context6.next = 8;
|
462
384
|
return this.topo.serverApi.closeTopoAlarm(id, this.secretKey);
|
463
385
|
|
464
386
|
case 8:
|
465
387
|
case "end":
|
466
|
-
return
|
388
|
+
return _context6.stop();
|
467
389
|
}
|
468
|
-
},
|
390
|
+
}, _callee6, this);
|
469
391
|
}));
|
470
392
|
|
471
|
-
function closeTopoAlarm(
|
393
|
+
function closeTopoAlarm(_x5) {
|
472
394
|
return _closeTopoAlarm.apply(this, arguments);
|
473
395
|
}
|
474
396
|
|
@@ -493,20 +415,20 @@ var Alarm = /*#__PURE__*/function () {
|
|
493
415
|
_proto.restart =
|
494
416
|
/*#__PURE__*/
|
495
417
|
function () {
|
496
|
-
var _restart = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
418
|
+
var _restart = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7() {
|
497
419
|
var id;
|
498
|
-
return _regeneratorRuntime.wrap(function
|
499
|
-
while (1) switch (
|
420
|
+
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
421
|
+
while (1) switch (_context7.prev = _context7.next) {
|
500
422
|
case 0:
|
501
423
|
id = this.currentTopoId;
|
502
|
-
|
424
|
+
_context7.next = 3;
|
503
425
|
return this.openTopoAlarm(id);
|
504
426
|
|
505
427
|
case 3:
|
506
428
|
case "end":
|
507
|
-
return
|
429
|
+
return _context7.stop();
|
508
430
|
}
|
509
|
-
},
|
431
|
+
}, _callee7, this);
|
510
432
|
}));
|
511
433
|
|
512
434
|
function restart() {
|
@@ -523,26 +445,28 @@ var Alarm = /*#__PURE__*/function () {
|
|
523
445
|
_proto.handleAlarmEvent =
|
524
446
|
/*#__PURE__*/
|
525
447
|
function () {
|
526
|
-
var _handleAlarmEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
448
|
+
var _handleAlarmEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(alertData) {
|
527
449
|
var _this$getState4, alarmIsOpened, resAndMetrics, resIdsList, nodeIdsList, linkIdsList, alarmDispatchers, sendAl, idsList, operations, _yield$alarmDispatche2, eqFlag, alarmlist, _this$topo$viewProps, _this$topo$viewProps2;
|
528
450
|
|
529
|
-
return _regeneratorRuntime.wrap(function
|
530
|
-
while (1) switch (
|
451
|
+
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
452
|
+
while (1) switch (_context8.prev = _context8.next) {
|
531
453
|
case 0:
|
532
454
|
_this$getState4 = this.getState(), alarmIsOpened = _this$getState4.alarmIsOpened;
|
533
455
|
resAndMetrics = this.topo.store.getState().topoMod.resAndMetrics;
|
534
456
|
resIdsList = resAndMetrics.resIdsList, nodeIdsList = resAndMetrics.nodeIdsList, linkIdsList = resAndMetrics.linkIdsList;
|
535
457
|
alarmDispatchers = this.topo.store.getModelDispatchers('topoAlarm'); // 添加事件
|
536
|
-
|
458
|
+
|
459
|
+
console.log("handleAlarmEvent-接收到推送的原始告警信息", alertData);
|
537
460
|
|
538
461
|
if (!(isAvailableArray(alertData) && isAvailableArray(resIdsList))) {
|
539
|
-
|
462
|
+
_context8.next = 25;
|
540
463
|
break;
|
541
464
|
}
|
542
465
|
|
543
466
|
sendAl = [];
|
544
467
|
idsList = [].concat(nodeIdsList, linkIdsList);
|
545
|
-
operations = [];
|
468
|
+
operations = []; // console.log('idsList---------', idsList)
|
469
|
+
|
546
470
|
idsList.forEach(function (idItem) {
|
547
471
|
if (idItem.operation === null) {
|
548
472
|
operations.push(idItem.ciId);
|
@@ -552,6 +476,7 @@ var Alarm = /*#__PURE__*/function () {
|
|
552
476
|
var _item$resourceId;
|
553
477
|
|
554
478
|
var ciId = (_item$resourceId = item.resourceId) !== null && _item$resourceId !== void 0 ? _item$resourceId : item.ciId;
|
479
|
+
var isSub = false;
|
555
480
|
var obj = {
|
556
481
|
id: ciId,
|
557
482
|
level: item.alertLevel,
|
@@ -560,7 +485,8 @@ var Alarm = /*#__PURE__*/function () {
|
|
560
485
|
obj: item,
|
561
486
|
info: item.alertType,
|
562
487
|
ciCode: item === null || item === void 0 ? void 0 : item.ciCode,
|
563
|
-
ruleId: item === null || item === void 0 ? void 0 : item.ruleId
|
488
|
+
ruleId: item === null || item === void 0 ? void 0 : item.ruleId,
|
489
|
+
isSub: isSub
|
564
490
|
};
|
565
491
|
|
566
492
|
if (resIdsList.indexOf(ciId) >= 0 && operations.indexOf(ciId) < 0) {
|
@@ -569,19 +495,19 @@ var Alarm = /*#__PURE__*/function () {
|
|
569
495
|
}); // console.log("before-combAlarmData", sendAl, idsList);
|
570
496
|
|
571
497
|
if (!(sendAl.length > 0)) {
|
572
|
-
|
498
|
+
_context8.next = 25;
|
573
499
|
break;
|
574
500
|
}
|
575
501
|
|
576
502
|
rlog.debug('过滤掉非本拓扑的告警信息 告警开关-推送告警到ht-alarmIsOpened-sendAl', alarmIsOpened, sendAl);
|
577
|
-
|
578
|
-
|
503
|
+
_context8.prev = 13;
|
504
|
+
_context8.next = 16;
|
579
505
|
return alarmDispatchers.combAlarmData({
|
580
506
|
alarmdata: sendAl
|
581
507
|
});
|
582
508
|
|
583
|
-
case
|
584
|
-
_yield$alarmDispatche2 =
|
509
|
+
case 16:
|
510
|
+
_yield$alarmDispatche2 = _context8.sent;
|
585
511
|
eqFlag = _yield$alarmDispatche2.eqFlag;
|
586
512
|
alarmlist = _yield$alarmDispatche2.alarmlist;
|
587
513
|
|
@@ -601,22 +527,22 @@ var Alarm = /*#__PURE__*/function () {
|
|
601
527
|
}
|
602
528
|
}
|
603
529
|
|
604
|
-
|
530
|
+
_context8.next = 25;
|
605
531
|
break;
|
606
532
|
|
607
|
-
case
|
608
|
-
|
609
|
-
|
610
|
-
rlog.error('告警发送异常',
|
533
|
+
case 22:
|
534
|
+
_context8.prev = 22;
|
535
|
+
_context8.t0 = _context8["catch"](13);
|
536
|
+
rlog.error('告警发送异常', _context8.t0);
|
611
537
|
|
612
|
-
case
|
538
|
+
case 25:
|
613
539
|
case "end":
|
614
|
-
return
|
540
|
+
return _context8.stop();
|
615
541
|
}
|
616
|
-
},
|
542
|
+
}, _callee8, this, [[13, 22]]);
|
617
543
|
}));
|
618
544
|
|
619
|
-
function handleAlarmEvent(
|
545
|
+
function handleAlarmEvent(_x6) {
|
620
546
|
return _handleAlarmEvent.apply(this, arguments);
|
621
547
|
}
|
622
548
|
|
@@ -1,12 +1,13 @@
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
4
|
-
import rlog from '@riil-frontend/component-topology-utils
|
4
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
5
5
|
import { DEFAULT_NODE_TAG_COMMON_CONFIG, DEFAULT_TIP_COMMON_CONFIG } from "../../constants/ResourceInfoDisplay";
|
6
6
|
import { isMonitoring } from "../utils/manageStatusUtil";
|
7
7
|
import AttributeFormatter from "./attributeFormatter";
|
8
8
|
import DictCache from "./cache/DictCache";
|
9
9
|
import { getNodesNameVisible as _getNodesNameVisible, updateNodesNameVisible as _updateNodesNameVisible } from "./utils/nodeNameVisibleUtil";
|
10
|
+
import { translateCisRefAttributeName } from "../../utils/ciRefAttributeTranslateUtil";
|
10
11
|
|
11
12
|
function isGraphField(item) {
|
12
13
|
return item.type === 'graph';
|
@@ -331,7 +332,7 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
331
332
|
}); // 翻译引用属性
|
332
333
|
|
333
334
|
_context.next = 4;
|
334
|
-
return
|
335
|
+
return translateCisRefAttributeName(ciDatas);
|
335
336
|
|
336
337
|
case 4:
|
337
338
|
ciDatas = _context.sent;
|
@@ -461,8 +462,10 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
461
462
|
var refCi = refCiMap[refAttrs.id];
|
462
463
|
|
463
464
|
if (refCi) {
|
465
|
+
// 引用ci名称获取规则:如果ci是树形结构(例如区域),取 tree_name_path;非树形,取display_name
|
466
|
+
var displayName = refCi.attributes.tree_name_path || refCi.attributes.display_name;
|
464
467
|
attributeMap[refAttrs.attrCode + "_object"] = {
|
465
|
-
displayName:
|
468
|
+
displayName: displayName
|
466
469
|
};
|
467
470
|
}
|
468
471
|
});
|
@@ -522,15 +525,21 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
522
525
|
return _extends({}, item, {
|
523
526
|
tags: tags
|
524
527
|
});
|
525
|
-
});
|
526
|
-
|
528
|
+
});
|
529
|
+
rlog.debug('推送标注 => ht', elementTagsAndTips);
|
527
530
|
var htTopo = topo.getHtTopo();
|
528
531
|
|
529
532
|
if (htTopo) {
|
530
533
|
var _topo$historyManager, _topo$historyManager2;
|
531
534
|
|
532
535
|
(_topo$historyManager = topo.historyManager) === null || _topo$historyManager === void 0 ? void 0 : _topo$historyManager.setDisabled(true, '加载标注');
|
533
|
-
|
536
|
+
|
537
|
+
try {
|
538
|
+
htTopo.loadTagAndTip(JSON.parse(JSON.stringify(elementTagsAndTips)));
|
539
|
+
} catch (error) {
|
540
|
+
rlog.error('推送标注 => ht 失败', error);
|
541
|
+
}
|
542
|
+
|
534
543
|
(_topo$historyManager2 = topo.historyManager) === null || _topo$historyManager2 === void 0 ? void 0 : _topo$historyManager2.setDisabled(false, '加载标注');
|
535
544
|
}
|
536
545
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
|
-
import rlog from '@riil-frontend/component-topology-utils
|
2
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
3
3
|
import useHtElements from "../common/hooks/useHtElements";
|
4
4
|
import ignoreList from "./selection/ignoreList";
|
5
5
|
|
@@ -2,7 +2,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
4
4
|
import { setRequest } from '@riil-frontend/component-topology-utils';
|
5
|
-
import rlog from '@riil-frontend/component-topology-utils
|
5
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
6
6
|
import { cloneDeep } from 'lodash';
|
7
7
|
import topoService from "../services/topo";
|
8
8
|
import CiTypeCache from "./cache/CiTypeCache";
|
@@ -24,7 +24,7 @@ import ElementTagTipConfig from "./tagstips/ElementTagTipConfig";
|
|
24
24
|
import SelectionModel from "./SelectionModel";
|
25
25
|
import CiCache from "./cache/CiCache"; // eslint-disable-next-line no-undef
|
26
26
|
|
27
|
-
var version = typeof "12.0.0-dev.
|
27
|
+
var version = typeof "12.0.0-dev.41" === 'string' ? "12.0.0-dev.41" : null;
|
28
28
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
29
29
|
/**
|
30
30
|
* 拓扑显示和编辑
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import rlog from '@riil-frontend/component-topology-utils
|
1
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
2
2
|
import attributeTransform from "./formatter/attributeTransform";
|
3
3
|
import metricTransform from "./formatter/metricTransform";
|
4
4
|
import ciTypeAttrTransform from "./formatter/ciTypeAttrTransform";
|
@@ -11,7 +11,7 @@ declare class CiCache {
|
|
11
11
|
* @param ids {string[]}
|
12
12
|
* @returns {Promise<Object>}
|
13
13
|
*/
|
14
|
-
load(ids: string[]): Promise<Object>;
|
14
|
+
load(ids: string[], refreshCiCache?: boolean): Promise<Object>;
|
15
15
|
getCi(id: string): Object;
|
16
16
|
}
|
17
17
|
declare const _default: CiCache;
|
@@ -23,14 +23,14 @@ var CiCache = /*#__PURE__*/function () {
|
|
23
23
|
_proto.load =
|
24
24
|
/*#__PURE__*/
|
25
25
|
function () {
|
26
|
-
var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(ids) {
|
26
|
+
var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(ids, refreshCiCache) {
|
27
27
|
var _this = this;
|
28
28
|
|
29
29
|
var unloadCiIds, cis, map;
|
30
30
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
31
31
|
while (1) switch (_context.prev = _context.next) {
|
32
32
|
case 0:
|
33
|
-
unloadCiIds = ids.filter(function (id) {
|
33
|
+
unloadCiIds = refreshCiCache === true ? ids : ids.filter(function (id) {
|
34
34
|
return !_this.ciMap[id];
|
35
35
|
});
|
36
36
|
|
@@ -62,7 +62,7 @@ var CiCache = /*#__PURE__*/function () {
|
|
62
62
|
}, _callee, this);
|
63
63
|
}));
|
64
64
|
|
65
|
-
function load(_x) {
|
65
|
+
function load(_x, _x2) {
|
66
66
|
return _load.apply(this, arguments);
|
67
67
|
}
|
68
68
|
|
@@ -3,7 +3,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
4
4
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
5
5
|
import topoService from '@riil-frontend/component-topology-common/es/services/topo';
|
6
|
-
import rlog from '@riil-frontend/component-topology-utils
|
6
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
7
7
|
import keyBy from 'lodash/keyBy';
|
8
8
|
/**
|
9
9
|
* Ci类型属性、指标缓存
|
@@ -106,6 +106,10 @@ var CiTypeCache = /*#__PURE__*/function () {
|
|
106
106
|
this.ciTypeMap = cache;
|
107
107
|
};
|
108
108
|
|
109
|
+
_proto.getCiTypeMap = function getCiTypeMap() {
|
110
|
+
return this.ciTypeMap;
|
111
|
+
};
|
112
|
+
|
109
113
|
_proto.getCiType = function getCiType(typeCode) {
|
110
114
|
return this.ciTypeMap[typeCode];
|
111
115
|
};
|
@@ -2,7 +2,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
3
3
|
import { dictFormat } from '@riil-frontend/utils';
|
4
4
|
import * as modelService from '@riil-frontend/component-topology-common/es/services/model';
|
5
|
-
import rlog from '@riil-frontend/component-topology-utils
|
5
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
6
6
|
/**
|
7
7
|
* 数据字典缓存
|
8
8
|
*/
|
@@ -2,7 +2,7 @@ import _Message from "@alifd/next/es/message";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
4
4
|
import topoService from '@riil-frontend/component-topology-common/es/services/topo';
|
5
|
-
import rlog from '@riil-frontend/component-topology-utils
|
5
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
6
6
|
export default function (topo) {
|
7
7
|
var resourceUrlMap = {};
|
8
8
|
var currentId = null;
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
4
4
|
import keyBy from 'lodash/keyBy';
|
5
|
-
import rlog from '@riil-frontend/component-topology-utils
|
5
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
6
6
|
import { getLinkMtCodes, getMtCodeCiTypeMap, getNodeMtCodes } from "./utils";
|
7
7
|
import { getMetricsByMonitorTemplateCodes } from "../../services/topo/tagtip";
|
8
8
|
/**
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
4
4
|
import topoService from '@riil-frontend/component-topology-common/es/services/topo';
|
5
|
-
import rlog from '@riil-frontend/component-topology-utils
|
5
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
6
6
|
export default {
|
7
7
|
/**
|
8
8
|
* 查询告警列表,包含主资源和子组件告警
|