diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js index c8ae81ad0..02bd222a8 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js @@ -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, }) }