bug
This commit is contained in:
parent
dda2376fe6
commit
2a5de3f40e
|
@ -469,26 +469,17 @@ export default {
|
||||||
console.log("this.form.userId", this.form.userId)//系统用户
|
console.log("this.form.userId", this.form.userId)//系统用户
|
||||||
console.log("this.appUserId", this.appUserId)//app用户
|
console.log("this.appUserId", this.appUserId)//app用户
|
||||||
let roles1 = this.form.roles
|
let roles1 = this.form.roles
|
||||||
console.log("this.form.roles", roles1)//app用户
|
console.log("this.form.roles", JSON.stringify(roles1))//app用户
|
||||||
let role
|
let role
|
||||||
if (roles1 && roles1.length > 0) {
|
if (roles1 && roles1.length > 0) {
|
||||||
let roleKey = roles1[0].roleKey
|
role = roles1[0].roleId
|
||||||
if (roleKey == 'root') {
|
|
||||||
role = '3';
|
|
||||||
} else if (roleKey == 'repair') {
|
|
||||||
role = '2';
|
|
||||||
} else if (roleKey == "leader" || roleKey == "admin") {
|
|
||||||
role = '9';
|
|
||||||
} else if (roleKey == "partner") {
|
|
||||||
role = '4';
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.$modal.msgError("系统用户未绑定角色");
|
this.$modal.msgError("系统用户未绑定角色");
|
||||||
this.open2 = false;
|
this.open2 = false;
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
console.log("role", role)
|
console.log("role", role)
|
||||||
bandSystemUser({ userId: this.appUserId, sysUserId: this.form.userId, role: role }).then(response => {
|
bandSystemUser({ userId: this.appUserId, sysUserId: this.form.userId, role: role ,sysRole: role}).then(response => {
|
||||||
getUser(this.form.userId).then(response => {
|
getUser(this.form.userId).then(response => {
|
||||||
this.appUserList = response.data.users;
|
this.appUserList = response.data.users;
|
||||||
console.log("this.appUserList", this.appUserList)
|
console.log("this.appUserList", this.appUserList)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user