学员删除

This commit is contained in:
zhangsir
2024-06-03 17:32:42 +08:00
parent 4a6a505a68
commit 1e4ee81961
2 changed files with 4 additions and 4 deletions

View File

@@ -103,7 +103,7 @@
<template #action="{ record }">
<a-space :size="2">
<slot name="extension" v-bind:data="{ record }"></slot>
<a-button v-if="checkPer(permissions)" @click="del(record.courseStuId)" type="link" danger>删除</a-button>
<a-button v-if="checkPer(permissions)" @click="del(record.courseStuId,record.studentId)" type="link" danger>删除</a-button>
</a-space>
</template>
</a-table>
@@ -291,12 +291,12 @@ const changePagination = (page) => {
searchStu();
};
function del(id) {
function del(id,studentId) {
dialog({
content: "确定删除?", ok: async () => {
if (id) {
loading.value = true;
await boeRequest(ONLINE_COURSE_DEL(id, formData.value.id));
await boeRequest(ONLINE_COURSE_DEL(id, formData.value.id,studentId));
searchStu();
}
}