dev_auth
杨树林 5 years ago
parent 2dc4664a2c
commit f5fe485400

@ -652,7 +652,7 @@ class Trainingjobsetting extends Component {
// console.log(len);
}
var max = latedeductiontwos + len;
let max = latedeductiontwos + len;
// if (max > 100) {
// console.log("max>100");
// this.props.showNotification(`总分值+效率效率分之和要等于100现在分值为` + max);
@ -663,6 +663,20 @@ class Trainingjobsetting extends Component {
// this.props.showNotification(`总分值+效率效率分之和要等于100现在分值为` + max);
// return;
// }
if (this.state.proportion === "自定义分值") {
try {
if(parseFloat(this.state.CalculateMax)!==parseFloat(max)){
this.props.showNotification(`总分值不等于效率分和关卡分之和!`);
this.scrollToAnchor("zongfentimeid");
return;
}
}catch (e) {
}
}
}
var url = `/homework_commons/${homeworkid}/update_settings.json`;

Loading…
Cancel
Save