diff --git a/src/views/modules/master/masternotice.vue b/src/views/modules/master/masternotice.vue index 15ce6335..023ec644 100755 --- a/src/views/modules/master/masternotice.vue +++ b/src/views/modules/master/masternotice.vue @@ -62,7 +62,7 @@ 置顶 取消置顶 关闭 - 查看 + 查看 { + // 将当前登录人改为已读 + this.$http.post(`/cloudAnalysis/masternotice/addBrowNum`, this.dataForm).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } - this.readFormList = res.data - this.loading = false - this.readFormList.tagIds = [] - }).catch(() => { }) + // 将当前登录人改为已读后,获取已读未读信息 + this.readForm.readFlag = readFlag + this.$http.post(`/cloudAnalysis/masternotice/getReadInfo`, this.readForm).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.readFormList = res.data + this.loading = false + this.readFormList.tagIds = [] + }).catch(() => { }) + }).catch(() => {}) }, backToDeptList () { this.$emit('refreshDataList')