Browse Source

智能提醒已读

feature
mk 2 years ago
parent
commit
a33d016e2e
  1. 10
      src/views/modules/home/index.vue

10
src/views/modules/home/index.vue

@ -434,7 +434,17 @@ export default {
this.$message.error(msg); this.$message.error(msg);
} }
}, },
async readClearOne(item) {
const url = `/message/intelligentMessage/msg/clearOne/?msgId=${item.id}`;
const { data, code, msg } = await requestPost(url);
if (code == 0) {
this.getNoticeData();
} else if (code >= 8000) {
this.$message.error(msg);
}
},
handleClickNotice(item) { handleClickNotice(item) {
this.readClearOne(item);
if (item.msgType == "community_house") { if (item.msgType == "community_house") {
let { agencyId, gridId, gridName, houseId, houseName, targetId } = item let { agencyId, gridId, gridName, houseId, houseName, targetId } = item
this.$store.dispatch('saveDataH', { agencyId, gridId, gridName, houseId: targetId, houseName:'房屋详情' }); this.$store.dispatch('saveDataH', { agencyId, gridId, gridName, houseId: targetId, houseName:'房屋详情' });

Loading…
Cancel
Save