mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-15 05:46:43 +08:00
课程学习处删除笔记事件
This commit is contained in:
@@ -209,13 +209,27 @@ export default {
|
|||||||
}).then(async () => {
|
}).then(async () => {
|
||||||
apiNote.del(note.id).then(res => {
|
apiNote.del(note.id).then(res => {
|
||||||
if (res.status == 200) {
|
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 {
|
} else {
|
||||||
this.$message({ type: 'error', message: res.message, offset: 50 });
|
this.$message({ type: 'error', message: res.message, offset: 50 });
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
}).catch((err) => {
|
||||||
.catch((err) => {
|
|
||||||
this.$message({ type: 'info', message: '已取消删除', offset: 50 });
|
this.$message({ type: 'info', message: '已取消删除', offset: 50 });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -393,9 +393,9 @@ export default {
|
|||||||
//删除事件
|
//删除事件
|
||||||
let event = {
|
let event = {
|
||||||
key: "DeleteNote",//
|
key: "DeleteNote",//
|
||||||
title: "删除笔记",//
|
title: "删除笔记",//
|
||||||
parameters:"author",//
|
parameters:"author",//
|
||||||
content: "删除了笔记",//事件的内容
|
content: "删除了笔记",//
|
||||||
source:'page',
|
source:'page',
|
||||||
objId: item.id,//关联的id
|
objId: item.id,//关联的id
|
||||||
objType: "6",//关联的类型
|
objType: "6",//关联的类型
|
||||||
|
|||||||
Reference in New Issue
Block a user