diff --git a/public/react/src/modules/courses/busyWork/PublishRightnow.js b/public/react/src/modules/courses/busyWork/PublishRightnow.js index 93f740735..da2054124 100644 --- a/public/react/src/modules/courses/busyWork/PublishRightnow.js +++ b/public/react/src/modules/courses/busyWork/PublishRightnow.js @@ -23,8 +23,7 @@ class PublishRightnow extends Component{ Savesname:undefined, Cancel:undefined, Saves:undefined, - Topvalright:undefined, - starttimesend:undefined, + Topvalright:undefined } } open = (usingCheckBeforePost) => { @@ -84,8 +83,7 @@ class PublishRightnow extends Component{ StudentList_value:undefined, addname:undefined, addnametype:false, - addnametab:undefined, - starttimesend:undefined, + addnametab:undefined }) } @@ -152,12 +150,9 @@ 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) { @@ -208,7 +203,6 @@ class PublishRightnow extends Component{ usingCheckBeforePost= {this.usingCheckBeforePost} onToPublishClick={this.props.onToPublishClick} typs={this.state.typs} - starttimesend={this.state.starttimesend} />:""} { showActionButton && { isPublish ? "立即发布" : "立即截止" } }