@riil-frontend/component-topology 4.0.5 → 4.0.8
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 +1 -1
- package/es/core/editor/components/settings/propertyViews/group/DataTab/GroupNodeList.js +5 -1
- package/es/core/models/TopoApp.js +1 -1
- package/es/core/services/index.js +1 -1
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +2 -2
- package/es/utils/clusterUtil.js +2 -3
- package/lib/core/editor/components/settings/propertyViews/group/DataTab/GroupNodeList.js +5 -1
- package/lib/core/models/TopoApp.js +1 -1
- package/lib/core/services/index.js +1 -1
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +2 -2
- package/lib/utils/clusterUtil.js +2 -3
- package/package.json +2 -2
|
@@ -22,7 +22,11 @@ export default function GroupNodeList(props) {
|
|
|
22
22
|
node.setParent(null);
|
|
23
23
|
var viewRect = topo.getGraphView().getViewRect();
|
|
24
24
|
var nodeRect = node.getRect();
|
|
25
|
-
node.setPosition(viewRect.x + nodeRect.width
|
|
25
|
+
node.setPosition(viewRect.x + nodeRect.width + 2, viewRect.y + nodeRect.height + 4); // 解决集群从区域内移出时,连线位置未更新的问题
|
|
26
|
+
|
|
27
|
+
setTimeout(function () {
|
|
28
|
+
node.iv();
|
|
29
|
+
}, 50);
|
|
26
30
|
};
|
|
27
31
|
|
|
28
32
|
return /*#__PURE__*/React.createElement(ResourceList, {
|
|
@@ -21,7 +21,7 @@ import PluginManager from "./PluginManager";
|
|
|
21
21
|
import topoFactory from "./topoFactory";
|
|
22
22
|
import ElementTagTipConfig from "./tagstips/ElementTagTipConfig"; // eslint-disable-next-line no-undef
|
|
23
23
|
|
|
24
|
-
var version = typeof "4.0.
|
|
24
|
+
var version = typeof "4.0.8" === 'string' ? "4.0.8" : null;
|
|
25
25
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
|
26
26
|
/**
|
|
27
27
|
* 拓扑显示和编辑
|
|
@@ -362,7 +362,7 @@ export default function ResourceOverview(props) {
|
|
|
362
362
|
alertStatusList: ['toDeal', 'woDealing', 'dealing'],
|
|
363
363
|
// toDeal: 待处理, dealing:处理中
|
|
364
364
|
pageNum: 1,
|
|
365
|
-
pageSize:
|
|
365
|
+
pageSize: 10000,
|
|
366
366
|
sortField: 'alertLevel',
|
|
367
367
|
sortOrder: 'asc'
|
|
368
368
|
});
|
|
@@ -396,7 +396,7 @@ export default function ResourceOverview(props) {
|
|
|
396
396
|
ciIdList: [id].concat(childrenIds),
|
|
397
397
|
statusList: ['toDeal', 'dealing'],
|
|
398
398
|
current: 1,
|
|
399
|
-
pageSize:
|
|
399
|
+
pageSize: 10000
|
|
400
400
|
});
|
|
401
401
|
|
|
402
402
|
case 17:
|
package/es/utils/clusterUtil.js
CHANGED
|
@@ -96,9 +96,8 @@ export function handleClusterNoPermission(topo) {
|
|
|
96
96
|
*/
|
|
97
97
|
|
|
98
98
|
export function upgradeV103GraphClusterNode(topo, topoData) {
|
|
99
|
-
|
|
100
|
-
dm1.removeDataByTag('00000000364831f0')
|
|
101
|
-
|
|
99
|
+
// const dm1 = topo.getDataModel()
|
|
100
|
+
// dm1.removeDataByTag('00000000364831f0') // FIXME
|
|
102
101
|
try {
|
|
103
102
|
doUpgrade();
|
|
104
103
|
} catch (error) {
|
|
@@ -32,7 +32,11 @@ function GroupNodeList(props) {
|
|
|
32
32
|
node.setParent(null);
|
|
33
33
|
var viewRect = topo.getGraphView().getViewRect();
|
|
34
34
|
var nodeRect = node.getRect();
|
|
35
|
-
node.setPosition(viewRect.x + nodeRect.width
|
|
35
|
+
node.setPosition(viewRect.x + nodeRect.width + 2, viewRect.y + nodeRect.height + 4); // 解决集群从区域内移出时,连线位置未更新的问题
|
|
36
|
+
|
|
37
|
+
setTimeout(function () {
|
|
38
|
+
node.iv();
|
|
39
|
+
}, 50);
|
|
36
40
|
};
|
|
37
41
|
|
|
38
42
|
return /*#__PURE__*/_react["default"].createElement(_ResourceList["default"], {
|
|
@@ -50,7 +50,7 @@ var _topoFactory = _interopRequireDefault(require("./topoFactory"));
|
|
|
50
50
|
var _ElementTagTipConfig = _interopRequireDefault(require("./tagstips/ElementTagTipConfig"));
|
|
51
51
|
|
|
52
52
|
// eslint-disable-next-line no-undef
|
|
53
|
-
var version = typeof "4.0.
|
|
53
|
+
var version = typeof "4.0.8" === 'string' ? "4.0.8" : null;
|
|
54
54
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
|
55
55
|
/**
|
|
56
56
|
* 拓扑显示和编辑
|
|
@@ -394,7 +394,7 @@ function ResourceOverview(props) {
|
|
|
394
394
|
alertStatusList: ['toDeal', 'woDealing', 'dealing'],
|
|
395
395
|
// toDeal: 待处理, dealing:处理中
|
|
396
396
|
pageNum: 1,
|
|
397
|
-
pageSize:
|
|
397
|
+
pageSize: 10000,
|
|
398
398
|
sortField: 'alertLevel',
|
|
399
399
|
sortOrder: 'asc'
|
|
400
400
|
});
|
|
@@ -428,7 +428,7 @@ function ResourceOverview(props) {
|
|
|
428
428
|
ciIdList: [id].concat(childrenIds),
|
|
429
429
|
statusList: ['toDeal', 'dealing'],
|
|
430
430
|
current: 1,
|
|
431
|
-
pageSize:
|
|
431
|
+
pageSize: 10000
|
|
432
432
|
});
|
|
433
433
|
|
|
434
434
|
case 17:
|
package/lib/utils/clusterUtil.js
CHANGED
|
@@ -125,9 +125,8 @@ function handleClusterNoPermission(topo) {
|
|
|
125
125
|
|
|
126
126
|
|
|
127
127
|
function upgradeV103GraphClusterNode(topo, topoData) {
|
|
128
|
-
|
|
129
|
-
dm1.removeDataByTag('00000000364831f0')
|
|
130
|
-
|
|
128
|
+
// const dm1 = topo.getDataModel()
|
|
129
|
+
// dm1.removeDataByTag('00000000364831f0') // FIXME
|
|
131
130
|
try {
|
|
132
131
|
doUpgrade();
|
|
133
132
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riil-frontend/component-topology",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.8",
|
|
4
4
|
"description": "拓扑",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "build-scripts start",
|
|
@@ -114,6 +114,6 @@
|
|
|
114
114
|
"access": "public"
|
|
115
115
|
},
|
|
116
116
|
"license": "MIT",
|
|
117
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@4.0.
|
|
117
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@4.0.8/build/index.html",
|
|
118
118
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
|
119
119
|
}
|