|
|
|
@ -77,7 +77,7 @@ |
|
|
|
<el-button type="text" size="small" v-if="$hasPermission('cloudAnalysis:mastertopic:toTop') && scope.row.state == 1" @click="openToTopDialog($event, scope.row)">置顶</el-button> |
|
|
|
<el-button type="text" size="small" v-if="$hasPermission('cloudAnalysis:mastertopic:toTop') && scope.row.state == 2" @click="openCancelToTopDialog($event, scope.row)">取消置顶</el-button> |
|
|
|
<el-button type="text" size="small" v-if="$hasPermission('cloudAnalysis:mastertopic: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> |
|
|
|
<el-button type="text" size="small" :disabled="btnAble" @click="manageHandle(scope.row.id, scope.row.browseNum)">查看</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -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 |
|
|
|
|