@riil-frontend/component-topology 11.0.38 → 11.0.40

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.
@@ -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 "11.0.38" === 'string' ? "11.0.38" : null;
27
+ var version = typeof "11.0.40" === 'string' ? "11.0.40" : null;
28
28
  console.info("\u62D3\u6251\u7248\u672C: " + version);
29
29
  /**
30
30
  * 拓扑显示和编辑
@@ -36,7 +36,8 @@ export var updateEdgeExpanded = function updateEdgeExpanded(topo) {
36
36
  htTopo.expandAllEdgeGroups();
37
37
  showLinkByConfig({
38
38
  topo: topo,
39
- showType: isEditMode ? 4 : expandAllEdges
39
+ showType: expandAllEdges,
40
+ isEditMode: isEditMode
40
41
  });
41
42
  rlog.debug("updateEdgeExpanded 展开-isEditMode", isEditMode);
42
43
  }
@@ -23,8 +23,8 @@ export default function LinkTopoCard(props) {
23
23
  openFlow = _useState[0],
24
24
  setOpenFlow = _useState[1];
25
25
 
26
- var analysisUrl = "../../default/trafficControl/linkConfigure?id=" + data.attributes.name + "&num=0";
27
- var linkDetailsUrl = "/default/pagecenter/linkDetail/view/" + data.id + "?resId=" + data.id + "&domainCode=network&title=" + data.attributes.name + "&ciCode=network_link&tabByComType=uicbb-res-crucial-link-flow";
26
+ var analysisUrl = "../../default/trafficControl/linkConfigure?id=" + encodeURIComponent(data.attributes.display_name) + "&num=0";
27
+ 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";
28
28
 
29
29
  var isOpenFlows = /*#__PURE__*/function () {
30
30
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
@@ -56,7 +56,7 @@ var _SelectionModel = _interopRequireDefault(require("./SelectionModel"));
56
56
  var _CiCache = _interopRequireDefault(require("./cache/CiCache"));
57
57
 
58
58
  // eslint-disable-next-line no-undef
59
- var version = typeof "11.0.38" === 'string' ? "11.0.38" : null;
59
+ var version = typeof "11.0.40" === 'string' ? "11.0.40" : null;
60
60
  console.info("\u62D3\u6251\u7248\u672C: " + version);
61
61
  /**
62
62
  * 拓扑显示和编辑
@@ -45,7 +45,8 @@ var updateEdgeExpanded = function updateEdgeExpanded(topo) {
45
45
  htTopo.expandAllEdgeGroups();
46
46
  (0, _linkUtils.showLinkByConfig)({
47
47
  topo: topo,
48
- showType: isEditMode ? 4 : expandAllEdges
48
+ showType: expandAllEdges,
49
+ isEditMode: isEditMode
49
50
  });
50
51
 
51
52
  _rlog["default"].debug("updateEdgeExpanded 展开-isEditMode", isEditMode);
@@ -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.name + "&num=0";
45
- var linkDetailsUrl = "/default/pagecenter/linkDetail/view/" + data.id + "?resId=" + data.id + "&domainCode=network&title=" + data.attributes.name + "&ciCode=network_link&tabByComType=uicbb-res-crucial-link-flow";
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() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riil-frontend/component-topology",
3
- "version": "11.0.38",
3
+ "version": "11.0.40",
4
4
  "description": "拓扑",
5
5
  "scripts": {
6
6
  "start": "build-scripts start",
@@ -122,6 +122,6 @@
122
122
  "access": "public"
123
123
  },
124
124
  "license": "MIT",
125
- "homepage": "https://unpkg.com/@riil-frontend/component-topology@11.0.38/build/index.html",
125
+ "homepage": "https://unpkg.com/@riil-frontend/component-topology@11.0.40/build/index.html",
126
126
  "gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
127
127
  }