mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 04:46:44 +08:00
提交
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user