From 58a4655d7b1a8264b4e20c08fb1a69ad1cbf3b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Mon, 23 Sep 2019 16:54:19 +0800 Subject: [PATCH] =?UTF-8?q?=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../graduation/tasks/GraduationTaskssetting.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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, }) }