@riil-frontend/component-topology 2.15.51 → 2.15.52
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.css +1 -1
- package/build/index.js +31 -31
- package/es/core/models/TopoApp.js +1 -1
- package/es/models/topoAlarm.js +14 -6
- package/lib/core/models/TopoApp.js +1 -1
- package/lib/models/topoAlarm.js +14 -6
- 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 "2.15.
|
|
23
|
+
var version = typeof "2.15.52" === 'string' ? "2.15.52" : null;
|
|
24
24
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
|
25
25
|
/**
|
|
26
26
|
* 拓扑显示和编辑
|
package/es/models/topoAlarm.js
CHANGED
|
@@ -11,7 +11,7 @@ import { getCiMeta } from "@riil-frontend/component-topology-common/es/services/
|
|
|
11
11
|
import rlog from "@riil-frontend/component-topology-utils/es/rlog";
|
|
12
12
|
import _ from "lodash";
|
|
13
13
|
import { findItem, findItemIndex, sortList } from "../utils/topoData";
|
|
14
|
-
var showAlarmStatus = ["toDeal", "dealing"];
|
|
14
|
+
var showAlarmStatus = ["toDeal", "dealing", "change"];
|
|
15
15
|
export default {
|
|
16
16
|
// 定义 model 的初始 state
|
|
17
17
|
state: {
|
|
@@ -127,13 +127,21 @@ export default {
|
|
|
127
127
|
// );
|
|
128
128
|
|
|
129
129
|
if (showAlarmStatus.indexOf(item.status) >= 0) {
|
|
130
|
-
if (
|
|
131
|
-
var
|
|
130
|
+
if (item.status === "change") {
|
|
131
|
+
var old = doc[rid][sliceTag];
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
if (old.level !== item.level) {
|
|
134
|
+
var _newArr = [].concat(doc[rid]);
|
|
134
135
|
|
|
135
|
-
|
|
136
|
-
|
|
136
|
+
_newArr.splice(sliceTag, 1, _extends({}, item, {
|
|
137
|
+
status: old.status
|
|
138
|
+
}));
|
|
139
|
+
|
|
140
|
+
doc[rid] = _newArr.sort(sortList);
|
|
141
|
+
rlog.debug("告警级别变更", doc[rid], item);
|
|
142
|
+
} else {
|
|
143
|
+
rlog.debug("接收到异常的重复告警", item);
|
|
144
|
+
}
|
|
137
145
|
} else {// rlog.debug("重复告警", item);
|
|
138
146
|
}
|
|
139
147
|
} else {
|
|
@@ -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 "2.15.
|
|
51
|
+
var version = typeof "2.15.52" === 'string' ? "2.15.52" : null;
|
|
52
52
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
|
53
53
|
/**
|
|
54
54
|
* 拓扑显示和编辑
|
package/lib/models/topoAlarm.js
CHANGED
|
@@ -26,7 +26,7 @@ var _topoData = require("../utils/topoData");
|
|
|
26
26
|
/**
|
|
27
27
|
* 告警
|
|
28
28
|
*/
|
|
29
|
-
var showAlarmStatus = ["toDeal", "dealing"];
|
|
29
|
+
var showAlarmStatus = ["toDeal", "dealing", "change"];
|
|
30
30
|
var _default = {
|
|
31
31
|
// 定义 model 的初始 state
|
|
32
32
|
state: {
|
|
@@ -141,14 +141,22 @@ var _default = {
|
|
|
141
141
|
// );
|
|
142
142
|
|
|
143
143
|
if (showAlarmStatus.indexOf(item.status) >= 0) {
|
|
144
|
-
if (
|
|
145
|
-
var
|
|
144
|
+
if (item.status === "change") {
|
|
145
|
+
var old = doc[rid][sliceTag];
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
if (old.level !== item.level) {
|
|
148
|
+
var _newArr = [].concat(doc[rid]);
|
|
148
149
|
|
|
149
|
-
|
|
150
|
+
_newArr.splice(sliceTag, 1, (0, _extends2["default"])({}, item, {
|
|
151
|
+
status: old.status
|
|
152
|
+
}));
|
|
150
153
|
|
|
151
|
-
|
|
154
|
+
doc[rid] = _newArr.sort(_topoData.sortList);
|
|
155
|
+
|
|
156
|
+
_rlog["default"].debug("告警级别变更", doc[rid], item);
|
|
157
|
+
} else {
|
|
158
|
+
_rlog["default"].debug("接收到异常的重复告警", item);
|
|
159
|
+
}
|
|
152
160
|
} else {// rlog.debug("重复告警", item);
|
|
153
161
|
}
|
|
154
162
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riil-frontend/component-topology",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.52",
|
|
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@2.15.
|
|
113
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@2.15.52/build/index.html",
|
|
114
114
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
|
115
115
|
}
|