个人中心bug

This commit is contained in:
liuxi 2025-01-02 11:51:32 +08:00
parent aa5637dc8d
commit 755a1415e4
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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 => {