Browse Source

【书记在线】-【查看时将当前人员更新为已读状态,浏览量加一】-(王公峰)-2020/05/08

master
wanggongfeng 6 years ago
parent
commit
bc5f5c2018
  1. 6
      src/views/modules/master/masternotice.vue
  2. 8
      src/views/modules/master/masternoticedetail.vue

6
src/views/modules/master/masternotice.vue

@ -62,7 +62,7 @@
<el-button type="text" size="small" v-if="$hasPermission('cloudAnalysis:masternotice:toTop') && scope.row.state == 1" @click="openToTopDialog($event, scope.row)" >置顶</el-button>
<el-button type="text" size="small" v-if="$hasPermission('cloudAnalysis:masternotice:toTop') && scope.row.state == 2" @click="openCancelToTopDialog($event, scope.row)">取消置顶</el-button>
<el-button type="text" size="small" v-if="$hasPermission('cloudAnalysis:masternotice:close')" @click="openCloseTopicDialog($event, scope.row)" :disabled="scope.row.state == 0">关闭</el-button>
<el-button type="text" size="small" @click="manageHandle(scope.row.id)">查看</el-button> </template>
<el-button type="text" size="small" @click="manageHandle(scope.row.id, scope.row.browseNum)">查看</el-button> </template>
</el-table-column>
</el-table>
<el-pagination
@ -241,9 +241,9 @@ export default {
this.optionForm.id = row.id
this.optionForm.state = 0
},
manageHandle (noticeId) {
manageHandle (noticeId, browseNum) {
this.$parent.selectComponent = 'Masternoticedetail'
this.$router.push({ path: '/master-masternoticeroute', query: { noticeId: noticeId } })
this.$router.push({ path: '/master-masternoticeroute', query: { noticeId: noticeId, browseNum: browseNum } })
}
}
}

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

@ -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,6 +91,12 @@ export default {
},
//
getReadInfo (readFlag) {
//
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) {
@ -99,6 +106,7 @@ export default {
this.loading = false
this.readFormList.tagIds = []
}).catch(() => { })
}).catch(() => {})
},
backToDeptList () {
this.$emit('refreshDataList')

Loading…
Cancel
Save