|
|
|
@ -96,7 +96,7 @@ class PublishRightnow extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
homeworkstartend=(arg_group_ids,endtime)=>{
|
|
|
|
|
debugger
|
|
|
|
|
|
|
|
|
|
if (this.usingCheckBeforePost && this.props.checkBeforePost) {
|
|
|
|
|
const goOn = this.props.checkBeforePost();
|
|
|
|
|
if (!goOn) {
|
|
|
|
@ -104,7 +104,7 @@ class PublishRightnow extends Component{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
debugger
|
|
|
|
|
|
|
|
|
|
const isPublish = this.props.isPublish;
|
|
|
|
|
let group_ids = arg_group_ids
|
|
|
|
|
if (this.usingCheckBeforePost) {
|
|
|
|
@ -112,7 +112,7 @@ class PublishRightnow extends Component{
|
|
|
|
|
return item.id
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
debugger
|
|
|
|
|
|
|
|
|
|
if(this.state.course_groups.length>0){
|
|
|
|
|
if (this.state.course_groups.length && (!group_ids || group_ids&&group_ids.length == 0)) {
|
|
|
|
|
this.props.showNotification('请至少选择一个分班');
|
|
|
|
|