mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 12:26:44 +08:00
事件调整
This commit is contained in:
@@ -515,8 +515,8 @@
|
|||||||
title: "发表评论",//事件的标题
|
title: "发表评论",//事件的标题
|
||||||
parameters:"",//用户自定义参数 name:value,name:value
|
parameters:"",//用户自定义参数 name:value,name:value
|
||||||
content: "每发表一个评论",//事件的内容
|
content: "每发表一个评论",//事件的内容
|
||||||
objId: this.objId,//关联的id
|
objId: res.result.id,//关联的id
|
||||||
objType: this.objType,//关联的类型
|
objType: '80',//关联的类型,这里关联的类型应该是评论,不是课程
|
||||||
objInfo: "评论",
|
objInfo: "评论",
|
||||||
aid: this.userInfo.aid, //当前登录人的id
|
aid: this.userInfo.aid, //当前登录人的id
|
||||||
aname: this.userInfo.name,//当前人的姓名
|
aname: this.userInfo.name,//当前人的姓名
|
||||||
@@ -597,8 +597,8 @@
|
|||||||
parameters:"",//用户自定义参数 name:value,name:value
|
parameters:"",//用户自定义参数 name:value,name:value
|
||||||
content: "每回一个评论",//事件的内容
|
content: "每回一个评论",//事件的内容
|
||||||
objId: this.replyInfo.commentId,//关联的id
|
objId: this.replyInfo.commentId,//关联的id
|
||||||
objType: this.objType,//关联的类型
|
objType: "81",//关联的类型
|
||||||
objInfo: "评论",
|
objInfo: "回复评论",
|
||||||
aid: this.userInfo.aid, //当前登录人的id
|
aid: this.userInfo.aid, //当前登录人的id
|
||||||
aname: this.userInfo.name,//当前人的姓名
|
aname: this.userInfo.name,//当前人的姓名
|
||||||
status: 1 //状态,直接写1
|
status: 1 //状态,直接写1
|
||||||
|
|||||||
@@ -567,15 +567,15 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
let event = {
|
let event = {
|
||||||
key: "Share",//后台的事件key
|
key: "Share",//分享
|
||||||
title: "被分享",//事件的标题
|
title: "分享",//分享
|
||||||
parameters:"",//用户自定义参数 name:value,name:value
|
parameters:"author:"+this.data.sysCreateAid,//内容的作者
|
||||||
content: '被分享',//事件的内容
|
content: '分享',//事件的内容
|
||||||
objId: this.data.id,//关联的id
|
objId: this.data.id,//关联的id
|
||||||
objType: this.type,//关联的类型
|
objType: this.type,//关联的类型
|
||||||
objInfo: this.data.title,
|
objInfo: this.data.title,
|
||||||
aid: this.data.sysCreateAid, //当前登录人的id
|
aid: this.userInfo.aid, //当前登录人的id
|
||||||
aname: this.data.sysCreateBy,//当前人的姓名
|
aname: this.userInfo.name,//当前人的姓名
|
||||||
status: 1 //状态,直接写1
|
status: 1 //状态,直接写1
|
||||||
}
|
}
|
||||||
this.$store.dispatch("userTrigger", event);
|
this.$store.dispatch("userTrigger", event);
|
||||||
|
|||||||
Reference in New Issue
Block a user