mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-14 13:26:44 +08:00
课程学习处删除笔记事件
This commit is contained in:
@@ -209,13 +209,27 @@ export default {
|
||||
}).then(async () => {
|
||||
apiNote.del(note.id).then(res => {
|
||||
if (res.status == 200) {
|
||||
this.getMyNote();
|
||||
//删除事件
|
||||
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 });
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user