个人中心bug
This commit is contained in:
parent
aa5637dc8d
commit
755a1415e4
@ -228,7 +228,8 @@
|
||||
id:'',
|
||||
signPic:'',
|
||||
replyPhone:'',
|
||||
cardNo:''
|
||||
cardNo:'',
|
||||
roleIds:[]
|
||||
},
|
||||
signUrl:'',
|
||||
rulesClient: {
|
||||
@ -265,6 +266,9 @@
|
||||
this.PersonalInfo.signPic = res.signPic
|
||||
this.PersonalInfo.replyPhone = res.replyPhone
|
||||
this.PersonalInfo.cardNo = res.cardNo
|
||||
|
||||
this.PersonalInfo.deptId = res.deptId
|
||||
this.PersonalInfo.roleIds = res.roleIds
|
||||
})
|
||||
api.getQrCode().then(res => {
|
||||
this.signUrl = 'data:image/jpg;base64,'+res
|
||||
|
||||
@ -219,13 +219,14 @@ export default {
|
||||
if (valid) {
|
||||
_this.userInfo.username = _this.userInfo.phone;
|
||||
|
||||
if(_this.userInfo.teamId!=''){
|
||||
if(_this.userInfo.teamId!=''&&_this.userInfo.teamId!=null){
|
||||
_this.userInfo.deptId = _this.userInfo.teamId;
|
||||
}
|
||||
else
|
||||
{
|
||||
_this.userInfo.deptId = _this.userInfo.regionId;
|
||||
}
|
||||
|
||||
if(Object.keys(this.addOrEditUserConfig.data).length>0)
|
||||
{
|
||||
api.updateUserById(_this.userInfo).then(res => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user