|
|
|
@ -71,6 +71,7 @@ export default { |
|
|
|
mounted () { |
|
|
|
this.dataForm.id = this.$route.query.noticeId |
|
|
|
this.readForm.id = this.$route.query.noticeId |
|
|
|
this.dataForm.browseNum = this.$route.query.browseNum |
|
|
|
this.getInfo() |
|
|
|
this.getReadInfo(1) |
|
|
|
}, |
|
|
|
@ -90,15 +91,22 @@ export default { |
|
|
|
}, |
|
|
|
// 获取已读未读信息 |
|
|
|
getReadInfo (readFlag) { |
|
|
|
this.readForm.readFlag = readFlag |
|
|
|
this.$http.post(`/cloudAnalysis/masternotice/getReadInfo`, this.readForm).then(({ data: res }) => { |
|
|
|
// 将当前登录人改为已读 |
|
|
|
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') |
|
|
|
|