|
|
|
@ -382,22 +382,26 @@ class GraduationTaskssettingapp extends Component{
|
|
|
|
|
let newcommenttimed=moment(end_time).add(8, 'days').format("YYYY-MM-DD HH:mm");
|
|
|
|
|
|
|
|
|
|
if(e.target.checked===true){
|
|
|
|
|
if(commenttimetype===true){
|
|
|
|
|
|
|
|
|
|
if(allowlate===1||allowlate===true){
|
|
|
|
|
if(latetime===null||latetime===""){
|
|
|
|
|
this.updatesfuncrosscomment(1,newlatetimea,newcommenttimea)
|
|
|
|
|
if(commenttimetype===true){
|
|
|
|
|
|
|
|
|
|
if(allowlate===1||allowlate===true){
|
|
|
|
|
if(latetime===null||latetime===""){
|
|
|
|
|
this.updatesfuncrosscomment(1,newlatetimea,newcommenttimea)
|
|
|
|
|
}else{
|
|
|
|
|
this.updatesfuncrosscomment(1,newlatetimes,newcommenttimes)
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
this.updatesfuncrosscomment(1,newlatetimes,newcommenttimes)
|
|
|
|
|
if(end_time===null||end_time===""){
|
|
|
|
|
this.updatesfuncrosscomment(2,newend_timeb,newcommenttimeb)
|
|
|
|
|
}else{
|
|
|
|
|
this.updatesfuncrosscomment(2,newend_timed,newcommenttimed)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
if(end_time===null||end_time===""){
|
|
|
|
|
this.updatesfuncrosscomment(2,newend_timeb,newcommenttimeb)
|
|
|
|
|
}else{
|
|
|
|
|
this.updatesfuncrosscomment(2,newend_timed,newcommenttimed)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.setState({
|
|
|
|
|
crosscomment:e.target.checked,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|