立即发布 截止时间

competitions
杨树林 5 years ago
parent 083ed87e1d
commit 6df91dab7f

@ -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 && <a href="javascript:void(0)" className="color-grey-9" onClick={this.homeworkstart}>{ isPublish ? "立即发布" : "立即截止" }</a> }
</div>

Loading…
Cancel
Save