实训作业、分组、普通作业立即发布调整

courseware
杨树明 5 years ago
parent 62c6a1b0f8
commit e6ba3fe70e

@ -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>

@ -205,7 +205,7 @@ class OneSelfOrderModal extends Component{
}
propsSaves=(ds,endtime)=>{
debugger
this.setState({
endtimetype:false
})

@ -353,7 +353,7 @@ class PollDetailTabForthRules extends Component{
render(){
let {rules,course_group,flagPageEdit}=this.state
let isAdmin=this.props.isAdmin();
console.log(flagPageEdit)
// console.log(flagPageEdit)
return(
<div className="bor-top-greyE pt20">
<p className="clearfix mb10">

Loading…
Cancel
Save