课程学习处删除笔记事件

This commit is contained in:
daihh
2022-10-13 17:00:32 +08:00
parent f9bca259bc
commit 8fa4f7d762
2 changed files with 19 additions and 5 deletions

View File

@@ -209,13 +209,27 @@ export default {
}).then(async () => {
apiNote.del(note.id).then(res => {
if (res.status == 200) {
//删除事件
let event = {
key: "DeleteNote",//
title: "删除笔记",//
parameters:"author",//
content: "删除了笔记",//
source:'page',
objId: note.id,//关联的id
objType: "6",//关联的类型
objInfo: "",
aid: this.userInfo.aid, //当前登录人的id
aname: this.userInfo.name,//当前人的姓名
status: 1 //状态直接写1
}
this.$store.dispatch("userTrigger", event);
this.getMyNote();
} else {
this.$message({ type: 'error', message: res.message, offset: 50 });
}
})
})
.catch((err) => {
}).catch((err) => {
this.$message({ type: 'info', message: '已取消删除', offset: 50 });
});

View File

@@ -395,7 +395,7 @@ export default {
key: "DeleteNote",//
title: "删除笔记",//
parameters:"author",//
content: "删除了笔记",//事件的内容
content: "删除了笔记",//
source:'page',
objId: item.id,//关联的id
objType: "6",//关联的类型