dev_forum
杨树林 5 years ago
parent 46e5f6a12f
commit 3cc654f86c

@ -867,14 +867,15 @@ class Trainingjobsetting extends Component {
challenge_settingsdata[i].challenge_score =0; challenge_settingsdata[i].challenge_score =0;
} }
} }
debugger
var expzsy=0; var expzsy=0;
var bool= true; var bool= true;
if(ionsp - expzs>0){ if(ionsp - expzs>0){
expzsy=ionsp - expzs; expzsy=parseFloat(ionsp.toFixed(1)) - parseFloat(expzs.toFixed(1));
expzsy=Math.abs(expzsy);
bool=true; bool=true;
}else{ }else{
expzsy=ionsp - expzs; expzsy= parseFloat(ionsp.toFixed(1)) - parseFloat(expzs.toFixed(1));
expzsy= Math.abs(expzsy);
bool=false; bool=false;
} }
@ -884,9 +885,16 @@ class Trainingjobsetting extends Component {
macts= macts+1; macts= macts+1;
if(mact===macts){ if(mact===macts){
if(bool===true){ if(bool===true){
challenge_settingsdata[i].challenge_score = challenge_settingsdata[i].challenge_score+expzsy; challenge_settingsdata[i].challenge_score = (parseFloat(challenge_settingsdata[i].challenge_score)+parseFloat(expzsy.toFixed(1))).toFixed(1);
console.log(parseFloat(challenge_settingsdata[i].challenge_score)+parseFloat(expzsy.toFixed(1)));
console.log(parseFloat(expzsy.toFixed(1)));
}else { }else {
challenge_settingsdata[i].challenge_score = challenge_settingsdata[i].challenge_score-parseInt(expzsy);
challenge_settingsdata[i].challenge_score = (parseFloat(challenge_settingsdata[i].challenge_score)-parseFloat(expzsy.toFixed(1))).toFixed(1);
console.log(parseFloat(challenge_settingsdata[i].challenge_score)-parseFloat(expzsy.toFixed(1)));
console.log(parseFloat(expzsy.toFixed(1)));
} }
} }
}else{ }else{

Loading…
Cancel
Save