|
|
@ -589,15 +589,15 @@ class studentsList extends Component{
|
|
|
|
<div>是否确认删除?</div>
|
|
|
|
<div>是否确认删除?</div>
|
|
|
|
</div>,
|
|
|
|
</div>,
|
|
|
|
onOk: () => {
|
|
|
|
onOk: () => {
|
|
|
|
// const cid = this.props.match.params.coursesId
|
|
|
|
|
|
|
|
const course_group_id = this.props.match.params.course_group_id
|
|
|
|
const course_group_id = this.props.match.params.course_group_id
|
|
|
|
|
|
|
|
const courseId = this.props.match.params.coursesId
|
|
|
|
|
|
|
|
|
|
|
|
const url = `/course_groups/${course_group_id}.json`
|
|
|
|
const url = `/course_groups/${course_group_id}.json`
|
|
|
|
axios.delete(url)
|
|
|
|
axios.delete(url)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
if (response.data.status == 0) {
|
|
|
|
if (response.data.status == 0) {
|
|
|
|
this.props.showNotification('删除成功')
|
|
|
|
this.props.showNotification('删除成功')
|
|
|
|
this.props.history.push(response.data.right_url)
|
|
|
|
this.props.history.push(`/courses/${coursesId}/course_groups`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(function (error) {
|
|
|
|
.catch(function (error) {
|
|
|
|