课程笔记增加签名显示(未成功)

This commit is contained in:
weinan2087
2022-10-21 13:50:22 +08:00
parent 7a94463edf
commit 1cea2ca22e

View File

@@ -2,7 +2,7 @@
<!--笔记组件-->
<div class="comments">
<div v-if="showTop" class="comments-top">
<div class="comments-top-left portal-title-tow" style="font-size: 18px;">{{total}}条笔记
<div class="comments-top-left portal-title-tow" style="font-size: 18px;">{{total}}条笔记
<el-checkbox v-if="objType ==2" class="btn" v-model="value" type="primary">只看作者</el-checkbox>
<el-checkbox v-if="objType ==3" class="btn" v-model="value" type="primary">{{'只看案主'}}</el-checkbox>
<span v-if="objType ==3" class="anzhu"> @案主可以给他发私信哦</span>
@@ -15,7 +15,7 @@
<div class="comment" v-for="(com,comIdx) in list" :key="com.id">
<div class="comment-top">
<div class="comment-author">
<authorInfo :avatar="com.avatar" :name="com.name" :sex="com.sex" :info="com.orgInfo"></authorInfo>
<authorInfo :avatar="com.avatar" :name="com.name" :sex="com.sex" :info="com.orgInfo" :sign="com.sign"></authorInfo>
</div>
</div>
<div class="comment-body" >
@@ -46,7 +46,7 @@
<div class="comment" v-for="(reply,replyIdx) in com.replyList" :key="reply.id" :class="replyIdx===com.replyList.length-1 ? 'comment-last' : ''">
<div class="comment-top">
<div class="comment-author">
<authorInfo :avatar="reply.avatar" :name="reply.sysCreateBy" :sex="reply.sex" :info="reply.orgInfo"></authorInfo>
<authorInfo :avatar="reply.avatar" :name="reply.sysCreateBy" :sex="reply.sex" :info="reply.orgInfo" :sign="reply.sign"></authorInfo>
<span style="margin-left: 10px;color: #8590A6;font-size:14px; ">
<svg-icon style="font-size: 10px;margin-right: 0;" icon-class="triangle"></svg-icon>
</span>
@@ -172,7 +172,7 @@
toUsers:{
type:Array,
},
readonly:{
type:Boolean,
default:false
@@ -292,6 +292,8 @@
item.orgInfo=author.orgInfo;
item.sex=author.sex;
item.name=author.name;
item.sign=author.sign;
return true;
}else{
return false;
@@ -352,7 +354,7 @@
ids.push(reply.sysCreateAid);
})
}
let query={
pageIndex:this.pageIndex,
pageSize:this.pageSize,
@@ -414,9 +416,9 @@
if(this.toUserDig.chooseUserId!=='' && this.toUserDig.chooseUserName!=''){
cdata.toAid=this.toUserDig.chooseUserId;
cdata.toAname=this.toUserDig.chooseUserName;
}
apiComment.add(cdata).then(res=>{
if(res.status==200){
// this.list.unshift(res.result);
@@ -428,7 +430,7 @@
this.loadAuthorInfo([res.result],[res.result.sysCreateAid]);
this.$message.success('发布成功');
//
this.total++;
this.$emit('success',res.result);
this.inputValue='';
@@ -438,9 +440,9 @@
this.$message.error(res.message);
}
});
}
},
showButtons(id){
if(!this.readonly){
@@ -525,8 +527,8 @@
}
});
});
},
delReply(com,re,idx){
// if(com.replyList!='' && com.replyList.length>0){
@@ -572,7 +574,7 @@
$this.$message.error(res.message);
}
}).catch(()=>{
})
})
},
@@ -594,7 +596,7 @@
return;
}
this.replyInfo.commentId=this.replyDiaglog.commentId;
apiComment.reply(this.replyInfo).then(res=>{
if(res.status==200){
res.result.sex = null;
@@ -675,7 +677,7 @@
this.$message.error('查询用户失败');
}
})
},
confirmUser(u){
this.toUserDig.chooseUserId=u.aid;
@@ -686,7 +688,7 @@
}
}
</script>
<style lang="scss" scoped>
.anzhu{
font-size: 14px;
@@ -695,7 +697,7 @@
::v-deep .el-input--medium .el-input__inner {
height: 48px;
}
::v-deep .at-min{
.el-popper[x-placement^=bottom] {
// left: 0 !important;
@@ -703,7 +705,7 @@
margin-left: 30px !important;
}
.el-popover{
}
}
.tag-block{
@@ -712,7 +714,7 @@
position: absolute;
background-color: #fff;
border-color: #fff;
height: 1px;
}
.pag-text{
@@ -728,7 +730,7 @@
.el-radio-button__inner{
border: 1px solid #fff !important;
}
}
.svg-btn{
font-size: 30px;
@@ -770,7 +772,7 @@
}
}
.comments-top-center{
}
.comments-top-right{
color: #6b6b6b;
@@ -848,4 +850,3 @@
}
}
</style>