|
|
|
@ -329,10 +329,8 @@ class Poll extends Component{
|
|
|
|
|
})
|
|
|
|
|
let{type,StudentList_value,page}=this.state
|
|
|
|
|
this.InitList(type,StudentList_value,page);
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
checkBoxValues:[]
|
|
|
|
|
})
|
|
|
|
|
console.log(checkValue);
|
|
|
|
|
console.log(value);
|
|
|
|
|
let coursesId=this.props.match.params.coursesId;
|
|
|
|
|
let url=`/courses/${coursesId}/polls/publish_modal.json`;
|
|
|
|
|
axios.get(url,{
|
|
|
|
@ -350,10 +348,6 @@ class Poll extends Component{
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.setState({
|
|
|
|
|
course_groups:list,
|
|
|
|
|
checkBoxValues:value
|
|
|
|
|
})
|
|
|
|
|
this.setState({
|
|
|
|
|
modalname:"立即发布",
|
|
|
|
|
modaltype:response.data.un_publish > 0 ? 1 : 2,
|
|
|
|
@ -368,6 +362,8 @@ class Poll extends Component{
|
|
|
|
|
Savesname:"立即发布",
|
|
|
|
|
Cancel:this.homeworkhide,
|
|
|
|
|
Saves:this.homeworkstartend,
|
|
|
|
|
course_groups:list,
|
|
|
|
|
checkBoxValues:value
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
@ -424,7 +420,7 @@ class Poll extends Component{
|
|
|
|
|
addname:undefined,
|
|
|
|
|
addnametype:false,
|
|
|
|
|
addnametab:undefined,
|
|
|
|
|
checkBoxValues:[]
|
|
|
|
|
// checkBoxValues:[]
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|