|
|
@ -35,7 +35,8 @@ class Immediatelypublish extends Component{
|
|
|
|
modalsType:false,
|
|
|
|
modalsType:false,
|
|
|
|
modalsTopval:"",
|
|
|
|
modalsTopval:"",
|
|
|
|
loadtype:false,
|
|
|
|
loadtype:false,
|
|
|
|
chooseId:undefined
|
|
|
|
chooseId:undefined,
|
|
|
|
|
|
|
|
immediatelyopen:false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//立即发布
|
|
|
|
//立即发布
|
|
|
@ -73,6 +74,7 @@ class Immediatelypublish extends Component{
|
|
|
|
Saves:this.homeworkstartend,
|
|
|
|
Saves:this.homeworkstartend,
|
|
|
|
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,
|
|
|
|
|
|
|
|
immediatelyopen:response.data.course_groups===null||response.data.course_groups.length===0?false:true,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -100,6 +102,7 @@ class Immediatelypublish extends Component{
|
|
|
|
Saves:this.homeworkstartend,
|
|
|
|
Saves:this.homeworkstartend,
|
|
|
|
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,
|
|
|
|
|
|
|
|
immediatelyopen:response.data.course_groups===null||response.data.course_groups.length===0?false:true,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch((error) => {
|
|
|
|
}).catch((error) => {
|
|
|
@ -386,6 +389,7 @@ class Immediatelypublish 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}
|
|
|
|
/>:""}
|
|
|
|
/>:""}
|
|
|
|
|
|
|
|
|
|
|
|
{/* 公用的提示弹框 */}
|
|
|
|
{/* 公用的提示弹框 */}
|
|
|
|