@riil-frontend/component-topology 7.0.9 → 7.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.
@@ -23,7 +23,7 @@ import topoFactory from "./topoFactory";
|
|
23
23
|
import ElementTagTipConfig from "./tagstips/ElementTagTipConfig";
|
24
24
|
import SelectionModel from "./SelectionModel"; // eslint-disable-next-line no-undef
|
25
25
|
|
26
|
-
var version = typeof "7.0.
|
26
|
+
var version = typeof "7.0.10" === 'string' ? "7.0.10" : null;
|
27
27
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
28
28
|
/**
|
29
29
|
* 拓扑显示和编辑
|
@@ -7,8 +7,16 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
7
|
*/
|
8
8
|
import rlog from "@riil-frontend/component-topology-utils/es/rlog";
|
9
9
|
import _ from "lodash";
|
10
|
-
import { sortList } from "../../../utils/topoData";
|
11
10
|
var showAlarmStatus = ["toDeal", "dealing", "change", "woDealing"];
|
11
|
+
|
12
|
+
var sortList = function sortList(a, b) {
|
13
|
+
if (a.level === b.level) {
|
14
|
+
return a.obj.createTime - b.obj.createTime;
|
15
|
+
} else {
|
16
|
+
return a.level - b.level;
|
17
|
+
}
|
18
|
+
};
|
19
|
+
|
12
20
|
export default function (topo) {
|
13
21
|
return {
|
14
22
|
// 定义 model 的初始 state
|
@@ -54,7 +54,7 @@ var _ElementTagTipConfig = _interopRequireDefault(require("./tagstips/ElementTag
|
|
54
54
|
var _SelectionModel = _interopRequireDefault(require("./SelectionModel"));
|
55
55
|
|
56
56
|
// eslint-disable-next-line no-undef
|
57
|
-
var version = typeof "7.0.
|
57
|
+
var version = typeof "7.0.10" === 'string' ? "7.0.10" : null;
|
58
58
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
59
59
|
/**
|
60
60
|
* 拓扑显示和编辑
|
@@ -15,13 +15,19 @@ var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-ut
|
|
15
15
|
|
16
16
|
var _lodash = _interopRequireDefault(require("lodash"));
|
17
17
|
|
18
|
-
var _topoData = require("../../../utils/topoData");
|
19
|
-
|
20
18
|
/**
|
21
19
|
* 告警
|
22
20
|
*/
|
23
21
|
var showAlarmStatus = ["toDeal", "dealing", "change", "woDealing"];
|
24
22
|
|
23
|
+
var sortList = function sortList(a, b) {
|
24
|
+
if (a.level === b.level) {
|
25
|
+
return a.obj.createTime - b.obj.createTime;
|
26
|
+
} else {
|
27
|
+
return a.level - b.level;
|
28
|
+
}
|
29
|
+
};
|
30
|
+
|
25
31
|
function _default(topo) {
|
26
32
|
return {
|
27
33
|
// 定义 model 的初始 state
|
@@ -124,7 +130,7 @@ function _default(topo) {
|
|
124
130
|
}) < 0) {
|
125
131
|
var newArr = [].concat(doc[rid]);
|
126
132
|
newArr.push(item);
|
127
|
-
doc[rid] = newArr.sort(
|
133
|
+
doc[rid] = newArr.sort(sortList);
|
128
134
|
}
|
129
135
|
} else {
|
130
136
|
doc[rid] = [item];
|
@@ -155,7 +161,7 @@ function _default(topo) {
|
|
155
161
|
status: old.status
|
156
162
|
}));
|
157
163
|
|
158
|
-
doc[rid] = _newArr.sort(
|
164
|
+
doc[rid] = _newArr.sort(sortList);
|
159
165
|
|
160
166
|
_rlog["default"].debug("告警级别变更", doc[rid], item);
|
161
167
|
} else {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@riil-frontend/component-topology",
|
3
|
-
"version": "7.0.
|
3
|
+
"version": "7.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@7.0.
|
119
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@7.0.10/build/index.html",
|
120
120
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
121
121
|
}
|