From c1be147270b24db24f3a880ed3c3e131b99e686b Mon Sep 17 00:00:00 2001 From: daihh Date: Tue, 29 Nov 2022 13:39:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=88=A0=E9=99=A4=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E7=9A=84=E4=BA=8B=E4=BB=B6=EF=BC=8C=E8=BD=AC=E4=B8=BA?= =?UTF-8?q?=E5=90=8E=E7=AB=AF=E5=8E=BB=E5=A4=84=E7=90=86=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/course/ManageList.vue | 34 ++++++++++++++++---------------- src/views/course/TeacherList.vue | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/views/course/ManageList.vue b/src/views/course/ManageList.vue index d642558b..dc639ee8 100644 --- a/src/views/course/ManageList.vue +++ b/src/views/course/ManageList.vue @@ -75,7 +75,7 @@ @@ -776,22 +776,22 @@ export default { const {status} = await apiCourse.del(params); if(status === 200) { this.$message.success('操作成功!'); //只是之前发布过的课程删除才可 - if(!row.erasable){ - let event = { - key: "CourseDelete",//被管理员删除 - title: '被管理员删除课程',//事件的标题 - parameters:"author:"+row.sysCreateAid,//作者,一般这种情况不是管理员自己添加的 - content: '被管理员删除课程',//事件的内容 - objId: row.id,//关联的id - objType: "1",//关联的类型 - objInfo:row.name, - aid: this.userInfo.aid, //当前登录人的id - aname: this.userInfo.name,//当前人的姓名 - status: 1 //状态,直接写1 - } - this.$store.dispatch("userTrigger", event); - } - + // if(!row.erasable){ + // let event = { + // key: "CourseDelete",//被管理员删除 + // title: '被管理员删除课程',//事件的标题 + // parameters:"author:"+row.sysCreateAid,//作者,一般这种情况不是管理员自己添加的 + // content: '被管理员删除课程',//事件的内容 + // objId: row.id,//关联的id + // objType: "1",//关联的类型 + // objInfo:row.name, + // aid: this.userInfo.aid, //当前登录人的id + // aname: this.userInfo.name,//当前人的姓名 + // status: 1 //状态,直接写1 + // } + // this.$store.dispatch("userTrigger", event); + // } + this.searchData(); } } catch (error) { diff --git a/src/views/course/TeacherList.vue b/src/views/course/TeacherList.vue index 6f321b1b..9ebc9888 100644 --- a/src/views/course/TeacherList.vue +++ b/src/views/course/TeacherList.vue @@ -286,7 +286,7 @@ export default { const { status } = await apiCourse.del(params); if (status === 200) { this.$message.success('操作成功!'); - //发送自己删除课程的事件,审核通过的,自己不能删除了 + //事件移到后端处理 // if(!row.erasable){ // let event = { // key: "DeleteCourse",//被管理员删除