@riil-frontend/component-topology 9.0.8 → 9.0.10
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 +6 -6
- package/es/core/models/TopoApp.js +1 -1
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/NetworkBaseInfo.js +4 -2
- package/lib/core/models/TopoApp.js +1 -1
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/NetworkBaseInfo.js +3 -3
- package/package.json +2 -2
@@ -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 "9.0.
|
27
|
+
var version = typeof "9.0.10" === 'string' ? "9.0.10" : null;
|
28
28
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
29
29
|
/**
|
30
30
|
* 拓扑显示和编辑
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
2
|
import _Switch from "@alifd/next/es/switch";
|
3
|
-
import React, { useState } from 'react';
|
3
|
+
import React, { useState, useEffect } from 'react';
|
4
4
|
import BaseInfoBlock from "./BaseInfoBlock";
|
5
5
|
import Configurator from "./components/Configurator";
|
6
6
|
import { rlog } from '@riil-frontend/component-topology-utils/lib/rlog'; // 基本信息
|
@@ -45,12 +45,14 @@ export default function NetworkBaseInfo(props) {
|
|
45
45
|
});
|
46
46
|
};
|
47
47
|
|
48
|
+
useEffect(function () {
|
49
|
+
setDefaultChecked(!!topo.dataModel.getDataById(data.id).attributes['network_link.is_crucial']);
|
50
|
+
}, [id, topo.dataModel.getDataById(data.id).attributes['network_link.is_crucial']]);
|
48
51
|
var crucialLinkField = null;
|
49
52
|
|
50
53
|
if (edge) {
|
51
54
|
var targetNode = topo.dataModel.getDataById(edge.target);
|
52
55
|
var sourceNode = topo.dataModel.getDataById(edge.source);
|
53
|
-
rlog.debug(isExitLink(edge), sourceNode, targetNode, '111111111111111111111');
|
54
56
|
var updateCrucialPermission = sourceNode.permission.writeable && (isExitLink(edge) ? true : targetNode.permission.writeable);
|
55
57
|
|
56
58
|
if (updateCrucialPermission) {
|
@@ -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 "9.0.
|
59
|
+
var version = typeof "9.0.10" === 'string' ? "9.0.10" : null;
|
60
60
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
61
61
|
/**
|
62
62
|
* 拓扑显示和编辑
|
@@ -62,14 +62,14 @@ function NetworkBaseInfo(props) {
|
|
62
62
|
});
|
63
63
|
};
|
64
64
|
|
65
|
+
(0, _react.useEffect)(function () {
|
66
|
+
setDefaultChecked(!!topo.dataModel.getDataById(data.id).attributes['network_link.is_crucial']);
|
67
|
+
}, [id, topo.dataModel.getDataById(data.id).attributes['network_link.is_crucial']]);
|
65
68
|
var crucialLinkField = null;
|
66
69
|
|
67
70
|
if (edge) {
|
68
71
|
var targetNode = topo.dataModel.getDataById(edge.target);
|
69
72
|
var sourceNode = topo.dataModel.getDataById(edge.source);
|
70
|
-
|
71
|
-
_rlog.rlog.debug(isExitLink(edge), sourceNode, targetNode, '111111111111111111111');
|
72
|
-
|
73
73
|
var updateCrucialPermission = sourceNode.permission.writeable && (isExitLink(edge) ? true : targetNode.permission.writeable);
|
74
74
|
|
75
75
|
if (updateCrucialPermission) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@riil-frontend/component-topology",
|
3
|
-
"version": "9.0.
|
3
|
+
"version": "9.0.10",
|
4
4
|
"description": "拓扑",
|
5
5
|
"scripts": {
|
6
6
|
"start": "build-scripts start",
|
@@ -116,6 +116,6 @@
|
|
116
116
|
"access": "public"
|
117
117
|
},
|
118
118
|
"license": "MIT",
|
119
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@9.0.
|
119
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@9.0.10/build/index.html",
|
120
120
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
121
121
|
}
|