|
|
|
@ -25,7 +25,9 @@ class PublishRightnow extends Component{
|
|
|
|
|
Cancel:undefined,
|
|
|
|
|
Saves:undefined,
|
|
|
|
|
Topvalright:undefined,
|
|
|
|
|
modallate_time:undefined
|
|
|
|
|
modallate_time:undefined,
|
|
|
|
|
immediatelyopen:false,
|
|
|
|
|
starttimeslate_time:undefined
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
open = (usingCheckBeforePost) => {
|
|
|
|
@ -71,7 +73,8 @@ class PublishRightnow extends Component{
|
|
|
|
|
Cancel:this.homeworkhide,
|
|
|
|
|
Saves:this.homeworkstartend,
|
|
|
|
|
typs:showdatatypes ? "start" : "end",
|
|
|
|
|
modallate_time:showdatatypes?response.data.late_time:undefined,
|
|
|
|
|
immediatelyopen:true,
|
|
|
|
|
modallate_time:showdatatypes?this.state.starttimeslate_time:undefined,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
homeworkhide=()=>{
|
|
|
|
@ -94,7 +97,8 @@ class PublishRightnow extends Component{
|
|
|
|
|
addname:undefined,
|
|
|
|
|
addnametype:false,
|
|
|
|
|
addnametab:undefined,
|
|
|
|
|
modallate_time:undefined
|
|
|
|
|
modallate_time:undefined,
|
|
|
|
|
immediatelyopen:false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -190,6 +194,7 @@ class PublishRightnow extends Component{
|
|
|
|
|
this.setState({
|
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
|
starttimesend:response.data.end_time===undefined||response.data.end_time===null||response.data.end_time===""?undefined:response.data.end_time,
|
|
|
|
|
starttimeslate_time:response.data.late_time===undefined||response.data.late_time===null||response.data.late_time===""?undefined:response.data.late_time,
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
.catch(function (error) {
|
|
|
|
@ -263,6 +268,8 @@ class PublishRightnow extends Component{
|
|
|
|
|
starttimes={this.state.starttimes}
|
|
|
|
|
starttimesend={this.state.starttimesend}
|
|
|
|
|
typs={this.state.typs}
|
|
|
|
|
immediatelyopen={this.state.immediatelyopen}
|
|
|
|
|
modallate_time={this.state.starttimeslate_time}
|
|
|
|
|
/>:""}
|
|
|
|
|
{ showActionButton && <a href="javascript:void(0)" className="color-grey-9" onClick={this.homeworkstart}>{ showdatatypes ? "立即发布" : "立即截止" }</a> }
|
|
|
|
|
</div>
|
|
|
|
|