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,8 +257,23 @@ export default {
const { status } = await apiCourse.del(params);
if (status === 200) {
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();
}
} catch (error) {

View File

@@ -228,7 +228,7 @@
提问题
</div>
<div class="qa-ranking">
<div class="portal-ranking ranking-bg">
<p class="ranking-title">贡献榜</p>
<ul class="ranking-data">
@@ -817,6 +817,20 @@ export default {
res.result.sex = null;
res.result.isAll = false;
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.curParentId = '';
this.curParent = {};

View File

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