From 6df91dab7f7354f8f00938850870aaed2ee2eaca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Sat, 12 Oct 2019 15:25:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=8B=E5=8D=B3=E5=8F=91=E5=B8=83=20?= =?UTF-8?q?=E6=88=AA=E6=AD=A2=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/courses/busyWork/PublishRightnow.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/public/react/src/modules/courses/busyWork/PublishRightnow.js b/public/react/src/modules/courses/busyWork/PublishRightnow.js index da2054124..93f740735 100644 --- a/public/react/src/modules/courses/busyWork/PublishRightnow.js +++ b/public/react/src/modules/courses/busyWork/PublishRightnow.js @@ -23,7 +23,8 @@ class PublishRightnow extends Component{ Savesname:undefined, Cancel:undefined, Saves:undefined, - Topvalright:undefined + Topvalright:undefined, + starttimesend:undefined, } } open = (usingCheckBeforePost) => { @@ -83,7 +84,8 @@ class PublishRightnow extends Component{ StudentList_value:undefined, addname:undefined, addnametype:false, - addnametab:undefined + addnametab:undefined, + starttimesend:undefined, }) } @@ -150,9 +152,12 @@ class PublishRightnow extends Component{ this.setState({ visible : false }) return; } + const dataformat = 'YYYY-MM-DD HH:mm'; this.showDialog() this.setState({ course_groups: response.data.course_groups, + starttimesend:response.data.end_time===undefined||response.data.end_time===null||response.data.end_time===""?undefined:moment(response.data.end_time, dataformat), + }) }) .catch(function (error) { @@ -203,6 +208,7 @@ class PublishRightnow extends Component{ usingCheckBeforePost= {this.usingCheckBeforePost} onToPublishClick={this.props.onToPublishClick} typs={this.state.typs} + starttimesend={this.state.starttimesend} />:""} { showActionButton && { isPublish ? "立即发布" : "立即截止" } }