coolcare-lite-scada-component 1.0.65 → 1.0.67
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.
|
@@ -255,6 +255,7 @@ var DialogPointHistory = function DialogPointHistory(_ref) {
|
|
|
255
255
|
}),
|
|
256
256
|
smooth: false,
|
|
257
257
|
showAllSymbol: true,
|
|
258
|
+
identifierName: item.identifierName,
|
|
258
259
|
symbolSize: 1.5,
|
|
259
260
|
data: (_ref4 = item.pointDataList || item.indicatorDataList) === null || _ref4 === void 0 ? void 0 : _ref4.map(function (dataItem) {
|
|
260
261
|
return [new Date(dataItem.ts).getTime(), dataItem.val];
|
|
@@ -18,7 +18,7 @@ function usePointWatch(point, namespace) {
|
|
|
18
18
|
var eventHandler = function eventHandler(val) {
|
|
19
19
|
setPointData(val);
|
|
20
20
|
};
|
|
21
|
-
var eventName = "point-update-".concat('pointId' in point ? point.pointId
|
|
21
|
+
var eventName = "point-update-".concat('pointId' in point ? point.pointId : 'identifierName' in point ? point.identifierName : 'meterId' in point ? point.meterId : 'indicatorNo' in point ? point.indicatorNo : '', "-").concat(namespace !== null && namespace !== void 0 ? namespace : 0);
|
|
22
22
|
emitter.on(eventName, eventHandler);
|
|
23
23
|
return function () {
|
|
24
24
|
// TODO x6 react 组件的 unmount 没有被触发
|