|
@@ -307,16 +307,7 @@ export default {
|
|
|
this.companyUserId=companyUserId;
|
|
|
this.qwListAccount();
|
|
|
},
|
|
|
- qwUserChange(qwUserId){
|
|
|
- let index= this.accountList.findIndex(item => item.qwUserId == qwUserId);
|
|
|
- this.qwUser=this.accountList[index];
|
|
|
- this.qwUserId=this.qwUser.qwUserId;
|
|
|
- this.qwUser.userId=this.qwUserId;
|
|
|
- this.setQwUserInfo();
|
|
|
- this.getContacts(); //获取联系人信息
|
|
|
- this.getConversation(); //获取会话信息
|
|
|
- },
|
|
|
- qwListAccount(companyUserId) {
|
|
|
+ qwListAccount() {
|
|
|
if(!this.companyUserId){
|
|
|
this.msgError("请选择员工");
|
|
|
return;
|
|
@@ -328,14 +319,34 @@ export default {
|
|
|
this.qwUser=this.accountList[0];
|
|
|
this.qwUserId=this.qwUser.qwUserId;
|
|
|
this.qwUser.userId=this.qwUserId;
|
|
|
+ if(this.qwUser.qwUserId==null){
|
|
|
+ this.msgError("暂未扫码登录企微号");
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.setQwUserInfo();
|
|
|
this.getContacts(); //获取联系人信息
|
|
|
this.getConversation(); //获取会话信息
|
|
|
}else{
|
|
|
+ this.qwUser={};
|
|
|
+ this.qwUserId="";
|
|
|
this.msgError("该员工暂无企微号!");
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ qwUserChange(qwUserId){
|
|
|
+ let index= this.accountList.findIndex(item => item.qwUserId == qwUserId);
|
|
|
+ this.qwUser=this.accountList[index];
|
|
|
+ this.qwUserId=this.qwUser.qwUserId;
|
|
|
+ this.qwUser.userId=this.qwUserId;
|
|
|
+ if(this.qwUser.qwUserId==null){
|
|
|
+ this.msgError("暂未扫码登录企微号");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.setQwUserInfo();
|
|
|
+ this.getContacts(); //获取联系人信息
|
|
|
+ this.getConversation(); //获取会话信息
|
|
|
+ },
|
|
|
+
|
|
|
setQwUserInfo(){
|
|
|
this.deviceId=this.qwUser.deviceId;
|
|
|
this.UserData.id=this.qwUser.userId;
|