@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.
@@ -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 / 2 + 2, viewRect.y + nodeRect.height / 2 + 4);
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.5" === 'string' ? "4.0.5" : null;
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
  * 拓扑显示和编辑
@@ -17,7 +17,7 @@ function _queryCisByIds() {
17
17
  return commonQueryCiDataByIds(ids, {
18
18
  orders: [],
19
19
  pageIndex: 1,
20
- pageSize: 1000
20
+ pageSize: 100000
21
21
  });
22
22
 
23
23
  case 2:
@@ -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: 999,
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: 999
399
+ pageSize: 10000
400
400
  });
401
401
 
402
402
  case 17:
@@ -96,9 +96,8 @@ export function handleClusterNoPermission(topo) {
96
96
  */
97
97
 
98
98
  export function upgradeV103GraphClusterNode(topo, topoData) {
99
- var dm1 = topo.getDataModel();
100
- dm1.removeDataByTag('00000000364831f0'); // FIXME
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 / 2 + 2, viewRect.y + nodeRect.height / 2 + 4);
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.5" === 'string' ? "4.0.5" : null;
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
  * 拓扑显示和编辑
@@ -29,7 +29,7 @@ function _queryCisByIds() {
29
29
  return (0, _cmdb.commonQueryCiDataByIds)(ids, {
30
30
  orders: [],
31
31
  pageIndex: 1,
32
- pageSize: 1000
32
+ pageSize: 100000
33
33
  });
34
34
 
35
35
  case 2:
@@ -394,7 +394,7 @@ function ResourceOverview(props) {
394
394
  alertStatusList: ['toDeal', 'woDealing', 'dealing'],
395
395
  // toDeal: 待处理, dealing:处理中
396
396
  pageNum: 1,
397
- pageSize: 999,
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: 999
431
+ pageSize: 10000
432
432
  });
433
433
 
434
434
  case 17:
@@ -125,9 +125,8 @@ function handleClusterNoPermission(topo) {
125
125
 
126
126
 
127
127
  function upgradeV103GraphClusterNode(topo, topoData) {
128
- var dm1 = topo.getDataModel();
129
- dm1.removeDataByTag('00000000364831f0'); // FIXME
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.5",
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.5/build/index.html",
117
+ "homepage": "https://unpkg.com/@riil-frontend/component-topology@4.0.8/build/index.html",
118
118
  "gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
119
119
  }