This commit is contained in:
zhaofang
2022-09-29 17:10:21 +08:00
parent 01105a425e
commit 501e850540
4 changed files with 31 additions and 12 deletions

View File

@@ -28,7 +28,7 @@
</div>
<div class="comment-time portal-time">
<showTime :time="com.sysCreateTime"></showTime>
<interactBar :type="10" :shares="false" :data="com" @addAnswers="showReply(com)" :favorites="false" :views="false" :comments="false" :answers="true"></interactBar>
<interactBar :type="10" :shares="false" :data="com" @addAnswers="showReply(com)" :views="false" :comments="false" :answers="true"></interactBar>
</div>
<div v-if="replyInfo.parentId==com.id" class="comment-reply" style="padding-bottom: 5px;">
<div style="width:100%;display:flex;">
@@ -63,7 +63,7 @@
</div>
<div class="comment-time portal-time">
<showTime :time="reply.sysCreateTime"></showTime>
<interactBar :type="10" :shares="false" :data="reply" @addAnswers="showReply(reply)" :favorites="false" :views="false" :comments="false" :answers="true"></interactBar>
<interactBar :type="10" :shares="false" :data="reply" @addAnswers="showReply(reply)" :views="false" :comments="false" :answers="true"></interactBar>
</div>
</div>
<!--发布回复-->
@@ -176,6 +176,10 @@
readonly:{
type:Boolean,
default:false
},
name:{
type:String,
default:''
}
},
components:{showTime,authorInfo,interactBar},
@@ -324,6 +328,7 @@
let ids=[];
let allList=[];
res.result.list.forEach(item=>{
item.title = this.name;
item.replyList = [];
item.avatar='';
item.orgInfo='';
@@ -334,6 +339,7 @@
ids.push(item.sysCreateAid);
if(item.replyList && item.replyList!=''){
item.replyList.forEach(reply=>{
reply.title=this.name;
reply.avatar='';
reply.orgInfo='';
reply.name='';
@@ -412,6 +418,7 @@
if(res.status==200){
// this.list.unshift(res.result);
// this.sex =
res.result.title = this.name;
res.result.sex=null;
res.result.isAll=false;
this.list.unshift(res.result);