This commit is contained in:
daihh
2022-11-03 16:27:26 +08:00
parent b624d1a629
commit 21b3c82085
3 changed files with 35 additions and 6 deletions

View File

@@ -257,7 +257,22 @@ export default {
const { status } = await apiCourse.del(params); const { status } = await apiCourse.del(params);
if (status === 200) { if (status === 200) {
this.$message.success('操作成功!'); this.$message.success('操作成功!');
//发送自己删除课程的事件 //发送自己删除课程的事件,审核通过的,自己不能删除了
// if(!row.erasable){
// let event = {
// key: "DeleteCourse",//被管理员删除
// title: '自己删除课程',//事件的标题
// parameters:"author:"+this.userInfo.aid,//自己删除自己的课程,作者就是当前人
// 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.getList(); this.getList();
} }

View File

@@ -817,6 +817,20 @@ export default {
res.result.sex = null; res.result.sex = null;
res.result.isAll = false; res.result.isAll = false;
this.$message.success("回复成功"); this.$message.success("回复成功");
//发送回复事件
let event = {
key: "ReplyAnswer",//
title: '回复回答',//
parameters:"",//作者
content: '回复回答',//
objId: replyData.commentId,//关联的id
objType: "5",//关联的类型
objInfo:'',
aid: this.userInfo.aid, //当前登录人的id
aname: this.userInfo.name,//当前人的姓名
status: 1 //
}
this.$store.dispatch("userTrigger", event);
this.getUserInfoList([res.result], [res.result.sysCreateAid]); this.getUserInfoList([res.result], [res.result.sysCreateAid]);
this.curParentId = ''; this.curParentId = '';
this.curParent = {}; this.curParent = {};

View File

@@ -451,11 +451,11 @@
"key": "StudyCourseOther",//课程学习的key "key": "StudyCourseOther",//课程学习的key
"title": "非音视频课内容",//事件的标题 "title": "非音视频课内容",//事件的标题
"parameters":"second:60",//second:value 本次的学习时长 "parameters":"second:60",//second:value 本次的学习时长
"content": "学习课程【"+this.courseInfo.name+"】",//事件的内容 "content": "学习课程",//事件的内容
"objId": this.contentData.id,//课程的内容id "objId": this.courseInfo.id,//课程的id
"objType": "1",//类型 "objType": "1",//类型
"source":"page", "source":"page",
"objInfo": ""+this.contentData.contentName, "objInfo": ""+this.courseInfo.name,
"aid":this.userInfo.aid, //当前登录人的id "aid":this.userInfo.aid, //当前登录人的id
"aname":this.userInfo.name,//当前人的姓名 "aname":this.userInfo.name,//当前人的姓名
"status": 1 //状态 "status": 1 //状态