|
|
|
@ -179,8 +179,13 @@ class GraduationTasks extends Component{
|
|
|
|
|
})
|
|
|
|
|
.then((result)=>{
|
|
|
|
|
if(result.data.status==0){
|
|
|
|
|
this.setState({
|
|
|
|
|
checkBoxValues:[],
|
|
|
|
|
checkAllValue:false
|
|
|
|
|
})
|
|
|
|
|
this.fetchAll(search,page,order,15)
|
|
|
|
|
this.props.showNotification(`${result.data.message}`);
|
|
|
|
|
this.fetchAll(search,page,order,15)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}).catch((error)=>{
|
|
|
|
|
console.log(error);
|
|
|
|
@ -554,9 +559,10 @@ class GraduationTasks extends Component{
|
|
|
|
|
}
|
|
|
|
|
// 题库选用成功后刷新页面
|
|
|
|
|
useBankSuccess=(checkBoxValues,object_ids)=>{
|
|
|
|
|
// debugger
|
|
|
|
|
//debugger
|
|
|
|
|
let {search,page,order,all_count} = this.state;
|
|
|
|
|
this.fetchAll(search,page,order,all_count)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
getcourse_groupslist=(id)=>{
|
|
|
|
|
this.setState({
|
|
|
|
@ -651,7 +657,7 @@ class GraduationTasks extends Component{
|
|
|
|
|
</Link>
|
|
|
|
|
</WordsBtn> : ""}
|
|
|
|
|
|
|
|
|
|
{this.props.isAdmin() ?<UseBank {...this.props} {...this.state} object_type={"gtask"} useBankSuccess={(checkBoxValues,object_ids)=>this.useBankSuccess=(checkBoxValues,object_ids)}></UseBank>:""}
|
|
|
|
|
{this.props.isAdmin() ?<UseBank {...this.props} {...this.state} object_type={"gtask"} useBankSuccess={(checkBoxValues,object_ids)=>this.useBankSuccess(checkBoxValues,object_ids)}></UseBank>:""}
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|