去掉删除课程的事件,转为后端去处理了

This commit is contained in:
daihh
2022-11-29 13:39:28 +08:00
parent 8db7130faa
commit c1be147270
2 changed files with 18 additions and 18 deletions

View File

@@ -776,21 +776,21 @@ 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();
}

View File

@@ -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",//被管理员删除