|
@@ -49,11 +49,16 @@
|
|
});
|
|
});
|
|
|
|
|
|
const handleDelete = async (record: Recordable) => {
|
|
const handleDelete = async (record: Recordable) => {
|
|
- await postBandingTaskClassRemoveStudent({
|
|
|
|
- bandingTaskClassId: modelRef.value.id,
|
|
|
|
- newStudentIds: [record.id],
|
|
|
|
- });
|
|
|
|
- reload();
|
|
|
|
|
|
+ try {
|
|
|
|
+ setModalProps({ loading: true });
|
|
|
|
+ await postBandingTaskClassRemoveStudent({
|
|
|
|
+ bandingTaskClassId: modelRef.value.id,
|
|
|
|
+ newStudentIds: [record.id],
|
|
|
|
+ });
|
|
|
|
+ reload();
|
|
|
|
+ } finally {
|
|
|
|
+ setModalProps({ loading: false });
|
|
|
|
+ }
|
|
};
|
|
};
|
|
|
|
|
|
const handleCancel = () => {
|
|
const handleCancel = () => {
|