From 52f1974052e100099398889cc9b1299c72edd5a2 Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Tue, 12 May 2020 09:35:44 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=B9=A6=E8=AE=B0=E5=9C=A8=E7=BA=BF?= =?UTF-8?q?=E3=80=91=E3=80=90=E6=9F=A5=E7=9C=8B=E6=97=B6=E5=85=88=E5=B0=86?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E7=99=BB=E5=BD=95=E4=BA=BA=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=B7=B2=E8=AF=BB=E3=80=91-=E7=8E=8B=E5=85=AC=E5=B3=B0-2020-05?= =?UTF-8?q?-12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/master/mastertopic.vue | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/views/modules/master/mastertopic.vue b/src/views/modules/master/mastertopic.vue index b9a9d95a..7468fe22 100755 --- a/src/views/modules/master/mastertopic.vue +++ b/src/views/modules/master/mastertopic.vue @@ -77,7 +77,7 @@ 置顶 取消置顶 关闭 - 查看 + 查看 @@ -152,6 +152,7 @@ export default { closeDialog: false, isTop: true, toGrey: false, + btnAble: false, orderByArr: [ { label: '总参与度', @@ -221,9 +222,17 @@ export default { return '进行中' } }, - manageHandle (topicId) { - this.$parent.selectComponent = 'Mastertopicdetail' - this.$router.push({ path: '/master-mastertopicroute', query: { topicId: topicId } }) + manageHandle (topicId, browseNum) { + this.btnAble = true + // 将当前登录人改为已读 + this.$http.post(`/cloudAnalysis/mastertopic/addBrowNum`, { id: topicId, browseNum: browseNum }).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.btnAble = false + this.$parent.selectComponent = 'Mastertopicdetail' + this.$router.push({ path: '/master-mastertopicroute', query: { topicId: topicId } }) + }).catch(() => {}) }, openToTopDialog (value, row) { this.toTopDialog = true