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

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

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

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

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

Loading…
Cancel
Save