mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 02:46:44 +08:00
我的笔记,对齐问题
This commit is contained in:
@@ -792,6 +792,19 @@
|
|||||||
this.$message.info('已取消点赞');
|
this.$message.info('已取消点赞');
|
||||||
this.isPraise = false;
|
this.isPraise = false;
|
||||||
this.courseInfo.praises--;
|
this.courseInfo.praises--;
|
||||||
|
let event = {
|
||||||
|
key: "CancelPraise",//点赞
|
||||||
|
title: "取消点赞",//事件的标题
|
||||||
|
parameters:"author:"+this.courseInfo.sysCreateAid,//用户自定义参数 name:value,name:value
|
||||||
|
content: "取消点赞课程",//事件的内容
|
||||||
|
objId: this.courseId,//关联的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 {
|
} else {
|
||||||
this.$message.error('取消点赞失败,请稍后再试');
|
this.$message.error('取消点赞失败,请稍后再试');
|
||||||
}
|
}
|
||||||
@@ -803,6 +816,19 @@
|
|||||||
this.$message.success('点赞成功');
|
this.$message.success('点赞成功');
|
||||||
this.isPraise = true;
|
this.isPraise = true;
|
||||||
this.courseInfo.praises++;
|
this.courseInfo.praises++;
|
||||||
|
let event = {
|
||||||
|
key: "Praise",//点赞
|
||||||
|
title: "点赞",//事件的标题
|
||||||
|
parameters:"author:"+this.courseInfo.sysCreateAid,//用户自定义参数 name:value,name:value
|
||||||
|
content: "点赞了课程",//事件的内容
|
||||||
|
objId: this.courseId,//关联的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 {
|
} else {
|
||||||
this.$message.error('点赞失败,请稍后再试');
|
this.$message.error('点赞失败,请稍后再试');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,7 +79,9 @@
|
|||||||
<div class="all-footer">
|
<div class="all-footer">
|
||||||
<div>
|
<div>
|
||||||
<div class="textbut-box">
|
<div class="textbut-box">
|
||||||
<interactBar v-if="item.type == 1" nodeWidth="60px" :readonly="true" :type="6" :data="item" :shares="false" :comments="false" :answers="true" :clickAnswer="true" :views="false"></interactBar>
|
<div style="padding-top: 8px;">
|
||||||
|
<interactBar v-if="item.type == 1" nodeWidth="60px" :readonly="true" :type="6" :data="item" :shares="false" :comments="false" :answers="true" :clickAnswer="true" :views="false"></interactBar>
|
||||||
|
</div>
|
||||||
<el-button @click="deleteNote(item)" style=" margin-right: 10px;" class="textbut" type="text"><svg-icon icon-class="notedel" ></svg-icon>删除</el-button>
|
<el-button @click="deleteNote(item)" style=" margin-right: 10px;" class="textbut" type="text"><svg-icon icon-class="notedel" ></svg-icon>删除</el-button>
|
||||||
<el-button @click="edit(item)" class="textbut" type="text"><svg-icon icon-class="noteedit" ></svg-icon> 编辑</el-button>
|
<el-button @click="edit(item)" class="textbut" type="text"><svg-icon icon-class="noteedit" ></svg-icon> 编辑</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user