@riil-frontend/component-topology 3.17.0 → 3.17.1
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 +17 -17
- package/es/core/models/TopoApp.js +1 -1
- package/es/core/viewer/components/plugins/ResourceDetail/ResourceDetail.js +3 -2
- package/lib/core/models/TopoApp.js +1 -1
- package/lib/core/viewer/components/plugins/ResourceDetail/ResourceDetail.js +3 -2
- package/package.json +2 -2
|
@@ -20,7 +20,7 @@ import { updateEdgeExpanded } from "../utils/edgeUtil";
|
|
|
20
20
|
import PluginManager from "./PluginManager";
|
|
21
21
|
import topoFactory from "./topoFactory"; // eslint-disable-next-line no-undef
|
|
22
22
|
|
|
23
|
-
var version = typeof "3.17.
|
|
23
|
+
var version = typeof "3.17.1" === 'string' ? "3.17.1" : null;
|
|
24
24
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
|
25
25
|
/**
|
|
26
26
|
* 拓扑显示和编辑
|
|
@@ -135,10 +135,11 @@ function ResourceDetail(props) {
|
|
|
135
135
|
type = data.type,
|
|
136
136
|
ciType = data.ciType,
|
|
137
137
|
ciName = data.ciName,
|
|
138
|
-
operation = data.operation
|
|
138
|
+
operation = data.operation,
|
|
139
|
+
permission = data.permission;
|
|
139
140
|
if ( // 仅展示资源和链路的概览
|
|
140
141
|
!['node', 'link', 'linkGroup'].includes(type) || // 没有权限不显示
|
|
141
|
-
!operation || // 没有citype不显示
|
|
142
|
+
!operation && !(permission !== null && permission !== void 0 && permission.readable) || // 没有citype不显示
|
|
142
143
|
!ciType) return;
|
|
143
144
|
var htElement = topo.getDataModel().getDataByTag(id);
|
|
144
145
|
|
|
@@ -48,7 +48,7 @@ var _PluginManager = _interopRequireDefault(require("./PluginManager"));
|
|
|
48
48
|
var _topoFactory = _interopRequireDefault(require("./topoFactory"));
|
|
49
49
|
|
|
50
50
|
// eslint-disable-next-line no-undef
|
|
51
|
-
var version = typeof "3.17.
|
|
51
|
+
var version = typeof "3.17.1" === 'string' ? "3.17.1" : null;
|
|
52
52
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
|
53
53
|
/**
|
|
54
54
|
* 拓扑显示和编辑
|
|
@@ -158,10 +158,11 @@ function ResourceDetail(props) {
|
|
|
158
158
|
type = data.type,
|
|
159
159
|
ciType = data.ciType,
|
|
160
160
|
ciName = data.ciName,
|
|
161
|
-
operation = data.operation
|
|
161
|
+
operation = data.operation,
|
|
162
|
+
permission = data.permission;
|
|
162
163
|
if ( // 仅展示资源和链路的概览
|
|
163
164
|
!['node', 'link', 'linkGroup'].includes(type) || // 没有权限不显示
|
|
164
|
-
!operation || // 没有citype不显示
|
|
165
|
+
!operation && !(permission !== null && permission !== void 0 && permission.readable) || // 没有citype不显示
|
|
165
166
|
!ciType) return;
|
|
166
167
|
var htElement = topo.getDataModel().getDataByTag(id);
|
|
167
168
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riil-frontend/component-topology",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.1",
|
|
4
4
|
"description": "拓扑",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "build-scripts start",
|
|
@@ -110,6 +110,6 @@
|
|
|
110
110
|
"access": "public"
|
|
111
111
|
},
|
|
112
112
|
"license": "MIT",
|
|
113
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@3.17.
|
|
113
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@3.17.1/build/index.html",
|
|
114
114
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
|
115
115
|
}
|