调整编辑角色

This commit is contained in:
joylink_zhaoerwei 2024-10-23 14:44:03 +08:00
parent 3ecc0558b1
commit c5cee6ee5c

View File

@ -239,10 +239,15 @@ function edieUserData(row: User) {
userInfo.name = row.name;
userInfo.mobile = row.mobile;
userInfo.registerTime = row.registerTime;
if (row?.roleList) {
userInfo.roleList = row.roleList;
userInfo.Rids = row.roleList.map((item) => {
return item.roleId;
});
} else {
userInfo.roleList = [];
userInfo.Rids = [];
}
editFormShow.value = true;
}