dev_forum
杨树明 5 years ago
parent 11e8cc6223
commit a18caf2525

@ -577,6 +577,8 @@ class Trainingjobsetting extends Component {
this.props.showNotification(`没有关卡不能更新设置`); this.props.showNotification(`没有关卡不能更新设置`);
return; return;
} }
if(this.state.unifiedsetting === true){ if(this.state.unifiedsetting === true){
console.log("统一设置"); console.log("统一设置");
data = { data = {
@ -594,11 +596,27 @@ class Trainingjobsetting extends Component {
score_open: this.state.publicwork, score_open: this.state.publicwork,
} }
}else{ }else{
//非统一配置 // //非统一配置
console.log("非统一设置"); // console.log("非统一设置");
// let rulesdata=this.state.rulesdata;
//
// rulesdata.map((item,key)=>{
//
// if(item.publish_time==="Invalid date"){
// item.publish_time=""
// }
// if(item.end_time==="Invalid date"){
// item.end_time=""
// }
// if(item.publiend_timesh_time==="Invalid date"){
// item.publiend_timesh_time=""
// }
// })
//
let {rules}=this.state;
data = { data = {
unified_setting: this.state.unifiedsetting, //非统一配置 unified_setting: this.state.unifiedsetting, //非统一配置
group_settings: this.state.rulesdata, group_settings: rules,
allow_late: this.state.allowreplenishment, //补交 allow_late: this.state.allowreplenishment, //补交
late_penalty: parseInt(this.state.latededuction), //迟交扣分 late_penalty: parseInt(this.state.latededuction), //迟交扣分
late_time: moment(this.state.late_time).format('YYYY-MM-DD HH:mm'), //结束时间 late_time: moment(this.state.late_time).format('YYYY-MM-DD HH:mm'), //结束时间

Loading…
Cancel
Save