fix: bug
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 7m11s

This commit is contained in:
sexygoat
2026-04-24 18:39:39 +08:00
parent 2d6b5d7903
commit 17c299e4ce
27 changed files with 500 additions and 481 deletions

View File

@@ -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;
}