|
|
|
@ -270,12 +270,13 @@ class studentsList extends Component{
|
|
|
|
|
|
|
|
|
|
addStudentSuccessListener=(e, data)=>{
|
|
|
|
|
const params = JSON.parse(data)
|
|
|
|
|
this.props.updataleftNavfun()
|
|
|
|
|
const course_group_id = this.props.match.params.course_group_id
|
|
|
|
|
const coursesId = this.props.match.params.coursesId
|
|
|
|
|
if (params.course_group_id == course_group_id) {
|
|
|
|
|
this.fetchAll(1)
|
|
|
|
|
} else {
|
|
|
|
|
this.props.history.push(`/courses/${coursesId}/course_groups/${params.course_group_id}`)
|
|
|
|
|
this.props.history.push(`/courses/${coursesId}/course_groups/${params.course_group_id || '0'}`)
|
|
|
|
|
}
|
|
|
|
|
// console.log('addStudentSuccessListener', data)
|
|
|
|
|
}
|
|
|
|
@ -465,6 +466,7 @@ class studentsList extends Component{
|
|
|
|
|
}).then((result)=>{
|
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
|
this.props.showNotification('删除成功')
|
|
|
|
|
this.props.updataleftNavfun()
|
|
|
|
|
this.fetchAll()
|
|
|
|
|
this.setState({checkBoxValues: []})
|
|
|
|
|
trigger('updatabanner')
|
|
|
|
|