Browse Source

feat:fix bug

dev
zhaobing’ 1 year ago
parent
commit
306675fd23
  1. 5
      web/client/src/sections/install/containers/cacl.jsx

5
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 = {

Loading…
Cancel
Save