邻里互助
This commit is contained in:
@@ -21,12 +21,8 @@
|
||||
<div class="content">
|
||||
<span v-if="info.themeId">#【{{info.themeInfo.title}}】</span>{{info.content}}
|
||||
</div>
|
||||
<!-- <ai-uploader
|
||||
:instance="instance"
|
||||
disabled
|
||||
v-model="row.urlList"
|
||||
:limit="1">
|
||||
</ai-uploader> -->
|
||||
<ai-uploader :instance="instance" disabled v-model="info.files">
|
||||
</ai-uploader>
|
||||
</div>
|
||||
<div class="comment-list" v-if="commontList.length">
|
||||
<div class="title">评论</div>
|
||||
@@ -40,7 +36,7 @@
|
||||
</div>
|
||||
<div class="content-flex">
|
||||
<p>{{item.content}}</p>
|
||||
<div @click="delCommont(item)">删除</div>
|
||||
<div @click="delCommontOrReply('评论', item.id)">删除</div>
|
||||
</div>
|
||||
<div class="reply-list" v-if="item.replyList && item.replyList.length && item.isShowReply">
|
||||
<div class="reply-item" v-for="(reply, indexs) in item.replyList" :key="indexs">
|
||||
@@ -53,7 +49,7 @@
|
||||
</div>
|
||||
<div class="content-flex">
|
||||
<p>{{reply.content}}</p>
|
||||
<div @click="delReply(item, indexs)">删除</div>
|
||||
<div @click="delCommontOrReply('回复', reply.id)">删除</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -127,9 +123,9 @@
|
||||
})
|
||||
},
|
||||
|
||||
delCommont(row) {
|
||||
this.$confirm('确定删除该评论?').then(() => {
|
||||
this.instance.post(`/app/appneighborhoodassistance/delete?id=${id}`).then(res => {
|
||||
delCommontOrReply(text, id) {
|
||||
this.$confirm(`确定删除该${text}?`).then(() => {
|
||||
this.instance.post(`/app/appneighborhoodassistance/delComment?id=${id}`).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$message.success('删除成功!')
|
||||
this.getList()
|
||||
@@ -137,17 +133,6 @@
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
delReply(row, indexs) {
|
||||
this.$confirm('确定删除该回复?').then(() => {
|
||||
this.instance.post(`/app/appneighborhoodassistance/delete?id=${id}`).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$message.success('删除成功!')
|
||||
this.getList()
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user