[update 用户管理] 角色没有逗号拼接
This commit is contained in:
@@ -367,7 +367,7 @@ export default {
|
|||||||
getUserRoles (userid) {
|
getUserRoles (userid) {
|
||||||
queryUserRole({ userid: userid }).then((res) => {
|
queryUserRole({ userid: userid }).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.model.selectedroles = res.result.join(',')
|
this.model.selectedroles = res.result
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -430,7 +430,9 @@ export default {
|
|||||||
if (this.model.userIdentity !== 2) {
|
if (this.model.userIdentity !== 2) {
|
||||||
this.model.departIds = ''
|
this.model.departIds = ''
|
||||||
}
|
}
|
||||||
|
if (Array.isArray(this.model.selectedroles)) {
|
||||||
|
this.model.selectedroles = this.model.selectedroles.join(',')
|
||||||
|
}
|
||||||
// 对密码、邮箱、手机号进行加密
|
// 对密码、邮箱、手机号进行加密
|
||||||
const encrypt = new JSEncrypt()
|
const encrypt = new JSEncrypt()
|
||||||
encrypt.setPublicKey(that.rsaPublicKey)
|
encrypt.setPublicKey(that.rsaPublicKey)
|
||||||
|
|||||||
Reference in New Issue
Block a user