|
|
|
@ -54,7 +54,8 @@ class ShixunHomework extends Component{
|
|
|
|
|
course_groupslist:[],
|
|
|
|
|
checkedtype:false,
|
|
|
|
|
checkBoxValues:[],
|
|
|
|
|
isSpin:false
|
|
|
|
|
isSpin:false,
|
|
|
|
|
antIcon:false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
updateNavSuccess=()=>{
|
|
|
|
@ -660,10 +661,11 @@ class ShixunHomework extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
savedelete=()=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
antIcon:true
|
|
|
|
|
})
|
|
|
|
|
let {Coursename,page,order,checkBoxValues,datas}=this.state;
|
|
|
|
|
let category_id=this.props.match.params.category_id;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const cid = this.props.match.params.coursesId
|
|
|
|
|
const url = `/courses/`+cid+`/homework_commons/multi_destroy.json`;
|
|
|
|
|
axios.post(url, {
|
|
|
|
@ -691,11 +693,17 @@ class ShixunHomework extends Component{
|
|
|
|
|
Loadtype:false,
|
|
|
|
|
checkBoxValues:[],
|
|
|
|
|
checkedtype:false,
|
|
|
|
|
antIcon:false
|
|
|
|
|
})
|
|
|
|
|
this.props.showNotification(response.data.message)
|
|
|
|
|
this.homeworkupdatalist(Coursename,page,order);
|
|
|
|
|
this.props.updataleftNavfun()
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
antIcon:false
|
|
|
|
|
})
|
|
|
|
|
this.props.showNotification(response.data.message)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(function (error) {
|
|
|
|
|
console.log(error);
|
|
|
|
@ -923,6 +931,7 @@ class ShixunHomework extends Component{
|
|
|
|
|
course_modules,
|
|
|
|
|
shixunpath,
|
|
|
|
|
order,
|
|
|
|
|
antIcon,
|
|
|
|
|
}=this.state;
|
|
|
|
|
|
|
|
|
|
let main_id=this.props.match.params.main_id;
|
|
|
|
@ -938,6 +947,7 @@ class ShixunHomework extends Component{
|
|
|
|
|
modalSave={this.state.ModalSave}
|
|
|
|
|
modalsBottomval={this.state.ModalsBottomval}
|
|
|
|
|
loadtype={this.state.Loadtype}
|
|
|
|
|
antIcon={this.state.antIcon}
|
|
|
|
|
/>:""}
|
|
|
|
|
{/*立即发布*/}
|
|
|
|
|
{visible===true?<HomeworkModal
|
|
|
|
|