This commit is contained in:
@@ -587,8 +587,6 @@
|
||||
}
|
||||
|
||||
getAccountList()
|
||||
loadShopList()
|
||||
loadEnterpriseList()
|
||||
})
|
||||
|
||||
// 加载所有角色列表
|
||||
@@ -597,7 +595,7 @@
|
||||
const params: any = {
|
||||
page: 1,
|
||||
page_size: keyword ? 100 : 20, // 搜索时加载更多,默认20条
|
||||
role_type: 1
|
||||
role_type: currentAccountType.value === 2 ? 1 : 2
|
||||
}
|
||||
if (keyword) {
|
||||
params.role_name = keyword
|
||||
@@ -646,6 +644,10 @@
|
||||
|
||||
// 显示分配角色对话框
|
||||
const showRoleDialog = async (row: any) => {
|
||||
if (row.user_type === 1) {
|
||||
ElMessage.warning('超级管理员无法分配角色')
|
||||
return
|
||||
}
|
||||
currentAccountId.value = row.id
|
||||
currentAccountName.value = row.username
|
||||
currentAccountType.value = row.user_type
|
||||
@@ -1019,7 +1021,7 @@
|
||||
.role-info {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
gap: 8px;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user