@riil-frontend/component-topology 12.0.0-dev.1 → 12.0.0-dev.11
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 +14 -14
- 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/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/EdgeTypeButton/EdgeType.js +26 -9
- 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/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 +24 -9
- package/es/core/hooks/__tests__/useCiAttributeChange.test.js +0 -0
- package/es/core/hooks/ht/useHtDataPropertyChangeListener.js +1 -1
- package/es/core/hooks/useCiAttributeChange.js +35 -16
- 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 +48 -52
- package/es/core/models/Alarm.js +1 -1
- package/es/core/models/AttributeMetricDisplay.js +6 -3
- 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/commonTransform.js +0 -5
- package/es/core/models/attributeFormatter/formatter/graphTransform.js +1 -1
- package/es/core/models/attributeFormatter/index.js +1 -1
- 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 +1 -1
- 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 +2 -1
- package/es/core/utils/metricUtil.js +8 -1
- 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/networkTopo/components/Link/index.js +1 -1
- 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 +1 -1
- package/es/networkTopo/store/topoTreeMod.js +1 -1
- package/es/networkTopo/utils/exportData.js +1 -1
- package/es/style.js +1 -1
- package/es/utils/ResourceConfigUtil.js +4 -37
- package/es/utils/ciRefAttributeTranslateUtil.d.ts +12 -0
- package/es/utils/ciRefAttributeTranslateUtil.js +156 -0
- package/es/utils/clipboardUtil.d.ts +7 -0
- package/es/utils/clipboardUtil.js +104 -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/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/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/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 +29 -9
- package/lib/core/hooks/__tests__/useCiAttributeChange.test.js +1 -0
- package/lib/core/hooks/ht/useHtDataPropertyChangeListener.js +1 -3
- package/lib/core/hooks/useCiAttributeChange.js +34 -15
- 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 +47 -51
- package/lib/core/models/Alarm.js +10 -10
- package/lib/core/models/AttributeMetricDisplay.js +8 -4
- 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/commonTransform.js +0 -5
- package/lib/core/models/attributeFormatter/formatter/graphTransform.js +2 -4
- package/lib/core/models/attributeFormatter/index.js +1 -1
- 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 +9 -9
- 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 +2 -1
- package/lib/core/utils/metricUtil.js +8 -1
- 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/networkTopo/components/Link/index.js +2 -2
- 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 +1 -1
- package/lib/networkTopo/store/topoTreeMod.js +5 -5
- package/lib/networkTopo/utils/exportData.js +1 -3
- package/lib/style.js +1 -1
- package/lib/utils/ResourceConfigUtil.js +4 -39
- package/lib/utils/ciRefAttributeTranslateUtil.d.ts +12 -0
- package/lib/utils/ciRefAttributeTranslateUtil.js +169 -0
- package/lib/utils/clipboardUtil.d.ts +7 -0
- package/lib/utils/clipboardUtil.js +113 -0
- package/lib/utils/format.js +1 -1
- package/lib/utils/topoData.js +4 -2
- package/package.json +4 -4
@@ -118,7 +118,7 @@ var _default = {
|
|
118
118
|
* @param {Array} groups
|
119
119
|
* @returns
|
120
120
|
*/
|
121
|
-
getTopoDataByResource: function getTopoDataByResource(id, resources, groups
|
121
|
+
getTopoDataByResource: function getTopoDataByResource(id, resources, groups) {
|
122
122
|
return (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
123
123
|
var data, obj;
|
124
124
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
@@ -137,7 +137,7 @@ var _default = {
|
|
137
137
|
obj = prepareGroupParams(data);
|
138
138
|
_context.next = 5;
|
139
139
|
return _componentTopologyUtils.request.post(API_ROOT + "/structure/byCondition/" + id, (0, _extends2["default"])({}, obj, {
|
140
|
-
exportLinkIdList:
|
140
|
+
exportLinkIdList: []
|
141
141
|
}));
|
142
142
|
|
143
143
|
case 5:
|
@@ -15,7 +15,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
15
15
|
|
16
16
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
17
17
|
|
18
|
-
var
|
18
|
+
var _componentTopologyUtils = require("@riil-frontend/component-topology-utils");
|
19
19
|
|
20
20
|
var _topo = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/services/topo"));
|
21
21
|
|
@@ -202,7 +202,7 @@ function _default(engine) {
|
|
202
202
|
|
203
203
|
var id = (0, _icon.getCustomIconIdFromHtId)(htIconId);
|
204
204
|
|
205
|
-
|
205
|
+
_componentTopologyUtils.rlog.debug("\u5220\u9664\u56FE\u6807: " + id);
|
206
206
|
|
207
207
|
_dialog["default"].confirm({
|
208
208
|
title: '删除',
|
@@ -246,7 +246,7 @@ function _default(engine) {
|
|
246
246
|
_context5.prev = 9;
|
247
247
|
_context5.t0 = _context5["catch"](0);
|
248
248
|
|
249
|
-
|
249
|
+
_componentTopologyUtils.rlog.warn('删除图标失败', _context5.t0);
|
250
250
|
|
251
251
|
case 12:
|
252
252
|
case "end":
|
@@ -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
|
/**
|
17
17
|
* 动态设置链路样式 Model
|
@@ -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
|
/**
|
17
17
|
* 拓扑图 Model
|
@@ -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 _topo = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/services/topo"));
|
17
17
|
|
@@ -13,7 +13,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
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
|
function _default(engine) {
|
19
19
|
return {
|
@@ -53,7 +53,6 @@ var initialState = {
|
|
53
53
|
"static": []
|
54
54
|
},
|
55
55
|
groups: [],
|
56
|
-
exportLinkIdList: [],
|
57
56
|
// config: {
|
58
57
|
// view: null,
|
59
58
|
// groups: [],
|
@@ -260,18 +259,17 @@ function _default(topoApp) {
|
|
260
259
|
var _this2 = this;
|
261
260
|
|
262
261
|
return (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
263
|
-
var editState, resources, _editState$groups, groups,
|
262
|
+
var editState, resources, _editState$groups, groups, query, data;
|
264
263
|
|
265
264
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
266
265
|
while (1) switch (_context2.prev = _context2.next) {
|
267
266
|
case 0:
|
268
267
|
editState = rootState.topoConfig;
|
269
|
-
resources = editState.resources, _editState$groups = editState.groups, groups = _editState$groups === void 0 ? [] : _editState$groups
|
268
|
+
resources = editState.resources, _editState$groups = editState.groups, groups = _editState$groups === void 0 ? [] : _editState$groups;
|
270
269
|
query = {
|
271
270
|
id: rootState.topoMod.topoId,
|
272
271
|
resources: resources,
|
273
|
-
groups: groups
|
274
|
-
ipNodes: ipNodes
|
272
|
+
groups: groups
|
275
273
|
};
|
276
274
|
_context2.next = 5;
|
277
275
|
return _this2.getTopoByConditions(query);
|
@@ -322,14 +320,14 @@ function _default(topoApp) {
|
|
322
320
|
var _this4 = this;
|
323
321
|
|
324
322
|
return (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
325
|
-
var topoId, resources, groups,
|
323
|
+
var topoId, resources, groups, viewConditions, groupInfo, data, _yield$Promise$all, dataWithLinkDetail, _combTopoData, topoData, resAndMetrics, topoDataTrans;
|
326
324
|
|
327
325
|
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
328
326
|
while (1) switch (_context4.prev = _context4.next) {
|
329
327
|
case 0:
|
330
328
|
_rlog["default"].debug("getTopoByConditions--------", params);
|
331
329
|
|
332
|
-
topoId = params.id, resources = params.resources, groups = params.groups
|
330
|
+
topoId = params.id, resources = params.resources, groups = params.groups;
|
333
331
|
viewConditions = (0, _topoData2.resToConditions)(resources);
|
334
332
|
groupInfo = (0, _utils.isAvailableArray)(groups) && groups.map(function (group) {
|
335
333
|
return (0, _extends2["default"])({}, group, {
|
@@ -341,7 +339,7 @@ function _default(topoApp) {
|
|
341
339
|
_rlog["default"].debug("getTopoByConditions--------", viewConditions, groupInfo);
|
342
340
|
|
343
341
|
_context4.next = 7;
|
344
|
-
return topoApp.serverApi.getTopoDataByResource(topoId, viewConditions, groupInfo
|
342
|
+
return topoApp.serverApi.getTopoDataByResource(topoId, viewConditions, groupInfo);
|
345
343
|
|
346
344
|
case 7:
|
347
345
|
data = _context4.sent;
|
@@ -484,8 +482,7 @@ function _default(topoApp) {
|
|
484
482
|
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
485
483
|
while (1) switch (_context8.prev = _context8.next) {
|
486
484
|
case 0:
|
487
|
-
ids = data.ids, ip = data.ip;
|
488
|
-
|
485
|
+
ids = data.ids, ip = data.ip;
|
489
486
|
_context8.next = 3;
|
490
487
|
return _networkLink["default"].queryLinksByIp(ids, ip);
|
491
488
|
|
@@ -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 _topo = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/services/topo"));
|
17
17
|
|
@@ -15,7 +15,7 @@ var _moment = _interopRequireDefault(require("moment"));
|
|
15
15
|
|
16
16
|
var _topo = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/services/topo"));
|
17
17
|
|
18
|
-
var
|
18
|
+
var _componentTopologyUtils = require("@riil-frontend/component-topology-utils");
|
19
19
|
|
20
20
|
var _topoData = require("../../../utils/topoData");
|
21
21
|
|
@@ -85,7 +85,7 @@ function _default(topoApp) {
|
|
85
85
|
type = params.type || 'view';
|
86
86
|
id = params.id || topoModState.topoId || '';
|
87
87
|
|
88
|
-
|
88
|
+
_componentTopologyUtils.rlog.debug("topoMod.init \u521D\u59CB\u5316(" + id + ")...", {
|
89
89
|
params: params,
|
90
90
|
rootState: rootState
|
91
91
|
});
|
@@ -117,7 +117,7 @@ function _default(topoApp) {
|
|
117
117
|
loading: false
|
118
118
|
});
|
119
119
|
|
120
|
-
|
120
|
+
_componentTopologyUtils.rlog.debug('topoMod.initTopoCenter 初始化完成', {
|
121
121
|
rootState: rootState
|
122
122
|
});
|
123
123
|
|
@@ -401,7 +401,7 @@ function _default(topoApp) {
|
|
401
401
|
|
402
402
|
case 24:
|
403
403
|
topoConfig = _context6.sent;
|
404
|
-
if (!topoConfig)
|
404
|
+
if (!topoConfig) _componentTopologyUtils.rlog.error("\u672A\u67E5\u8BE2\u5230\u62D3\u6251id " + topoId + " \u7684\u6570\u636E\uFF0C\u8BF7\u68C0\u67E5");
|
405
405
|
graphConfig = {
|
406
406
|
global: topoConfig === null || topoConfig === void 0 ? void 0 : topoConfig.global,
|
407
407
|
customGlobal: data.global,
|
@@ -440,7 +440,7 @@ function _default(topoApp) {
|
|
440
440
|
case 37:
|
441
441
|
result = (0, _topoData.parseTopoData)(result);
|
442
442
|
|
443
|
-
|
443
|
+
_componentTopologyUtils.rlog.debug('topoMod.initTopoData 查询数据完成', topoId, linkTo, result);
|
444
444
|
|
445
445
|
_context6.next = 41;
|
446
446
|
return dispatch.customIcon.loadCustomIcons();
|
@@ -496,7 +496,7 @@ function _default(topoApp) {
|
|
496
496
|
topoApp.onTopoDataLoaded(topoData);
|
497
497
|
endTime = (0, _moment["default"])();
|
498
498
|
|
499
|
-
|
499
|
+
_componentTopologyUtils.rlog.info('topoMod.initTopoData 初始化拓扑图数据完成. 耗时: ', endTime.diff(startTime, 'seconds', true));
|
500
500
|
|
501
501
|
topoApp.options.onLoad();
|
502
502
|
|
@@ -605,7 +605,7 @@ function _default(topoApp) {
|
|
605
605
|
conditions = '';
|
606
606
|
}
|
607
607
|
|
608
|
-
|
608
|
+
_componentTopologyUtils.rlog.debug('updateDelId', conditions);
|
609
609
|
|
610
610
|
case 2:
|
611
611
|
case "end":
|
@@ -630,7 +630,7 @@ function _default(topoApp) {
|
|
630
630
|
case 4:
|
631
631
|
topoPermission = _context11.sent;
|
632
632
|
|
633
|
-
|
633
|
+
_componentTopologyUtils.rlog.debug('查询拓扑权限', topoPermission);
|
634
634
|
|
635
635
|
_context11.next = 11;
|
636
636
|
break;
|
@@ -639,7 +639,7 @@ function _default(topoApp) {
|
|
639
639
|
_context11.prev = 8;
|
640
640
|
_context11.t0 = _context11["catch"](1);
|
641
641
|
|
642
|
-
|
642
|
+
_componentTopologyUtils.rlog.error("\u67E5\u8BE2\u62D3\u6251" + id + "\u7684\u6743\u9650\u5931\u8D25", _context11.t0); // 尚未区分拓扑图不存在还是接口请求报错
|
643
643
|
|
644
644
|
|
645
645
|
case 11:
|
@@ -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
|
/**
|
13
13
|
* 锁定
|
@@ -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
|
/**
|
13
13
|
* 资源概览
|
@@ -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 _topo = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/services/topo"));
|
13
13
|
|
@@ -45,7 +45,8 @@ var updateEdgeExpanded = function updateEdgeExpanded(topo) {
|
|
45
45
|
htTopo.expandAllEdgeGroups();
|
46
46
|
(0, _linkUtils.showLinkByConfig)({
|
47
47
|
topo: topo,
|
48
|
-
showType:
|
48
|
+
showType: expandAllEdges,
|
49
|
+
isEditMode: isEditMode
|
49
50
|
});
|
50
51
|
|
51
52
|
_rlog["default"].debug("updateEdgeExpanded 展开-isEditMode", isEditMode);
|
@@ -21,6 +21,13 @@ function formatMetric(val, metricModel) {
|
|
21
21
|
}
|
22
22
|
|
23
23
|
if (metricModel) {
|
24
|
+
var _result$value;
|
25
|
+
|
26
|
+
// 分级字典特殊处理
|
27
|
+
if (metricModel.dict && !_DictCache["default"].getDictObject()[metricModel.code]) {
|
28
|
+
val = metricModel.dict[val];
|
29
|
+
}
|
30
|
+
|
24
31
|
var result = (0, _utils.metricValueFormat)({
|
25
32
|
value: val,
|
26
33
|
dataType: metricModel.dataType,
|
@@ -29,7 +36,7 @@ function formatMetric(val, metricModel) {
|
|
29
36
|
unit: metricModel.unit,
|
30
37
|
code: metricModel.code
|
31
38
|
});
|
32
|
-
return result.value + " " + (result.value === '-' ? '' : result.unit);
|
39
|
+
return ((_result$value = result.value) !== null && _result$value !== void 0 ? _result$value : '') + " " + (result.value === '-' ? '' : result.unit);
|
33
40
|
} else {
|
34
41
|
return "" + val;
|
35
42
|
}
|
@@ -7,7 +7,7 @@ exports["default"] = showMessage;
|
|
7
7
|
|
8
8
|
var _message = _interopRequireDefault(require("@alifd/next/lib/message"));
|
9
9
|
|
10
|
-
var
|
10
|
+
var _componentTopologyUtils = require("@riil-frontend/component-topology-utils");
|
11
11
|
|
12
12
|
var MSG_TYPES = {
|
13
13
|
info: 'notice',
|
@@ -19,7 +19,7 @@ function showMessage(type, title, content) {
|
|
19
19
|
var msgType = MSG_TYPES[type];
|
20
20
|
|
21
21
|
if (!msgType) {
|
22
|
-
|
22
|
+
_componentTopologyUtils.rlog.error('TopoView', 'Invalid message type!');
|
23
23
|
|
24
24
|
msgType = MSG_TYPES.info;
|
25
25
|
}
|
@@ -60,6 +60,7 @@ function ResourceDetail(props) {
|
|
60
60
|
|
61
61
|
if (tabBodys.length === 1) {
|
62
62
|
return /*#__PURE__*/_react["default"].createElement(_ResourceOverview["default"], (0, _extends2["default"])({}, props, activeData, {
|
63
|
+
resourceDetailProps: viewerProps === null || viewerProps === void 0 ? void 0 : viewerProps.resourceDetailProps,
|
63
64
|
userId: userId,
|
64
65
|
style: {
|
65
66
|
overflowY: 'auto',
|
package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/EventsCard.js
CHANGED
@@ -37,32 +37,31 @@ function EventsCard(props) {
|
|
37
37
|
onHandleAlarm = props.onHandleAlarm; // 告警table列配置
|
38
38
|
|
39
39
|
var columns = [{
|
40
|
-
title:
|
41
|
-
dataIndex:
|
42
|
-
key:
|
40
|
+
title: "描述",
|
41
|
+
dataIndex: "title",
|
42
|
+
key: "title",
|
43
43
|
cell: function cell(value, index, record) {
|
44
44
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
45
|
-
className: _indexModule["default"][
|
45
|
+
className: _indexModule["default"]["alarm-title"],
|
46
46
|
title: value,
|
47
47
|
onClick: closeDetailDrawer
|
48
48
|
}, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
|
49
49
|
type: record.icon,
|
50
50
|
size: "xs",
|
51
|
-
className: _indexModule["default"][
|
52
|
-
}), /*#__PURE__*/_react["default"].createElement("
|
53
|
-
|
54
|
-
href: formatUrl(record.link)
|
51
|
+
className: _indexModule["default"]["alarm-color-icon"] + " " + record.className
|
52
|
+
}), /*#__PURE__*/_react["default"].createElement(_Link["default"], {
|
53
|
+
to: formatUrl(record.link)
|
55
54
|
}, value));
|
56
55
|
}
|
57
56
|
}, {
|
58
|
-
title:
|
59
|
-
dataIndex:
|
60
|
-
key:
|
57
|
+
title: "时间",
|
58
|
+
dataIndex: "time",
|
59
|
+
key: "time",
|
61
60
|
width: 144,
|
62
61
|
cell: function cell(value, index, record) {
|
63
62
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
64
|
-
title: (0, _moment["default"])(value).format(
|
65
|
-
}, (0, _moment["default"])(value).format(
|
63
|
+
title: (0, _moment["default"])(value).format("YYYY-MM-DD HH:mm:ss")
|
64
|
+
}, (0, _moment["default"])(value).format("YYYY-MM-DD HH:mm:ss"));
|
66
65
|
}
|
67
66
|
} // 临时屏蔽告警操作列,后续版本按权限显示 2023-3-6 20:23:45
|
68
67
|
// {
|
@@ -918,7 +918,9 @@ function ResourceOverview(props) {
|
|
918
918
|
metricColChange: metricColChange,
|
919
919
|
metricCodes: metric.map(function (item) {
|
920
920
|
return item.code;
|
921
|
-
})
|
921
|
+
}),
|
922
|
+
getOverviewConfig: resourceOverviewProps.getOverviewConfig,
|
923
|
+
saveOverviewConfig: resourceOverviewProps.saveOverviewConfig
|
922
924
|
}) : /*#__PURE__*/_react["default"].createElement(_BlockBox["default"], {
|
923
925
|
headerTitle: "\u5173\u952E\u6307\u6807",
|
924
926
|
headerExtra: /*#__PURE__*/_react["default"].createElement(_Configurator["default"], {
|
@@ -41,8 +41,8 @@ function LinkTopoCard(props) {
|
|
41
41
|
openFlow = _useState[0],
|
42
42
|
setOpenFlow = _useState[1];
|
43
43
|
|
44
|
-
var analysisUrl = "../../default/trafficControl/linkConfigure?id=" + data.attributes.
|
45
|
-
var linkDetailsUrl = "/default/pagecenter/linkDetail/view/" + data.id + "?resId=" + data.id + "&domainCode=network&title=" + data.attributes.
|
44
|
+
var analysisUrl = "../../default/trafficControl/linkConfigure?id=" + encodeURIComponent(data.attributes.display_name) + "&num=0";
|
45
|
+
var linkDetailsUrl = "/default/pagecenter/linkDetail/view/" + data.id + "?resId=" + data.id + "&domainCode=network&title=" + encodeURIComponent(data.attributes.display_name) + "&ciCode=network_link&tabByComType=uicbb-res-crucial-link-flow";
|
46
46
|
|
47
47
|
var isOpenFlows = /*#__PURE__*/function () {
|
48
48
|
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
@@ -113,6 +113,8 @@ function LinkTopoCard(props) {
|
|
113
113
|
defaultCol: isCrucial ? ['remote_ping_delayed', 'remote_ping_discards_rate'] : [],
|
114
114
|
max: 5,
|
115
115
|
columns: metricCol,
|
116
|
+
getOverviewConfig: props.getOverviewConfig,
|
117
|
+
saveOverviewConfig: props.saveOverviewConfig,
|
116
118
|
onChange: metricColChange
|
117
119
|
})
|
118
120
|
}, /*#__PURE__*/_react["default"].createElement(_LinkTopo["default"], {
|
@@ -13,7 +13,7 @@ var _ahooks = require("ahooks");
|
|
13
13
|
|
14
14
|
var _services = require("../services");
|
15
15
|
|
16
|
-
var
|
16
|
+
var _componentTopologyUtils = require("@riil-frontend/component-topology-utils");
|
17
17
|
|
18
18
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
19
19
|
|
@@ -62,7 +62,7 @@ function useMetricPolling(_ref) {
|
|
62
62
|
onSuccess: function onSuccess(result) {
|
63
63
|
setData((0, _extends2["default"])({}, data, result));
|
64
64
|
|
65
|
-
|
65
|
+
_componentTopologyUtils.rlog.info('链路拓扑指标轮询', result);
|
66
66
|
}
|
67
67
|
});
|
68
68
|
var queryInterfaceMetricsRequest = (0, _ahooks.useRequest)(_services.queryLinkInterfacesLatestMetrics, {
|
@@ -73,7 +73,7 @@ function useMetricPolling(_ref) {
|
|
73
73
|
onSuccess: function onSuccess(result) {
|
74
74
|
setData((0, _extends2["default"])({}, data, result));
|
75
75
|
|
76
|
-
|
76
|
+
_componentTopologyUtils.rlog.info('链路拓扑指标轮询 queryInterfaceMetricsRequest 结果', result);
|
77
77
|
}
|
78
78
|
});
|
79
79
|
var linkMetricCodesStr = codes.map(function (item) {
|
@@ -81,7 +81,7 @@ function useMetricPolling(_ref) {
|
|
81
81
|
}).sort().join(',');
|
82
82
|
(0, _react.useEffect)(function () {
|
83
83
|
if (linkId) {
|
84
|
-
|
84
|
+
_componentTopologyUtils.rlog.info('链路拓扑指标轮询 切换', {
|
85
85
|
linkCi: linkCi,
|
86
86
|
codes: codes
|
87
87
|
});
|
@@ -96,7 +96,7 @@ function useMetricPolling(_ref) {
|
|
96
96
|
}).sort().join(',');
|
97
97
|
(0, _react.useEffect)(function () {
|
98
98
|
if (linkId) {
|
99
|
-
|
99
|
+
_componentTopologyUtils.rlog.info('链路拓扑指标勾选rtt|重传率 轮询', {
|
100
100
|
linkCi: linkCi,
|
101
101
|
retansRatioNetDelayRatioCodes: retansRatioNetDelayRatioCodes
|
102
102
|
});
|
@@ -110,7 +110,7 @@ function useMetricPolling(_ref) {
|
|
110
110
|
}, [linkId, retansRatioNetDelayRatioCodesStr]);
|
111
111
|
(0, _react.useEffect)(function () {
|
112
112
|
if (linkId) {
|
113
|
-
|
113
|
+
_componentTopologyUtils.rlog.info('链路拓扑指标轮询 queryInterfaceMetricsRequest 开始', {
|
114
114
|
linkCi: linkCi
|
115
115
|
});
|
116
116
|
|
@@ -18,8 +18,6 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
18
18
|
|
19
19
|
var _componentTopologyUtils = require("@riil-frontend/component-topology-utils");
|
20
20
|
|
21
|
-
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
22
|
-
|
23
21
|
var _CiTypeCache = _interopRequireDefault(require("../../../../../../../../../models/cache/CiTypeCache"));
|
24
22
|
|
25
23
|
var _constants = require("../constants");
|
@@ -92,7 +90,7 @@ function _queryLinkLatestMetrics() {
|
|
92
90
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
93
91
|
while (1) switch (_context3.prev = _context3.next) {
|
94
92
|
case 0:
|
95
|
-
|
93
|
+
_componentTopologyUtils.rlog.debug('链路拓扑指标轮询 queryLinkLatestMetrics', linkCi, linkMetricCodes);
|
96
94
|
|
97
95
|
if (linkMetricCodes.length) {
|
98
96
|
_context3.next = 3;
|
@@ -189,7 +187,7 @@ function _queryLinkInterfacesLatestMetrics() {
|
|
189
187
|
|
190
188
|
_linkCi$attributes = linkCi.attributes, sourceType = _linkCi$attributes.source_type, sourceId = _linkCi$attributes.source_id, destinationId = _linkCi$attributes.destination_id, destinationType = _linkCi$attributes.destination_type;
|
191
189
|
|
192
|
-
|
190
|
+
_componentTopologyUtils.rlog.debug('查询链路接口指标', linkCi); // 查询指标模型
|
193
191
|
|
194
192
|
|
195
193
|
typeCodes = [sourceType];
|
@@ -223,7 +221,7 @@ function _queryLinkInterfacesLatestMetrics() {
|
|
223
221
|
}
|
224
222
|
};
|
225
223
|
|
226
|
-
|
224
|
+
_componentTopologyUtils.rlog.debug('查询链路接口指标 结果', linkCi);
|
227
225
|
|
228
226
|
return _context4.abrupt("return", resultData);
|
229
227
|
|
@@ -46,7 +46,7 @@ var useAlarmAndRiskData = function useAlarmAndRiskData(props) {
|
|
46
46
|
while (1) switch (_context.prev = _context.next) {
|
47
47
|
case 0:
|
48
48
|
if (!isAppTopo) {
|
49
|
-
_context.next =
|
49
|
+
_context.next = 10;
|
50
50
|
break;
|
51
51
|
}
|
52
52
|
|
@@ -61,27 +61,29 @@ var useAlarmAndRiskData = function useAlarmAndRiskData(props) {
|
|
61
61
|
alarmList = _yield$resourceOvervi2.alarms;
|
62
62
|
alarmList = ((_alarmList = alarmList) === null || _alarmList === void 0 ? void 0 : _alarmList.map(function (item) {
|
63
63
|
return {
|
64
|
-
|
65
|
-
|
64
|
+
alarmInfo: item,
|
65
|
+
type: "alarm",
|
66
|
+
icon: "gaojing-3",
|
66
67
|
className: "alarm-color-icon-lv" + item.alertLevel,
|
67
68
|
title: "[" + item.alertObject + "] " + item.alertTitle,
|
68
|
-
link: "/default/pagecenter/alertDetail/view/" + item.alertId + "?alertId=" + item.alertId + "&resId=" + item.ciId + "&title=" + item.alertObject + "&ruleId=" + item.ruleId,
|
69
|
+
link: "/default/pagecenter/alertDetail/view/" + item.alertId + "?alertId=" + item.alertId + "&resId=" + item.ciId + "&title=" + encodeURI(encodeURI(item.alertObject)) + "&ruleId=" + item.ruleId,
|
69
70
|
time: item.createTime,
|
70
71
|
status: item.status,
|
71
72
|
params: [{
|
72
73
|
alertId: item.alertId,
|
73
|
-
status:
|
74
|
+
status: "dealing",
|
74
75
|
userId: userId,
|
75
76
|
isBaseAlert: false
|
76
77
|
}]
|
77
78
|
};
|
78
79
|
})) || [];
|
80
|
+
console.log("setAlarmRiskList", alarmList);
|
79
81
|
setAlarmRiskList(alarmList);
|
80
|
-
_context.next =
|
82
|
+
_context.next = 25;
|
81
83
|
break;
|
82
84
|
|
83
|
-
case
|
84
|
-
_context.next =
|
85
|
+
case 10:
|
86
|
+
_context.next = 12;
|
85
87
|
return _alarm["default"].getAlarmByIds([id].concat(childrenIds), {
|
86
88
|
alertStatusList: ['toDeal', 'woDealing', 'dealing'],
|
87
89
|
// toDeal: 待处理, dealing:处理中
|
@@ -91,7 +93,7 @@ var useAlarmAndRiskData = function useAlarmAndRiskData(props) {
|
|
91
93
|
sortOrder: 'asc'
|
92
94
|
});
|
93
95
|
|
94
|
-
case
|
96
|
+
case 12:
|
95
97
|
_yield$alarmService$g2 = _context.sent;
|
96
98
|
_alarmList2 = _yield$alarmService$g2.datas;
|
97
99
|
// 2022-07-16 后端不支持多列排序,暂通过前端实现,按创建时间倒序
|
@@ -100,28 +102,28 @@ var useAlarmAndRiskData = function useAlarmAndRiskData(props) {
|
|
100
102
|
});
|
101
103
|
_alarmList2 = _alarmList2.map(function (item) {
|
102
104
|
return {
|
103
|
-
type:
|
104
|
-
icon:
|
105
|
+
type: "alarm",
|
106
|
+
icon: "gaojing-3",
|
105
107
|
className: "alarm-color-icon-lv" + item.alertLevel,
|
106
108
|
title: "" + item.alertObject + item.alertTitle,
|
107
|
-
link: "/default/pagecenter/alertDetail/view/" + item.alertId + "?alertId=" + item.alertId + "&resId=" + item.ciId + "&title=" + item.alertObject + "&ruleId=" + item.ruleId,
|
109
|
+
link: "/default/pagecenter/alertDetail/view/" + item.alertId + "?alertId=" + item.alertId + "&resId=" + item.ciId + "&title=" + encodeURI(encodeURI(item.alertObject)) + "&ruleId=" + item.ruleId,
|
108
110
|
time: item.createTime,
|
109
111
|
status: item.status,
|
110
112
|
params: [{
|
111
113
|
alertId: item.alertId,
|
112
|
-
status:
|
114
|
+
status: "dealing",
|
113
115
|
userId: userId,
|
114
116
|
isBaseAlert: false
|
115
117
|
}]
|
116
118
|
};
|
117
119
|
}); // fix NEWITOM-33635【南昌大学】网络拓扑上双击设备拉开的抽屉中无法看到风险
|
118
120
|
|
119
|
-
_context.next =
|
121
|
+
_context.next = 18;
|
120
122
|
return _overview["default"].queryAllComponentsByCiId(id);
|
121
123
|
|
122
|
-
case
|
124
|
+
case 18:
|
123
125
|
AllComponentsByCiId = _context.sent;
|
124
|
-
_context.next =
|
126
|
+
_context.next = 21;
|
125
127
|
return _overview["default"].getRiskByIds({
|
126
128
|
ciIdList: [id].concat(childrenIds, AllComponentsByCiId.map(function (item) {
|
127
129
|
return item.id;
|
@@ -131,7 +133,7 @@ var useAlarmAndRiskData = function useAlarmAndRiskData(props) {
|
|
131
133
|
pageSize: 10000
|
132
134
|
});
|
133
135
|
|
134
|
-
case
|
136
|
+
case 21:
|
135
137
|
_yield$service$getRis2 = _context.sent;
|
136
138
|
riskList = _yield$service$getRis2.content;
|
137
139
|
riskList = riskList.map(function (item) {
|
@@ -147,7 +149,7 @@ var useAlarmAndRiskData = function useAlarmAndRiskData(props) {
|
|
147
149
|
|
148
150
|
setAlarmRiskList([].concat(_alarmList2, riskList));
|
149
151
|
|
150
|
-
case
|
152
|
+
case 25:
|
151
153
|
case "end":
|
152
154
|
return _context.stop();
|
153
155
|
}
|
@@ -15,7 +15,7 @@ var _ahooks = require("ahooks");
|
|
15
15
|
|
16
16
|
var _topo = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/services/topo"));
|
17
17
|
|
18
|
-
var
|
18
|
+
var _componentTopologyUtils = require("@riil-frontend/component-topology-utils");
|
19
19
|
|
20
20
|
var _react = require("react");
|
21
21
|
|
@@ -43,7 +43,7 @@ function _queryWebConsoleUrlById() {
|
|
43
43
|
_context2.prev = 8;
|
44
44
|
_context2.t0 = _context2["catch"](0);
|
45
45
|
|
46
|
-
|
46
|
+
_componentTopologyUtils.rlog.error('资源web控制台.加载数据异常', _context2.t0);
|
47
47
|
|
48
48
|
case 11:
|
49
49
|
return _context2.abrupt("return", null);
|