|
|
@ -185,7 +185,7 @@ class studentsList extends Component{
|
|
|
|
searchValue:e.target.value
|
|
|
|
searchValue:e.target.value
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// approval 2 - 拒绝
|
|
|
|
onAgree = (record, approval = 1) => {
|
|
|
|
onAgree = (record, approval = 1) => {
|
|
|
|
const courseId = this.props.match.params.coursesId
|
|
|
|
const courseId = this.props.match.params.coursesId
|
|
|
|
|
|
|
|
|
|
|
@ -198,7 +198,7 @@ class studentsList extends Component{
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
if (response.data.status == 0) {
|
|
|
|
if (response.data.status == 0) {
|
|
|
|
this.props.showNotification(`已${approval ? '同意' : '拒绝'}`)
|
|
|
|
this.props.showNotification(`已${approval == 1? '同意' : '拒绝'}`)
|
|
|
|
this.fetchAll(1)
|
|
|
|
this.fetchAll(1)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|