mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 20:36:43 +08:00
修改消息
This commit is contained in:
@@ -95,10 +95,10 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.queryMessage(true);
|
this.queryMessage(true);
|
||||||
this.isReadChooseList();
|
// this.isReadChooseList();
|
||||||
},
|
},
|
||||||
updated() {
|
updated() {
|
||||||
this.isReadChooseList();
|
// this.isReadChooseList();
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
checkAll(newVal) {
|
checkAll(newVal) {
|
||||||
@@ -179,14 +179,17 @@ export default {
|
|||||||
if (!this.data[i].isRead) {
|
if (!this.data[i].isRead) {
|
||||||
ids.push(this.data[i].id);
|
ids.push(this.data[i].id);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if (ids.length !== 0) {
|
if (ids.length !== 0) {
|
||||||
apiMessage.updateIsRead(ids).then(res => {
|
apiMessage.updateIsRead(ids).then(res => {
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
this.$store.dispatch('refrashMsg');
|
this.$store.dispatch('refrashMsg');
|
||||||
|
this.queryMessage(true)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// this.queryMessage();
|
||||||
},
|
},
|
||||||
delChooseList() {
|
delChooseList() {
|
||||||
let list = this.data.filter(item => item.checked).map(v => v.id);
|
let list = this.data.filter(item => item.checked).map(v => v.id);
|
||||||
|
|||||||
Reference in New Issue
Block a user