mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 03:16:44 +08:00
学员删除
This commit is contained in:
@@ -18,4 +18,4 @@ export const REFRESH_TOKEN_API = "/userbasic/refreshToken";
|
|||||||
|
|
||||||
export const COURSE_AUDIT = "/systemapi/xboe/m/course/manage/audit post formData";
|
export const COURSE_AUDIT = "/systemapi/xboe/m/course/manage/audit post formData";
|
||||||
export const OTHER_AUDIT = "/systemapi/xboe/m/course/audit/appoint post formData";
|
export const OTHER_AUDIT = "/systemapi/xboe/m/course/audit/appoint post formData";
|
||||||
export const ONLINE_COURSE_DEL = (id, courseId) => `/systemapi/xboe/school/study/course/delete-signup?id=${id}&couserId=${courseId} post`;
|
export const ONLINE_COURSE_DEL = (id, courseId,studentId) => `/systemapi/xboe/school/study/course/delete-signup?id=${id}&couserId=${courseId}&studentId=${studentId} post`;
|
||||||
@@ -103,7 +103,7 @@
|
|||||||
<template #action="{ record }">
|
<template #action="{ record }">
|
||||||
<a-space :size="2">
|
<a-space :size="2">
|
||||||
<slot name="extension" v-bind:data="{ record }"></slot>
|
<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>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
@@ -291,12 +291,12 @@ const changePagination = (page) => {
|
|||||||
searchStu();
|
searchStu();
|
||||||
};
|
};
|
||||||
|
|
||||||
function del(id) {
|
function del(id,studentId) {
|
||||||
dialog({
|
dialog({
|
||||||
content: "确定删除?", ok: async () => {
|
content: "确定删除?", ok: async () => {
|
||||||
if (id) {
|
if (id) {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
await boeRequest(ONLINE_COURSE_DEL(id, formData.value.id));
|
await boeRequest(ONLINE_COURSE_DEL(id, formData.value.id,studentId));
|
||||||
searchStu();
|
searchStu();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user