Browse Source

【书记在线】【优化通知查看时,将当前登录人置为已读人员】-王公峰-2020-05-08

master
wanggongfeng 6 years ago
parent
commit
b163840ec4
  1. 31
      src/views/modules/master/masternoticedetail.vue

31
src/views/modules/master/masternoticedetail.vue

@ -72,8 +72,8 @@ export default {
this.dataForm.id = this.$route.query.noticeId
this.readForm.id = this.$route.query.noticeId
this.dataForm.browseNum = this.$route.query.browseNum
this.addBrowNum()
this.getInfo()
this.getReadInfo(1)
},
methods: {
//
@ -89,25 +89,28 @@ export default {
this.dataForm.tagIds = []
}).catch(() => { })
},
//
getReadInfo (readFlag) {
//
//
addBrowNum () {
this.$http.post(`/cloudAnalysis/masternotice/addBrowNum`, this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
//
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(() => { })
//
this.getReadInfo(1)
}).catch(() => {})
},
//
getReadInfo (readFlag) {
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(() => { })
},
backToDeptList () {
this.$emit('refreshDataList')
this.$parent.selectComponent = 'Masternotice'

Loading…
Cancel
Save