dev_forum
杨树林 5 years ago
parent 231939f47a
commit eaff514421

@ -598,26 +598,23 @@ class Trainingjobsetting extends Component {
}else{ }else{
// //非统一配置 // //非统一配置
// console.log("非统一设置"); // console.log("非统一设置");
// let rulesdata=this.state.rulesdata; let rulesdata=this.state.rulesdata;
//
// rulesdata.map((item,key)=>{ let newlist=[]
//
// if(item.publish_time==="Invalid date"){ rulesdata.map((item,key)=>{
// item.publish_time=""
// } if(item.publish_time==="Invalid date"||item.end_time==="Invalid date"||item.publiend_timesh_time==="Invalid date"){
// if(item.end_time==="Invalid date"){
// item.end_time="" }else{
// } newlist.push(item)
// if(item.publiend_timesh_time==="Invalid date"){ }
// item.publiend_timesh_time=""
// } })
// })
let {rules}=this.state;
var mydatas=[];
data = { data = {
unified_setting: this.state.unifiedsetting, //非统一配置 unified_setting: this.state.unifiedsetting, //非统一配置
group_settings: rules, group_settings: newlist,
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