mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-22 17:26:46 +08:00
学员删除
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user