Commit 3807be27 authored by 李纪文's avatar 李纪文

fix: 修改组态

parent fccbb4d7
......@@ -475,11 +475,17 @@ const ConfigurationView = (props) => {
if (!(item.shName || item.figure === 'updateTime') || item.stationName !== name)
return false;
const node = myDiagram.model.findNodeDataForKey(item.key);
const onlineList = onLineDataMethod(mqttData);
if (onlineList) {
node.realType = onlineList.Value ? '在线' : '离线';
myDiagram.model.setDataProperty(node, 'realType', onlineList.Value ? '在线' : '离线');
onlineColorMethod(node);
if (!item.stateName) {
const onlineList = onLineDataMethod(mqttData);
if (onlineList) {
node.realType = onlineList.Value * 1 ? '在线' : '离线';
myDiagram.model.setDataProperty(
node,
'realType',
onlineList.Value * 1 ? '在线' : '离线',
);
onlineColorMethod(node);
}
}
mqttData.forEach((list) => {
if (node.figure === 'updateTime') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment