@riil-frontend/component-topology 11.0.20 → 11.0.21
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/models/TopoApp.js +1 -1
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/services/index.js +1 -1
- package/lib/core/models/TopoApp.js +1 -1
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/services/index.js +4 -4
- package/package.json +2 -2
@@ -24,7 +24,7 @@ import ElementTagTipConfig from "./tagstips/ElementTagTipConfig";
|
|
24
24
|
import SelectionModel from "./SelectionModel";
|
25
25
|
import CiCache from "./cache/CiCache"; // eslint-disable-next-line no-undef
|
26
26
|
|
27
|
-
var version = typeof "11.0.
|
27
|
+
var version = typeof "11.0.21" === 'string' ? "11.0.21" : null;
|
28
28
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
29
29
|
/**
|
30
30
|
* 拓扑显示和编辑
|
@@ -2,9 +2,9 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
3
3
|
import { request } from '@riil-frontend/component-topology-utils';
|
4
4
|
import rlog from '@riil-frontend/component-topology-utils/es/rlog';
|
5
|
-
import { formatMetric } from "../../../../../../../../../models/attributeFormatter";
|
6
5
|
import ciTypeCache from "../../../../../../../../../models/cache/CiTypeCache";
|
7
6
|
import { INTERFACE_METRIC_CODES } from "../constants";
|
7
|
+
import { formatMetric } from "../../../../../../../../../utils/metricUtil";
|
8
8
|
export function queryAssetModel(_x) {
|
9
9
|
return _queryAssetModel.apply(this, arguments);
|
10
10
|
}
|
@@ -56,7 +56,7 @@ var _SelectionModel = _interopRequireDefault(require("./SelectionModel"));
|
|
56
56
|
var _CiCache = _interopRequireDefault(require("./cache/CiCache"));
|
57
57
|
|
58
58
|
// eslint-disable-next-line no-undef
|
59
|
-
var version = typeof "11.0.
|
59
|
+
var version = typeof "11.0.21" === 'string' ? "11.0.21" : null;
|
60
60
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
61
61
|
/**
|
62
62
|
* 拓扑显示和编辑
|
@@ -20,12 +20,12 @@ var _componentTopologyUtils = require("@riil-frontend/component-topology-utils")
|
|
20
20
|
|
21
21
|
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
22
22
|
|
23
|
-
var _attributeFormatter = require("../../../../../../../../../models/attributeFormatter");
|
24
|
-
|
25
23
|
var _CiTypeCache = _interopRequireDefault(require("../../../../../../../../../models/cache/CiTypeCache"));
|
26
24
|
|
27
25
|
var _constants = require("../constants");
|
28
26
|
|
27
|
+
var _metricUtil = require("../../../../../../../../../utils/metricUtil");
|
28
|
+
|
29
29
|
function queryAssetModel(_x) {
|
30
30
|
return _queryAssetModel.apply(this, arguments);
|
31
31
|
}
|
@@ -134,7 +134,7 @@ function _queryLinkLatestMetrics() {
|
|
134
134
|
return {
|
135
135
|
code: code,
|
136
136
|
name: metricDef.name,
|
137
|
-
value: (0,
|
137
|
+
value: (0, _metricUtil.formatMetric)(value, metricDef) || '',
|
138
138
|
ts: metric === null || metric === void 0 ? void 0 : metric.ts
|
139
139
|
};
|
140
140
|
});
|
@@ -181,7 +181,7 @@ function _queryLinkInterfacesLatestMetrics() {
|
|
181
181
|
|
182
182
|
var metricDef = _CiTypeCache["default"].getMetric(linkCi.ciType || linkCi.typeCode, code);
|
183
183
|
|
184
|
-
var formatValue = (0,
|
184
|
+
var formatValue = (0, _metricUtil.formatMetric)(value, metricDef);
|
185
185
|
res[code] = formatValue === 'undefined' ? '-' : formatValue;
|
186
186
|
return res;
|
187
187
|
}, {});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@riil-frontend/component-topology",
|
3
|
-
"version": "11.0.
|
3
|
+
"version": "11.0.21",
|
4
4
|
"description": "拓扑",
|
5
5
|
"scripts": {
|
6
6
|
"start": "build-scripts start",
|
@@ -118,6 +118,6 @@
|
|
118
118
|
"access": "public"
|
119
119
|
},
|
120
120
|
"license": "MIT",
|
121
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@11.0.
|
121
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@11.0.21/build/index.html",
|
122
122
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
123
123
|
}
|