From 306675fd233d69e27ad2b8783a27f21bea9b6542 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zhaobing=E2=80=99?= Date: Tue, 21 Nov 2023 15:15:27 +0800 Subject: [PATCH] feat:fix bug --- web/client/src/sections/install/containers/cacl.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/client/src/sections/install/containers/cacl.jsx b/web/client/src/sections/install/containers/cacl.jsx index a8b24e0..4d066a8 100644 --- a/web/client/src/sections/install/containers/cacl.jsx +++ b/web/client/src/sections/install/containers/cacl.jsx @@ -115,11 +115,11 @@ const Calc = (props) => { let cfg if (methodType == "interrupt") { cfg = abnParam.find(a => a.abnType == 1 && a.factorId == factorId - && a.sensorId == selectIds[i]) + && a.sensorId == project+':'+ selectIds[i]) } else { let type = methodType == "burr" ? 2 : 3 cfg = abnParam.find(a => a.abnType == type && a.factorId == factorId - && a.sensorId == selectIds[i]) + && a.sensorId ==project+':'+ selectIds[i]) } if (!cfg) { toSave.push(selectIds[i]) @@ -140,6 +140,7 @@ const Calc = (props) => { form2.current.validate().then(res => { if (sensorId.length != 0) { let ids = getStationstoSave() + console.log('xx111',ids) if (ids.toSave.length != 0) { let paramJson = getJson(res) let data = {