mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-20 00:06:45 +08:00
fix: 修改删除报名记录的确认提示文本,更新删除API调用以包含学生ID
This commit is contained in:
@@ -722,14 +722,18 @@ export default {
|
|||||||
this.getSignupList();
|
this.getSignupList();
|
||||||
},
|
},
|
||||||
handleDeleteSignup(row) {
|
handleDeleteSignup(row) {
|
||||||
this.$confirm(`<i class="el-icon-warning-outline"></i>确认删除${row.name || ''}的报名记录吗?`, '删除确认', {
|
this.$confirm(`<i class="el-icon-warning-outline"></i>确定删除${row.name || ''}的报名记录吗?`, '删除确认', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
dangerouslyUseHTMLString: true,
|
dangerouslyUseHTMLString: true,
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
customClass: 'custom-confirm-dialog'
|
customClass: 'custom-confirm-dialog'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
apicourseStudy.deleteSignUp(row.id, this.courseDetail.id)
|
apicourseStudy.deleteNewSignUp({
|
||||||
|
id: row.id,
|
||||||
|
courseId: this.courseDetail.id,
|
||||||
|
studentId: row.aid
|
||||||
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res && res.status === 200) {
|
if (res && res.status === 200) {
|
||||||
this.$showMessage("删除成功", 'success');
|
this.$showMessage("删除成功", 'success');
|
||||||
|
|||||||
Reference in New Issue
Block a user