调整编辑角色
This commit is contained in:
parent
3ecc0558b1
commit
c5cee6ee5c
@ -239,10 +239,15 @@ function edieUserData(row: User) {
|
|||||||
userInfo.name = row.name;
|
userInfo.name = row.name;
|
||||||
userInfo.mobile = row.mobile;
|
userInfo.mobile = row.mobile;
|
||||||
userInfo.registerTime = row.registerTime;
|
userInfo.registerTime = row.registerTime;
|
||||||
userInfo.roleList = row.roleList;
|
if (row?.roleList) {
|
||||||
userInfo.Rids = row.roleList.map((item) => {
|
userInfo.roleList = row.roleList;
|
||||||
return item.roleId;
|
userInfo.Rids = row.roleList.map((item) => {
|
||||||
});
|
return item.roleId;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
userInfo.roleList = [];
|
||||||
|
userInfo.Rids = [];
|
||||||
|
}
|
||||||
editFormShow.value = true;
|
editFormShow.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user