@riil-frontend/component-topology 5.0.5 → 5.0.7
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/index.js +8 -8
- package/es/components/BatchAttrMetric/setting.js +2 -2
- package/es/core/components/DisplaySettingDrawer/demo/Demo.js +2 -4
- package/es/core/components/DisplaySettingDrawer/hooks/useDisplaySetting.js +5 -5
- package/es/core/editor/components/BackgroundView/index.js +2 -2
- package/es/core/editor/components/settings/Settings.js +10 -12
- package/es/core/editor/components/settings/common/AlignSetting/index.js +1 -1
- package/es/core/editor/components/settings/common/LineType/index.js +1 -1
- package/es/core/editor/components/settings/propertyViews/layer/SettingTab/Setting_bak.js +1 -1
- package/es/core/editor/components/settings/propertyViews/multipleElements/BatchSetNodeIcon.js +7 -3
- package/es/core/editor/components/settings/propertyViews/multipleElements/MultipleElementPropertyView.js +1 -1
- package/es/core/editor/components/settings/propertyViews/view/GlobalLayout.js +1 -1
- package/es/core/hooks/useTopoEdit.js +6 -6
- package/es/core/models/Alarm.js +14 -15
- package/es/core/models/TopoApp.js +1 -1
- package/es/core/store/models/topoBaseInfoOverview.js +1 -1
- package/es/core/viewer/components/plugins/ResourceDetail/ResourceDetailDrawer.js +3 -3
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +34 -33
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/hooks/useMetricPolling.js +6 -5
- package/es/networkTopo/components/editor/propertyViews/edge/LinkPropertyView/LinkPropertyView.js +1 -2
- package/es/networkTopo/components/editor/propertyViews/edge/addLinkDrawer/AddLinkDrawer.js +9 -11
- package/es/networkTopo/components/editor/propertyViews/edge/addLinkDrawer/components/editLinkInfo.js +1 -2
- package/es/networkTopo/components/editor/propertyViews/edge/addLinkDrawer/server.js +10 -10
- package/es/networkTopo/components/editor/propertyViews/edge/link/BindExitLinkSelect.js +15 -4
- package/es/networkTopo/models/LinkDynamicStyleExecutor.js +1 -1
- package/es/networkTopo/services/link.js +10 -10
- package/es/utils/topoData.js +2 -2
- package/lib/components/BatchAttrMetric/setting.js +2 -2
- package/lib/core/components/DisplaySettingDrawer/demo/Demo.js +2 -4
- package/lib/core/components/DisplaySettingDrawer/hooks/useDisplaySetting.js +5 -5
- package/lib/core/editor/components/BackgroundView/index.js +2 -2
- package/lib/core/editor/components/settings/Settings.js +10 -12
- package/lib/core/editor/components/settings/common/AlignSetting/index.js +1 -1
- package/lib/core/editor/components/settings/common/LineType/index.js +1 -1
- package/lib/core/editor/components/settings/propertyViews/layer/SettingTab/Setting_bak.js +1 -1
- package/lib/core/editor/components/settings/propertyViews/multipleElements/BatchSetNodeIcon.js +7 -3
- package/lib/core/editor/components/settings/propertyViews/multipleElements/MultipleElementPropertyView.js +1 -1
- package/lib/core/editor/components/settings/propertyViews/view/GlobalLayout.js +1 -1
- package/lib/core/hooks/useTopoEdit.js +6 -6
- package/lib/core/models/Alarm.js +14 -15
- package/lib/core/models/TopoApp.js +1 -1
- package/lib/core/store/models/topoBaseInfoOverview.js +1 -1
- package/lib/core/viewer/components/plugins/ResourceDetail/ResourceDetailDrawer.js +3 -3
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +37 -32
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/hooks/useMetricPolling.js +10 -4
- package/lib/networkTopo/components/editor/propertyViews/edge/LinkPropertyView/LinkPropertyView.js +1 -2
- package/lib/networkTopo/components/editor/propertyViews/edge/addLinkDrawer/AddLinkDrawer.js +9 -11
- package/lib/networkTopo/components/editor/propertyViews/edge/addLinkDrawer/components/editLinkInfo.js +1 -2
- package/lib/networkTopo/components/editor/propertyViews/edge/addLinkDrawer/server.js +10 -10
- package/lib/networkTopo/components/editor/propertyViews/edge/link/BindExitLinkSelect.js +14 -4
- package/lib/networkTopo/models/LinkDynamicStyleExecutor.js +1 -1
- package/lib/networkTopo/services/link.js +10 -10
- package/lib/utils/topoData.js +2 -2
- package/package.json +2 -2
|
@@ -49,6 +49,8 @@ var _attributeFormatter = require("../../../../../../models/attributeFormatter")
|
|
|
49
49
|
|
|
50
50
|
var _LinkTopoCard = _interopRequireDefault(require("./components/LinkTopo/LinkTopoCard"));
|
|
51
51
|
|
|
52
|
+
var _rlog = require("@riil-frontend/component-topology-utils/lib/rlog");
|
|
53
|
+
|
|
52
54
|
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); }
|
|
53
55
|
|
|
54
56
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -195,8 +197,8 @@ function ResourceOverview(props) {
|
|
|
195
197
|
|
|
196
198
|
|
|
197
199
|
var baseInfoCol = (0, _react.useMemo)(function () {
|
|
198
|
-
var col = [];
|
|
199
|
-
|
|
200
|
+
var col = []; // console.log('baseInfoCol', ciTypeMeta, props);
|
|
201
|
+
|
|
200
202
|
if (type === 'node') col.push({
|
|
201
203
|
title: '图片名称',
|
|
202
204
|
dataIndex: 'imageName'
|
|
@@ -236,7 +238,7 @@ function ResourceOverview(props) {
|
|
|
236
238
|
}, [id, ciTypeMeta, type, isDevice]); // 指标可选项
|
|
237
239
|
|
|
238
240
|
var metricCol = (0, _react.useMemo)(function () {
|
|
239
|
-
console.log('monitorMetricModels', monitorMetricModels);
|
|
241
|
+
// console.log('monitorMetricModels', monitorMetricModels);
|
|
240
242
|
return (monitorMetricModels === null || monitorMetricModels === void 0 ? void 0 : monitorMetricModels.map(function (item) {
|
|
241
243
|
return {
|
|
242
244
|
title: item.name,
|
|
@@ -581,15 +583,15 @@ function ResourceOverview(props) {
|
|
|
581
583
|
|
|
582
584
|
case 7:
|
|
583
585
|
attributeMap = _context5.sent;
|
|
584
|
-
console.log('getAttribute', attributeMap);
|
|
586
|
+
// console.log('getAttribute', attributeMap);
|
|
585
587
|
col = col.filter(function (item) {
|
|
586
588
|
return !item.hidden;
|
|
587
589
|
});
|
|
588
590
|
_iterator = _createForOfIteratorHelperLoose(col);
|
|
589
591
|
|
|
590
|
-
case
|
|
592
|
+
case 10:
|
|
591
593
|
if ((_step = _iterator()).done) {
|
|
592
|
-
_context5.next =
|
|
594
|
+
_context5.next = 47;
|
|
593
595
|
break;
|
|
594
596
|
}
|
|
595
597
|
|
|
@@ -597,10 +599,10 @@ function ResourceOverview(props) {
|
|
|
597
599
|
value = (0, _attributeFormatter.formatMetric)(attributeMap[item.dataIndex], ciTypeMeta.attributeMap[item.dataIndex]);
|
|
598
600
|
contentTitle = value;
|
|
599
601
|
_context5.t0 = item.dataIndex;
|
|
600
|
-
_context5.next = _context5.t0 === 'display_name' ?
|
|
602
|
+
_context5.next = _context5.t0 === 'display_name' ? 17 : _context5.t0 === 'ciName' ? 21 : _context5.t0 === 'res_address' ? 24 : _context5.t0 === 'imageName' ? 31 : 35;
|
|
601
603
|
break;
|
|
602
604
|
|
|
603
|
-
case
|
|
605
|
+
case 17:
|
|
604
606
|
link = "/default/pagecenter/resDetail/view/" + id + "?resId=" + id + "&domainCode=" + ciTypeMeta.domain + "&title=" + attributeMap.display_name + "&ciCode=" + ciType; // 资源跳转链接
|
|
605
607
|
|
|
606
608
|
value = /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -611,18 +613,18 @@ function ResourceOverview(props) {
|
|
|
611
613
|
to: formatUrl(link)
|
|
612
614
|
}, attributeMap.display_name || '-'));
|
|
613
615
|
contentTitle = attributeMap.display_name || '-';
|
|
614
|
-
return _context5.abrupt("break",
|
|
616
|
+
return _context5.abrupt("break", 36);
|
|
615
617
|
|
|
616
|
-
case
|
|
618
|
+
case 21:
|
|
617
619
|
value = ciTypeMeta.displayName;
|
|
618
620
|
contentTitle = value;
|
|
619
|
-
return _context5.abrupt("break",
|
|
621
|
+
return _context5.abrupt("break", 36);
|
|
620
622
|
|
|
621
|
-
case
|
|
622
|
-
_context5.next =
|
|
623
|
+
case 24:
|
|
624
|
+
_context5.next = 26;
|
|
623
625
|
return getAddressFormat(attributeMap);
|
|
624
626
|
|
|
625
|
-
case
|
|
627
|
+
case 26:
|
|
626
628
|
address = _context5.sent;
|
|
627
629
|
owned_computer_room = attributeMap.owned_computer_room, owned_cabinet = attributeMap.owned_cabinet; // 跳转3D机房定位设备
|
|
628
630
|
|
|
@@ -642,18 +644,18 @@ function ResourceOverview(props) {
|
|
|
642
644
|
}
|
|
643
645
|
|
|
644
646
|
contentTitle = address;
|
|
645
|
-
return _context5.abrupt("break",
|
|
647
|
+
return _context5.abrupt("break", 36);
|
|
646
648
|
|
|
647
|
-
case
|
|
649
|
+
case 31:
|
|
648
650
|
node = topo.getDataModel().getDataByTag(id);
|
|
649
651
|
value = (node === null || node === void 0 ? void 0 : node.a('customName')) || (node === null || node === void 0 ? void 0 : node.a('name')) || '-';
|
|
650
652
|
contentTitle = value;
|
|
651
|
-
return _context5.abrupt("break",
|
|
653
|
+
return _context5.abrupt("break", 36);
|
|
652
654
|
|
|
653
|
-
case
|
|
654
|
-
return _context5.abrupt("break",
|
|
655
|
+
case 35:
|
|
656
|
+
return _context5.abrupt("break", 36);
|
|
655
657
|
|
|
656
|
-
case
|
|
658
|
+
case 36:
|
|
657
659
|
// 拿翻译字段属性数据
|
|
658
660
|
if (attributeMap[item.dataIndex] && attributeMap[item.dataIndex + ".name"]) {
|
|
659
661
|
value = attributeMap[item.dataIndex + ".name"];
|
|
@@ -689,15 +691,15 @@ function ResourceOverview(props) {
|
|
|
689
691
|
contentTitle: contentTitle
|
|
690
692
|
}));
|
|
691
693
|
|
|
692
|
-
case
|
|
693
|
-
_context5.next =
|
|
694
|
+
case 45:
|
|
695
|
+
_context5.next = 10;
|
|
694
696
|
break;
|
|
695
697
|
|
|
696
|
-
case
|
|
698
|
+
case 47:
|
|
697
699
|
settBaseInfoInitLoading(false);
|
|
698
700
|
setBaseInfo(infoData);
|
|
699
701
|
|
|
700
|
-
case
|
|
702
|
+
case 49:
|
|
701
703
|
case "end":
|
|
702
704
|
return _context5.stop();
|
|
703
705
|
}
|
|
@@ -791,13 +793,13 @@ function ResourceOverview(props) {
|
|
|
791
793
|
while (1) {
|
|
792
794
|
switch (_context7.prev = _context7.next) {
|
|
793
795
|
case 0:
|
|
794
|
-
console.log('metricColChange col', col);
|
|
796
|
+
// console.log('metricColChange col', col);
|
|
795
797
|
col = (_col2 = col) === null || _col2 === void 0 ? void 0 : _col2.filter(function (item) {
|
|
796
798
|
return !item.hidden;
|
|
797
799
|
});
|
|
798
800
|
|
|
799
801
|
if ((_col3 = col) !== null && _col3 !== void 0 && _col3.length) {
|
|
800
|
-
_context7.next =
|
|
802
|
+
_context7.next = 4;
|
|
801
803
|
break;
|
|
802
804
|
}
|
|
803
805
|
|
|
@@ -805,7 +807,7 @@ function ResourceOverview(props) {
|
|
|
805
807
|
|
|
806
808
|
return _context7.abrupt("return");
|
|
807
809
|
|
|
808
|
-
case
|
|
810
|
+
case 4:
|
|
809
811
|
codes = col.map(function (item) {
|
|
810
812
|
return item.dataIndex;
|
|
811
813
|
});
|
|
@@ -828,12 +830,14 @@ function ResourceOverview(props) {
|
|
|
828
830
|
}
|
|
829
831
|
|
|
830
832
|
setMetricInitLoading(true);
|
|
831
|
-
_context7.next =
|
|
833
|
+
_context7.next = 11;
|
|
832
834
|
return _overview["default"].getMetricList(params);
|
|
833
835
|
|
|
834
|
-
case
|
|
836
|
+
case 11:
|
|
835
837
|
metricList = _context7.sent;
|
|
836
|
-
|
|
838
|
+
|
|
839
|
+
_rlog.rlog.debug('metricColChange', metricList, monitorMetricModels);
|
|
840
|
+
|
|
837
841
|
setMetric(col.map(function (item, key) {
|
|
838
842
|
return {
|
|
839
843
|
code: item.dataIndex,
|
|
@@ -858,7 +862,7 @@ function ResourceOverview(props) {
|
|
|
858
862
|
}, 60000);
|
|
859
863
|
}
|
|
860
864
|
|
|
861
|
-
case
|
|
865
|
+
case 16:
|
|
862
866
|
case "end":
|
|
863
867
|
return _context7.stop();
|
|
864
868
|
}
|
|
@@ -909,7 +913,8 @@ function ResourceOverview(props) {
|
|
|
909
913
|
}
|
|
910
914
|
}
|
|
911
915
|
|
|
912
|
-
|
|
916
|
+
_rlog.rlog.debug('defaultCols', type, ciType, baseInfo, keyIndicators);
|
|
917
|
+
|
|
913
918
|
return {
|
|
914
919
|
baseInfo: baseInfo,
|
|
915
920
|
keyIndicators: keyIndicators
|
|
@@ -13,6 +13,8 @@ var _ahooks = require("ahooks");
|
|
|
13
13
|
|
|
14
14
|
var _services = require("../services");
|
|
15
15
|
|
|
16
|
+
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
|
17
|
+
|
|
16
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); }
|
|
17
19
|
|
|
18
20
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -42,7 +44,8 @@ function useMetricPolling(_ref) {
|
|
|
42
44
|
setData((0, _extends2["default"])({}, data, {
|
|
43
45
|
linkMetrics: result
|
|
44
46
|
}));
|
|
45
|
-
|
|
47
|
+
|
|
48
|
+
_rlog["default"].info('链路拓扑指标轮询', result);
|
|
46
49
|
}
|
|
47
50
|
});
|
|
48
51
|
var queryInterfaceMetricsRequest = (0, _ahooks.useRequest)(_services.queryLinkInterfacesLatestMetrics, {
|
|
@@ -52,24 +55,27 @@ function useMetricPolling(_ref) {
|
|
|
52
55
|
manual: true,
|
|
53
56
|
onSuccess: function onSuccess(result) {
|
|
54
57
|
setData((0, _extends2["default"])({}, data, result));
|
|
55
|
-
|
|
58
|
+
|
|
59
|
+
_rlog["default"].info('链路拓扑指标轮询 queryInterfaceMetricsRequest 结果', result);
|
|
56
60
|
}
|
|
57
61
|
});
|
|
58
62
|
var linkMetricCodesStr = linkMetricCodes.map(function (item) {
|
|
59
63
|
return item;
|
|
60
64
|
}).sort().join(',');
|
|
61
65
|
(0, _react.useEffect)(function () {
|
|
62
|
-
|
|
66
|
+
_rlog["default"].info('链路拓扑指标轮询 切换', {
|
|
63
67
|
linkCi: linkCi,
|
|
64
68
|
linkMetricCodes: linkMetricCodes
|
|
65
69
|
});
|
|
70
|
+
|
|
66
71
|
queryLinkMetricsRequest.run(linkCi, linkMetricCodes);
|
|
67
72
|
return function () {};
|
|
68
73
|
}, [linkId, linkMetricCodesStr]);
|
|
69
74
|
(0, _react.useEffect)(function () {
|
|
70
|
-
|
|
75
|
+
_rlog["default"].info('链路拓扑指标轮询 queryInterfaceMetricsRequest 开始', {
|
|
71
76
|
linkCi: linkCi
|
|
72
77
|
});
|
|
78
|
+
|
|
73
79
|
queryInterfaceMetricsRequest.run(linkCi);
|
|
74
80
|
return function () {};
|
|
75
81
|
}, [linkId]);
|
package/lib/networkTopo/components/editor/propertyViews/edge/LinkPropertyView/LinkPropertyView.js
CHANGED
|
@@ -26,8 +26,7 @@ function LinkPropertyView(props) {
|
|
|
26
26
|
linkGroups = _topo$store$useModelS.linkGroups;
|
|
27
27
|
var link = [].concat(links, linkGroups).find(function (item) {
|
|
28
28
|
return item.id === edge.getTag();
|
|
29
|
-
});
|
|
30
|
-
console.log('LinkPropertyView', link);
|
|
29
|
+
}); // console.log('LinkPropertyView',link)
|
|
31
30
|
|
|
32
31
|
if (link) {
|
|
33
32
|
var readable = link.permission.readable;
|
|
@@ -100,10 +100,8 @@ function AddLinkDrawer(props) {
|
|
|
100
100
|
while (1) {
|
|
101
101
|
switch (_context.prev = _context.next) {
|
|
102
102
|
case 0:
|
|
103
|
-
console.log('getPortsById', id, currentLink);
|
|
104
|
-
|
|
105
103
|
if (id) {
|
|
106
|
-
_context.next =
|
|
104
|
+
_context.next = 2;
|
|
107
105
|
break;
|
|
108
106
|
}
|
|
109
107
|
|
|
@@ -112,25 +110,25 @@ function AddLinkDrawer(props) {
|
|
|
112
110
|
portsDoc: {}
|
|
113
111
|
});
|
|
114
112
|
|
|
115
|
-
case
|
|
116
|
-
_context.next =
|
|
113
|
+
case 2:
|
|
114
|
+
_context.next = 4;
|
|
117
115
|
return _server["default"].getPortsById(id);
|
|
118
116
|
|
|
119
|
-
case
|
|
117
|
+
case 4:
|
|
120
118
|
result = _context.sent;
|
|
121
|
-
_context.next =
|
|
119
|
+
_context.next = 7;
|
|
122
120
|
return _server["default"].queryLinksByNodeId(id);
|
|
123
121
|
|
|
124
|
-
case
|
|
122
|
+
case 7:
|
|
125
123
|
links = _context.sent;
|
|
126
124
|
ifTypes = result.map(function (item) {
|
|
127
125
|
return item.type;
|
|
128
126
|
}); // console.log("端口类型列表", ifTypes);
|
|
129
127
|
|
|
130
|
-
_context.next =
|
|
128
|
+
_context.next = 11;
|
|
131
129
|
return (0, _linkUtils.getInterfaceObject)(ifTypes);
|
|
132
130
|
|
|
133
|
-
case
|
|
131
|
+
case 11:
|
|
134
132
|
ifDoc = _context.sent;
|
|
135
133
|
// console.log("端口类型字典", ifDoc);
|
|
136
134
|
usedPorts = [];
|
|
@@ -166,7 +164,7 @@ function AddLinkDrawer(props) {
|
|
|
166
164
|
portsDoc: portsDoc
|
|
167
165
|
});
|
|
168
166
|
|
|
169
|
-
case
|
|
167
|
+
case 18:
|
|
170
168
|
case "end":
|
|
171
169
|
return _context.stop();
|
|
172
170
|
}
|
|
@@ -262,9 +262,8 @@ function EditLinkInfo(props) {
|
|
|
262
262
|
obj['destination_id'] = ''; // 目的端口
|
|
263
263
|
|
|
264
264
|
obj['destination_type'] = 'ip';
|
|
265
|
-
}
|
|
265
|
+
} // console.log('保存数据-obj', obj);
|
|
266
266
|
|
|
267
|
-
console.log('保存数据-obj', obj);
|
|
268
267
|
|
|
269
268
|
if (isAdd) {
|
|
270
269
|
obj['network_link.network_category'] = 'CAN';
|
|
@@ -109,28 +109,28 @@ var _default = {
|
|
|
109
109
|
currentPage: 1,
|
|
110
110
|
pageSize: 9999
|
|
111
111
|
};
|
|
112
|
-
jsonParm = JSON.stringify(parm);
|
|
113
|
-
|
|
114
|
-
_context3.prev =
|
|
115
|
-
_context3.next =
|
|
112
|
+
jsonParm = JSON.stringify(parm); // console.log("查询当前节点关联的链路", parm, jsonParm);
|
|
113
|
+
|
|
114
|
+
_context3.prev = 3;
|
|
115
|
+
_context3.next = 6;
|
|
116
116
|
return _componentTopologyUtils.request.post("/mdc/v1/api/cmdb/commonQueryCiData", jsonParm);
|
|
117
117
|
|
|
118
|
-
case
|
|
118
|
+
case 6:
|
|
119
119
|
result = _context3.sent;
|
|
120
120
|
return _context3.abrupt("return", result);
|
|
121
121
|
|
|
122
|
-
case
|
|
123
|
-
_context3.prev =
|
|
124
|
-
_context3.t0 = _context3["catch"](
|
|
122
|
+
case 10:
|
|
123
|
+
_context3.prev = 10;
|
|
124
|
+
_context3.t0 = _context3["catch"](3);
|
|
125
125
|
|
|
126
126
|
_rlog["default"].error("查询可关联链路", _context3.t0);
|
|
127
127
|
|
|
128
|
-
case
|
|
128
|
+
case 13:
|
|
129
129
|
case "end":
|
|
130
130
|
return _context3.stop();
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
}, _callee3, null, [[
|
|
133
|
+
}, _callee3, null, [[3, 10]]);
|
|
134
134
|
}))();
|
|
135
135
|
},
|
|
136
136
|
|
|
@@ -89,7 +89,12 @@ function BindExitLinkSelect(props) {
|
|
|
89
89
|
}();
|
|
90
90
|
|
|
91
91
|
(0, _react.useEffect)(function () {
|
|
92
|
-
console.log(
|
|
92
|
+
// console.log(
|
|
93
|
+
// "CommonEdgePropertyView-edge",
|
|
94
|
+
// edge,
|
|
95
|
+
// edge.getSource().getTag(),
|
|
96
|
+
// edge.getTarget()
|
|
97
|
+
// );
|
|
93
98
|
var ids = [edge.getSource().getTag(), edge.getTarget().getTag()];
|
|
94
99
|
getLinkByNodes(ids);
|
|
95
100
|
}, [edge]);
|
|
@@ -149,15 +154,20 @@ function BindExitLinkSelect(props) {
|
|
|
149
154
|
|
|
150
155
|
aobj = edge.getAttrObject();
|
|
151
156
|
edge.setAttrObject((0, _extends2["default"])({}, aobj, exitLink));
|
|
152
|
-
edge.setTag(data.id);
|
|
153
|
-
|
|
157
|
+
edge.setTag(data.id); // console.log(
|
|
158
|
+
// "bindExitLink------------",
|
|
159
|
+
// target,
|
|
160
|
+
// target.getTag(),
|
|
161
|
+
// data["network_link.destination_ipv4"],
|
|
162
|
+
// exitLink
|
|
163
|
+
// );
|
|
154
164
|
|
|
155
165
|
_rlog["default"].debug("fetchDataByConfig", elements);
|
|
156
166
|
|
|
157
167
|
setLoading(false);
|
|
158
168
|
topo.historyManager.endTransaction();
|
|
159
169
|
|
|
160
|
-
case
|
|
170
|
+
case 23:
|
|
161
171
|
case "end":
|
|
162
172
|
return _context2.stop();
|
|
163
173
|
}
|
|
@@ -100,7 +100,7 @@ var LinkDynamicStyleExecutor = /*#__PURE__*/function () {
|
|
|
100
100
|
edgeGroup.getEdgeGroupAgent().s('edge.width', _this.calcLinkEdgeWidth(link));
|
|
101
101
|
}
|
|
102
102
|
} else {
|
|
103
|
-
|
|
103
|
+
_rlog["default"].warn('动态链路样式执行:未找到聚合链路的ht元素', link);
|
|
104
104
|
}
|
|
105
105
|
}); // 3、如果连线组未关联链路并可见,设置线宽。
|
|
106
106
|
|
|
@@ -185,28 +185,28 @@ var _default = {
|
|
|
185
185
|
currentPage: 1,
|
|
186
186
|
pageSize: 99
|
|
187
187
|
};
|
|
188
|
-
jsonParm = JSON.stringify(parm);
|
|
189
|
-
|
|
190
|
-
_context5.prev =
|
|
191
|
-
_context5.next =
|
|
188
|
+
jsonParm = JSON.stringify(parm); // console.log("queryAssociatedlinks", ids, parm, jsonParm);
|
|
189
|
+
|
|
190
|
+
_context5.prev = 6;
|
|
191
|
+
_context5.next = 9;
|
|
192
192
|
return _componentTopologyUtils.request.post("/mdc/v1/api/cmdb/commonQueryCiData", jsonParm);
|
|
193
193
|
|
|
194
|
-
case
|
|
194
|
+
case 9:
|
|
195
195
|
result = _context5.sent;
|
|
196
196
|
return _context5.abrupt("return", result);
|
|
197
197
|
|
|
198
|
-
case
|
|
199
|
-
_context5.prev =
|
|
200
|
-
_context5.t0 = _context5["catch"](
|
|
198
|
+
case 13:
|
|
199
|
+
_context5.prev = 13;
|
|
200
|
+
_context5.t0 = _context5["catch"](6);
|
|
201
201
|
|
|
202
202
|
_rlog["default"].error("查询可关联链路", _context5.t0);
|
|
203
203
|
|
|
204
|
-
case
|
|
204
|
+
case 16:
|
|
205
205
|
case "end":
|
|
206
206
|
return _context5.stop();
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
}, _callee5, null, [[
|
|
209
|
+
}, _callee5, null, [[6, 13]]);
|
|
210
210
|
}))();
|
|
211
211
|
}
|
|
212
212
|
};
|
package/lib/utils/topoData.js
CHANGED
|
@@ -550,8 +550,8 @@ function getCiModSet(params) {
|
|
|
550
550
|
icon: ciTypeObj.icon,
|
|
551
551
|
list: ciModfilter(ciTypeObj, globalConfig, "node", ciTypeObj.code)
|
|
552
552
|
};
|
|
553
|
-
});
|
|
554
|
-
|
|
553
|
+
}); // console.log("modSet--------------------", modSet);
|
|
554
|
+
|
|
555
555
|
return modSet;
|
|
556
556
|
}
|
|
557
557
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riil-frontend/component-topology",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.7",
|
|
4
4
|
"description": "拓扑",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "build-scripts start",
|
|
@@ -115,6 +115,6 @@
|
|
|
115
115
|
"access": "public"
|
|
116
116
|
},
|
|
117
117
|
"license": "MIT",
|
|
118
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@5.0.
|
|
118
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@5.0.7/build/index.html",
|
|
119
119
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
|
120
120
|
}
|