fix: 修改工单bug
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 2m15s

This commit is contained in:
sexygoat
2026-04-22 17:42:36 +08:00
parent 8378d2228e
commit fd22dc7ad4
14 changed files with 199 additions and 280 deletions

View File

@@ -582,7 +582,8 @@
try {
const params: any = {
page: 1,
page_size: 20
page_size: 20,
role_type: 1
}
if (keyword) {
params.role_name = keyword
@@ -607,23 +608,9 @@
}, 300)
}
// 计算属性:过滤后的可分配角色(根据账号类型过滤)
// 计算属性:过滤后的可分配角色
const filteredAvailableRoles = computed(() => {
let roles = allRoles.value
// 根据账号类型过滤角色
if (currentAccountType.value === 3) {
// 代理账号:只显示客户角色
roles = roles.filter((role) => role.role_type === 2)
} else if (currentAccountType.value === 2) {
// 平台用户:只显示平台角色
roles = roles.filter((role) => role.role_type === 1)
} else if (currentAccountType.value === 4) {
// 企业账号:只显示客户角色
roles = roles.filter((role) => role.role_type === 2)
}
return roles
return allRoles.value
})
// 计算属性:过滤后的已分配角色