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

fix: 修改组态

parent fccbb4d7
...@@ -475,11 +475,17 @@ const ConfigurationView = (props) => { ...@@ -475,11 +475,17 @@ const ConfigurationView = (props) => {
if (!(item.shName || item.figure === 'updateTime') || item.stationName !== name) if (!(item.shName || item.figure === 'updateTime') || item.stationName !== name)
return false; return false;
const node = myDiagram.model.findNodeDataForKey(item.key); const node = myDiagram.model.findNodeDataForKey(item.key);
const onlineList = onLineDataMethod(mqttData); if (!item.stateName) {
if (onlineList) { const onlineList = onLineDataMethod(mqttData);
node.realType = onlineList.Value ? '在线' : '离线'; if (onlineList) {
myDiagram.model.setDataProperty(node, 'realType', onlineList.Value ? '在线' : '离线'); node.realType = onlineList.Value * 1 ? '在线' : '离线';
onlineColorMethod(node); myDiagram.model.setDataProperty(
node,
'realType',
onlineList.Value * 1 ? '在线' : '离线',
);
onlineColorMethod(node);
}
} }
mqttData.forEach((list) => { mqttData.forEach((list) => {
if (node.figure === 'updateTime') { 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