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