mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
动态收集事件添加
This commit is contained in:
@@ -489,6 +489,20 @@ export default {
|
||||
this.$message.success('打分成功,谢谢您的打分');
|
||||
that.scoreInfo.has = true;
|
||||
that.courseInfo.score = rs.result;
|
||||
let event = {
|
||||
key: "ScoreCourse",//后台的事件key 发布文章且审核通过
|
||||
title: "完成课程评分",//事件的标题
|
||||
parameters:"",//用户自定义参数 name:value,name:value
|
||||
content: "给课程评分",//事件的内容
|
||||
objId: this.resolveId,//关联的id
|
||||
objType: 1,//关联的类型
|
||||
objInfo: this.courseInfo.name,
|
||||
aid: this.userInfo.aid, //当前登录人的id
|
||||
aname: this.userInfo.name,//当前人的姓名
|
||||
status: 1 //状态,直接写1
|
||||
}
|
||||
this.$store.dispatch("userTrigger", event);
|
||||
|
||||
} else {
|
||||
this.$message.error('打分处理失败,请稍后再试');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user