mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-14 21:36:42 +08:00
我报名的删除
This commit is contained in:
@@ -152,7 +152,11 @@ computed: {
|
||||
apiBoeCourse.delLearning(item.kid).then(res=>{
|
||||
if(res.status==200){
|
||||
this.$message({ type: 'success', message: '删除成功!' });
|
||||
this.couresList.splice(itemIdx,1);
|
||||
this.couresList.forEach((ic,index)=>{
|
||||
if(item.kid == ic.kid) {
|
||||
this.couresList.splice(index,1);
|
||||
}
|
||||
})
|
||||
this.dataList.forEach((it,i)=>{
|
||||
if(item.id == it.id) {
|
||||
this.dataList.splice(i,1);
|
||||
@@ -166,7 +170,11 @@ computed: {
|
||||
apicourseStudy.deleteSignUp(item.id,item.courseId).then(res =>{
|
||||
if(res.status==200){
|
||||
this.$message({ type: 'success', message: '删除成功!' });
|
||||
this.couresList.splice(itemIdx,1);
|
||||
this.couresList.forEach((ic,index)=>{
|
||||
if(item.id == ic.id) {
|
||||
this.couresList.splice(index,1);
|
||||
}
|
||||
})
|
||||
this.dataList.forEach((it,i)=>{
|
||||
if(item.id == it.id) {
|
||||
this.dataList.splice(i,1);
|
||||
|
||||
Reference in New Issue
Block a user