dev_oauth
杨树明 6 years ago
parent 077c205bd9
commit 58a4655d7b

@ -80,7 +80,8 @@ class GraduationTaskssettingapp extends Component{
starttime:undefined,
DownloadType:false,
DownloadMessageval:undefined,
commentstatustype:undefined
commentstatustype:undefined,
commenttimeone:undefined
}
}
@ -347,26 +348,29 @@ class GraduationTaskssettingapp extends Component{
this.setState({
latetime:newlatetime,
crosscomment:true,
commenttime:newcommenttime
commenttime:newcommenttime,
commenttimeone:newcommenttime,
})
}else{
if(endtimetype===true){
this.setState({
crosscomment:true,
commenttime:newcommenttime
commenttime:newcommenttime,
commenttimeone:newcommenttime,
})
}else{
this.setState({
end_time:newlatetime,
crosscomment:true,
commenttime:newcommenttime
commenttime:newcommenttime,
commenttimeone:newcommenttime,
})
}
}
}
funcrosscomment=(e)=>{
let {latetime,end_time,allowlate,commenttime}=this.state;
let {latetime,end_time,allowlate,commenttime,commenttimeone}=this.state;
let commenttimetype=commenttime===null||commenttime==="";
let newlatetimea=moment(new Date()).add(7, 'days').format("YYYY-MM-DD HH:mm");
@ -400,6 +404,7 @@ class GraduationTaskssettingapp extends Component{
}else{
this.setState({
crosscomment:e.target.checked,
commenttime:commenttimeone,
})
}

Loading…
Cancel
Save