Commit 995834f4 authored by anxixi's avatar anxixi

人脉圈

parent 4ba8de0c
......@@ -35,7 +35,7 @@
</div>
<div v-if="item.empId != userInfo.empId">
<popoverBardbar v-if="item.isFriend == 2" :row="item"></popoverBardbar>
<btnbar v-else @successState="successState" :row="item" :index="index"></btnbar>
<btnbar v-else @loginState="loginState" @successState="successState" :row="item" :index="index"></btnbar>
</div>
</li>
</ul>
......@@ -73,7 +73,7 @@
networkringlist:[],
loading:false,
iscontent:false,
userInfo:this.publicFun.getUserInfoCookieType()?JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())):null,
userInfo:this.publicFun.getUserInfoCookieType()?JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())):{},
}
},
computed: {
......@@ -88,7 +88,7 @@
methods:{
//登陆成功
successlogin(){
this.userInfo = this.publicFun.getUserInfoCookieType() ? JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())) : null;
this.userInfo = this.publicFun.getUserInfoCookieType() ? JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())) : {};
this.cur_page = 1;
this.getuserSearch();
},
......@@ -142,6 +142,10 @@
this.getuserSearch();
}
},
//调取快捷登录
loginState(){
this.$refs.login.isexpertVisible();
},
//去主页
tohome(row){
if(!this.publicFun.getUserInfoCookieType()){
......
......@@ -37,6 +37,10 @@
this.followed = '已关注';
},
isEmpContact(){
if(!this.publicFun.getUserInfoCookieType()){
this.$emit('loginState');
return
}
if(this.row.isFollowed == 0){
this.addEmpConcern();
}else{
......@@ -111,6 +115,10 @@
},
//+联系人
addEmpContact(row){
if(!this.publicFun.getUserInfoCookieType()){
this.$emit('loginState');
return
}
if(row.isFriend == 0 || row.isFriend == 1){
let params = {
otherEmpId:this.row.empId,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment