This commit is contained in:
zhaofang
2022-09-16 17:21:07 +08:00
parent 99586e1144
commit 018a54cd1e
2 changed files with 10 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div class="item-author">
<div style="width:28px;height:28px;">
<div style="width:28px;height:28px;" @click="toHome()">
<!-- <el-avatar shape="square" size="small" :src="userAvatar" v-if="userAvatar"></el-avatar> -->
<!-- <div v-else class="uavatar"><span class="uavatar-text">{{avatarText}}</span></div> -->
<el-avatar shape="circle" size="small" :src="userAvatar" v-if="userAvatar"></el-avatar>
@@ -66,6 +66,12 @@ import { userAvatarText } from "@/utils/tools.js";
this.userInfo=this.info;
this.usersex = this.sex;
},
methods:{
toHome() {
// ,query:{id:item.objId || item.id}
this.$router.push({path:'/homePage'})
}
},
watch:{
name(newVal,oldVal){
this.userName=newVal;

View File

@@ -70,7 +70,7 @@
<!--互动内容-->
<div style="display: flex;justify-content:flex-start;align-items: center;margin-top: 0px;">
<div style="flex:1;">
<author :avatar="article.authorInfo.avatar" :name="article.sysCreateBy" :sex="article.authorInfo.sex"></author>
<author :avatar="article.authorInfo.avatar" :name="article.sysCreateBy" :sex="article.authorInfo.sex" ></author>
</div>
<div style="">
<interactBar nodeWidth="60px" :readonly="true" :type="2" :data="article" :views="false"></interactBar>
@@ -354,7 +354,7 @@ export default {
this.isSeach =false;
let ids = [];
res.result.list.forEach(item => {
item.authorInfo = { name: '', avatar: '', orgInfo: '' ,sex:null};
item.authorInfo = {aid:'', name: '', avatar: '', orgInfo: '' ,sex:null};
ids.push(item.sysCreateAid);
});
that.getQaUserData(res.result.list, ids);
@@ -377,6 +377,7 @@ export default {
list.forEach(item => {
res.result.some(author => {
if (author.aid == item.sysCreateAid) {
item.authorInfo.aid = author.aid;
item.authorInfo.avatar = author.avatar;
item.authorInfo.name = author.name;
item.authorInfo.orgInfo = author.orgInfo;