|
|
@ -1,10 +1,14 @@ |
|
|
|
<template> |
|
|
|
<div class="project-handle"> |
|
|
|
<el-form :model="dataForm" ref="dataForm" style="width: 100%; height: 100%;"> |
|
|
|
<el-form :model="dataForm" |
|
|
|
ref="dataForm" |
|
|
|
style="width: 100%; height: 100%;"> |
|
|
|
<div class="project-detail"> |
|
|
|
<div class="project-detail-tip">话题详情</div> |
|
|
|
<el-form label-position="right" label-width="120px"> |
|
|
|
<el-form-item label="话题内容:" prop="eventContent"> |
|
|
|
<el-form label-position="right" |
|
|
|
label-width="120px"> |
|
|
|
<el-form-item label="话题内容:" |
|
|
|
prop="eventContent"> |
|
|
|
<div>{{dataForm.topicContent}}</div> |
|
|
|
<el-image v-for="url in dataForm.images" |
|
|
|
style="width: 100px; height: 100px; margin-right: 10px" |
|
|
@ -14,17 +18,21 @@ |
|
|
|
@click="clickImg(url)"> |
|
|
|
</el-image> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="所属网格:" prop="allDeptNames"> |
|
|
|
<el-form-item label="所属网格:" |
|
|
|
prop="allDeptNames"> |
|
|
|
<div>{{dataForm.allDeptNames}}</div> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="话题来源:" prop="groupName"> |
|
|
|
<el-form-item label="话题来源:" |
|
|
|
prop="groupName"> |
|
|
|
<div>{{dataForm.groupName}}</div> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="发言人:" prop="nickName"> |
|
|
|
<el-form-item label="发言人:" |
|
|
|
prop="nickName"> |
|
|
|
<div>{{dataForm.nickname}}</div> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="评论:"> |
|
|
|
<el-button type="primary" @click="innerVisible = true">点击查看评论</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
@click="innerVisible = true">点击查看评论</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<div class="container"> |
|
|
@ -33,25 +41,55 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div style="width: 100%; text-align:center; float:left;"> |
|
|
|
<el-button size="medium" style="width: 95px" type="primary" @click="back">返回</el-button> |
|
|
|
<el-button size="medium" |
|
|
|
style="width: 95px" |
|
|
|
type="primary" |
|
|
|
@click="back">返回</el-button> |
|
|
|
</div> |
|
|
|
</el-form> |
|
|
|
<el-dialog width="90%" title="评论" :visible.sync="innerVisible" append-to-body> |
|
|
|
<el-table :data="commentsDTOs" border style="width: 100%;"> |
|
|
|
<el-table-column prop="user.userName" label="发言人" header-align="center" align="center"></el-table-column> |
|
|
|
<el-table-column prop="commentTime" label="发言时间" header-align="center" align="center"></el-table-column> |
|
|
|
<el-table-column prop="content" label="发言内容" header-align="center" align="center"></el-table-column> |
|
|
|
<el-table-column prop="replyComment.userName" label="被回复人" header-align="center" align="center"></el-table-column> |
|
|
|
<el-table-column prop="replyComment.content" label="被回复内容" header-align="center" align="center"></el-table-column> |
|
|
|
<el-table-column :label="$t('handle')" header-align="center" align="center" width="150"> |
|
|
|
<el-dialog width="90%" |
|
|
|
title="评论" |
|
|
|
:visible.sync="innerVisible" |
|
|
|
append-to-body> |
|
|
|
<el-table :data="commentsDTOs" |
|
|
|
border |
|
|
|
style="width: 100%;"> |
|
|
|
<el-table-column prop="user.userName" |
|
|
|
label="发言人" |
|
|
|
header-align="center" |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="commentTime" |
|
|
|
label="发言时间" |
|
|
|
header-align="center" |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="content" |
|
|
|
label="发言内容" |
|
|
|
header-align="center" |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="replyComment.userName" |
|
|
|
label="被回复人" |
|
|
|
header-align="center" |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="replyComment.content" |
|
|
|
label="被回复内容" |
|
|
|
header-align="center" |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column :label="$t('handle')" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button v-if="scope.row.shieldFlag === '0'" type="button" size="small" @click="deleteComment(scope.row.commentId)">屏蔽</el-button> |
|
|
|
<el-button v-if="scope.row.shieldFlag === '1'" type="text" size="small">已屏蔽</el-button> |
|
|
|
<el-button v-if="scope.row.shieldFlag === '0'" |
|
|
|
type="button" |
|
|
|
size="small" |
|
|
|
@click="deleteComment(scope.row.commentId)">屏蔽</el-button> |
|
|
|
<el-button v-if="scope.row.shieldFlag === '1'" |
|
|
|
type="text" |
|
|
|
size="small">已屏蔽</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<el-pagination |
|
|
|
:current-page="pageIndex" |
|
|
|
<el-pagination :current-page="pageIndex" |
|
|
|
:page-sizes="[10, 20, 50, 100]" |
|
|
|
:page-size="limitVal" |
|
|
|
:total="total" |
|
|
@ -115,7 +153,7 @@ export default { |
|
|
|
}, |
|
|
|
// 获取信息 |
|
|
|
getInfo () { |
|
|
|
this.$http.get(`/group/topic/detail/${this.dataForm.id}`).then(({ data: res }) => { |
|
|
|
this.$http.get(`/property/topic/detail/${this.dataForm.id}`).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
@ -124,7 +162,7 @@ export default { |
|
|
|
...res.data |
|
|
|
} |
|
|
|
this.initBmap(this.dataForm.topicLatitude, this.dataForm.topicLongitude) |
|
|
|
}).catch(() => {}) |
|
|
|
}).catch(() => { }) |
|
|
|
}, |
|
|
|
pageSizeChangeHandleNew (val) { |
|
|
|
this.pageIndex = 1 |
|
|
@ -136,7 +174,7 @@ export default { |
|
|
|
this.getCommentList() |
|
|
|
}, |
|
|
|
getCommentList () { |
|
|
|
this.$http.get('/group/topiccomment/comments', { params: { id: this.dataForm.id, order: this.order, orderField: this.orderField, page: this.pageIndex, limit: this.limitVal } |
|
|
|
this.$http.get('/property/topiccomment/comments', { params: { id: this.dataForm.id, order: this.order, orderField: this.orderField, page: this.pageIndex, limit: this.limitVal } |
|
|
|
}).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
this.commentsDTOs = [] |
|
|
@ -145,11 +183,11 @@ export default { |
|
|
|
} |
|
|
|
this.commentsDTOs = res.data.list |
|
|
|
this.total = res.data.total |
|
|
|
}).catch(() => {}) |
|
|
|
}).catch(() => { }) |
|
|
|
}, |
|
|
|
deleteComment (val) { |
|
|
|
this.$http['post']( |
|
|
|
'/group/topiccomment/deleteComment', { commentIds: [val] }).then(({ data: res }) => { |
|
|
|
'/property/topiccomment/deleteComment', { commentIds: [val] }).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
@ -161,26 +199,26 @@ export default { |
|
|
|
this.getCommentList() |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(() => {}) |
|
|
|
}).catch(() => { }) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss"> |
|
|
|
.project-handle { |
|
|
|
.project-handle { |
|
|
|
.el-timeline { |
|
|
|
padding-left: 9px; |
|
|
|
font-size: 13px; |
|
|
|
} |
|
|
|
} |
|
|
|
.el-form-item__label { |
|
|
|
} |
|
|
|
.el-form-item__label { |
|
|
|
font-weight: bold; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
.project-handle { |
|
|
|
.project-handle { |
|
|
|
width: 100%; |
|
|
|
height: calc(100vh - 120px); |
|
|
|
background: #ffffff; |
|
|
@ -193,25 +231,25 @@ export default { |
|
|
|
box-sizing: border-box; |
|
|
|
padding: 10px; |
|
|
|
padding-top: 20px; |
|
|
|
float:left; |
|
|
|
float: left; |
|
|
|
margin-bottom: 1%; |
|
|
|
position:relative; |
|
|
|
position: relative; |
|
|
|
.project-detail-tip { |
|
|
|
position: absolute; |
|
|
|
top: 0; |
|
|
|
left:0; |
|
|
|
left: 0; |
|
|
|
width: 80px; |
|
|
|
height: 30px; |
|
|
|
line-height: 30px; |
|
|
|
color: #ffffff; |
|
|
|
background: #4ac38b; |
|
|
|
text-align:center; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
.el-form { |
|
|
|
width: 58%; |
|
|
|
height: 100%; |
|
|
|
float:left; |
|
|
|
overflow-y:auto; |
|
|
|
float: left; |
|
|
|
overflow-y: auto; |
|
|
|
&::-webkit-scrollbar { |
|
|
|
width: 5px; |
|
|
|
height: 1px; |
|
|
@ -247,7 +285,7 @@ export default { |
|
|
|
box-sizing: border-box; |
|
|
|
margin-left: 1%; |
|
|
|
padding-top: 20px; |
|
|
|
overflow-y:auto; |
|
|
|
overflow-y: auto; |
|
|
|
&::-webkit-scrollbar { |
|
|
|
width: 5px; |
|
|
|
height: 1px; |
|
|
@ -266,7 +304,7 @@ export default { |
|
|
|
height: 49%; |
|
|
|
box-sizing: border-box; |
|
|
|
border: 2px solid #ccc; |
|
|
|
float:left; |
|
|
|
} |
|
|
|
float: left; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|