|
|
|
@ -50,10 +50,14 @@ function CourseGroupChooserModal({ course_groups = [], isAdminOrCreator, item, i
|
|
|
|
|
application_id: record.application_id,
|
|
|
|
|
approval: approval,
|
|
|
|
|
group_id: arg_course_groups
|
|
|
|
|
})
|
|
|
|
|
props.showNotification(`已${approval == 1? '同意' : '拒绝'}`)
|
|
|
|
|
fetchAll(1)
|
|
|
|
|
modalEl.current.setVisible(false)
|
|
|
|
|
}).then((result) => {
|
|
|
|
|
if (result.data.status === 0) {
|
|
|
|
|
props.showNotification(`已${approval == 1? '同意' : '拒绝'}`)
|
|
|
|
|
fetchAll(1)
|
|
|
|
|
modalEl.current.setVisible(false)
|
|
|
|
|
window.location.reload();
|
|
|
|
|
}})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return (
|
|
|
|
|
<ModalWrapper
|
|
|
|
|