|
|
|
@ -182,17 +182,20 @@ |
|
|
|
|
let expData = res.data.data |
|
|
|
|
let form = this.form |
|
|
|
|
let score = form.score |
|
|
|
|
if(score){ |
|
|
|
|
expData.map(n => { |
|
|
|
|
if(n.isError){ |
|
|
|
|
score -= n.codeScore |
|
|
|
|
n.codeScore = 0 |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
form.score = score |
|
|
|
|
|
|
|
|
|
if(expData){ |
|
|
|
|
if(score){ |
|
|
|
|
expData.map(n => { |
|
|
|
|
if(n.isError){ |
|
|
|
|
score -= n.codeScore |
|
|
|
|
n.codeScore = 0 |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
form.score = score |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.expData = expData |
|
|
|
|
} |
|
|
|
|
console.log(22,this.form) |
|
|
|
|
this.expData = expData |
|
|
|
|
this.infoData.push({ |
|
|
|
|
workNumber: form.workNumber, |
|
|
|
|
experimentalClassName: form.experimentalClassName, |
|
|
|
@ -216,17 +219,20 @@ console.log(22,this.form) |
|
|
|
|
let expData = res.data.data |
|
|
|
|
let form = this.form |
|
|
|
|
let score = form.score |
|
|
|
|
if(score){ |
|
|
|
|
expData.map(n => { |
|
|
|
|
if(n.isError){ |
|
|
|
|
score -= n.codeScore |
|
|
|
|
n.codeScore = 0 |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
form.score = score |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.expData = expData |
|
|
|
|
if(expData){ |
|
|
|
|
if(score){ |
|
|
|
|
expData.map(n => { |
|
|
|
|
if(n.isError){ |
|
|
|
|
score -= n.codeScore |
|
|
|
|
n.codeScore = 0 |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
form.score = score |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.expData = expData |
|
|
|
|
} |
|
|
|
|
this.infoData.push({ |
|
|
|
|
workNumber: form.workNumber, |
|
|
|
|
experimentalClassName: form.experimentalClassName, |
|
|
|
|