|
|
|
@ -322,9 +322,14 @@ class Trainingjobsetting extends Component {
|
|
|
|
|
};
|
|
|
|
|
challenge_scoredata.push(datas[i].challenge_score);
|
|
|
|
|
array.push(object)
|
|
|
|
|
console.log("datas[i].challenge_score");
|
|
|
|
|
console.log(i);
|
|
|
|
|
console.log(datas[i].challenge_score);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
console.log("提交的数据"+"pustdate");
|
|
|
|
|
console.log("提交的数据"+"pustdate");
|
|
|
|
|
|
|
|
|
|
if (this.state.jobsettingsdata.data.unified_setting === true) {
|
|
|
|
|
if (this.state.unifiedsetting === true) {
|
|
|
|
@ -560,14 +565,20 @@ class Trainingjobsetting extends Component {
|
|
|
|
|
if(challenge_scoredata.length>0){
|
|
|
|
|
var len = 0;
|
|
|
|
|
for (var k = 0; k < challenge_scoredata.length; k++) {
|
|
|
|
|
len = len + challenge_scoredata[k];
|
|
|
|
|
len = len + parseFloat(challenge_scoredata[k]);
|
|
|
|
|
console.log(len);
|
|
|
|
|
console.log(challenge_scoredata[k]);
|
|
|
|
|
console.log(len);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
var max = latedeductiontwos + len;
|
|
|
|
|
if (max > 100) {
|
|
|
|
|
console.log("max>100");
|
|
|
|
|
this.props.showNotification(`总分值+效率占比分之和要等于100,现在分值为` + max);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(max<100){
|
|
|
|
|
console.log("max<100");
|
|
|
|
|
this.props.showNotification(`总分值+效率占比分之和要等于100,现在分值为` + max);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|