diff --git a/src/components/Course/myNote.vue b/src/components/Course/myNote.vue index 2e5601b7..b6e0bb92 100644 --- a/src/components/Course/myNote.vue +++ b/src/components/Course/myNote.vue @@ -1,131 +1,133 @@ - +} + - + \ No newline at end of file diff --git a/src/components/Portal/comments.vue b/src/components/Portal/comments.vue index bf34c63c..3a47d8fc 100644 --- a/src/components/Portal/comments.vue +++ b/src/components/Portal/comments.vue @@ -59,7 +59,7 @@
- 发布 + 发布
@@ -193,7 +193,7 @@
- 发布回复 + 发布1回复
@@ -499,7 +499,20 @@ this.list.unshift(res.result); this.loadAuthorInfo([res.result],[res.result.sysCreateAid]); this.$message.success('发布成功'); - // + + let event = { + key: "PublishComment",//后台的事件key 发布文章且审核通过 + title: "发表评论",//事件的标题 + parameters:"",//用户自定义参数 name:value,name:value + content: "每发表一个评论",//事件的内容 + objId: this.resolveId,//关联的id + objType: this.objType,//关联的类型 + objInfo: "评论", + aid: this.userInfo.aid, //当前登录人的id + aname: this.userInfo.name,//当前人的姓名 + status: 1 //状态,直接写1 + } + this.$store.dispatch("userTrigger", event); this.total++; this.$emit('success',res.result); @@ -569,6 +582,19 @@ this.replyInfo.parentId=''; this.replyInfo.content=''; this.$message.success("发布成功"); + let event = { + key: "ReplyComment",//后台的事件key 发布文章且审核通过 + title: "回复评论",//事件的标题 + parameters:"",//用户自定义参数 name:value,name:value + content: "每回一个评论",//事件的内容 + objId: this.replyInfo.commentId,//关联的id + objType: this.objType,//关联的类型 + objInfo: "评论", + aid: this.userInfo.aid, //当前登录人的id + aname: this.userInfo.name,//当前人的姓名 + status: 1 //状态,直接写1 + } + this.$store.dispatch("userTrigger", event); }else{ this.$message.error(res.message); } diff --git a/src/views/portal/case/Detail.vue b/src/views/portal/case/Detail.vue index 343b39c7..5b8cd43e 100644 --- a/src/views/portal/case/Detail.vue +++ b/src/views/portal/case/Detail.vue @@ -185,7 +185,7 @@ export default { }, data() { return { - fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL, + fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL, resonimg:{}, Internet:3,//1是成功 2是是失败 3是检测中 noData:true, diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index 7dcafdc5..94de006e 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -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('打分处理失败,请稍后再试'); }