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

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

Loading…
Cancel
Save