diff --git a/src/views/centerairC/sysControl/index.vue b/src/views/centerairC/sysControl/index.vue index 6be1e67..12e8327 100644 --- a/src/views/centerairC/sysControl/index.vue +++ b/src/views/centerairC/sysControl/index.vue @@ -268,24 +268,24 @@ export default { } // 记录阀关到位状态 if ( - child.name.includes("关到位") && + child.name.endsWith("关到位") && Number(child.value) == 0 ) { valveClosed = false; } else if ( - child.name.includes("关到位") && + child.name.endsWith("关到位") && Number(child.value) == 1 ) { valveClosed = true; } // 记录阀开到位的状态 if ( - child.name.includes("开到位") && + child.name.endsWith("开到位") && Number(child.value) == 0 ) { valveOpened = false; } else if ( - child.name.includes("开到位") && + child.name.endsWith("开到位") && Number(child.value) == 1 ) { valveOpened = true;