Fix Bug #441: 手术室护士角色进入门诊手术安排页面时,卫生机构列表接口无权限报错改为静默降级
原因:后端 getTenantPage API 对手术室护士角色无权限,前端 msgError 弹窗阻断用户体验。 修复:loadOrgList() 权限失败时静默降级(console.warn 替代 msgError),列表下拉框显示为空但不弹窗。 用户仍可查看已安排的手术数据,仅筛选条件中的卫生机构下拉框不可用。 Co-Authored-By: 赵云 <zhaoyun@gentronhealth.com>
This commit is contained in:
20
logs/.2c17bf7b4e92189ae54ef8e767273ceaeb613314-audit.json
Executable file
20
logs/.2c17bf7b4e92189ae54ef8e767273ceaeb613314-audit.json
Executable file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"keep": {
|
||||
"days": true,
|
||||
"amount": 14
|
||||
},
|
||||
"auditLog": "/root/.openclaw/workspace/his-repo/logs/.2c17bf7b4e92189ae54ef8e767273ceaeb613314-audit.json",
|
||||
"files": [
|
||||
{
|
||||
"date": 1778128585254,
|
||||
"name": "/root/.openclaw/workspace/his-repo/logs/application-2026-05-07.log",
|
||||
"hash": "2ec545aad5feb57a45e48b0a980690b3b9ef6b90e57204f6c3dfb1c7f2fd4d95"
|
||||
},
|
||||
{
|
||||
"date": 1778200962650,
|
||||
"name": "/root/.openclaw/workspace/his-repo/logs/application-2026-05-08.log",
|
||||
"hash": "cf50ef7b8aa656efb0a209a252219fea97a437ff9020b1b8770788f1ba51303e"
|
||||
}
|
||||
],
|
||||
"hashType": "sha256"
|
||||
}
|
||||
20
logs/.9c2086cba7d24dcd050254bba93c4693957f894e-audit.json
Executable file
20
logs/.9c2086cba7d24dcd050254bba93c4693957f894e-audit.json
Executable file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"keep": {
|
||||
"days": true,
|
||||
"amount": 14
|
||||
},
|
||||
"auditLog": "/root/.openclaw/workspace/his-repo/logs/.9c2086cba7d24dcd050254bba93c4693957f894e-audit.json",
|
||||
"files": [
|
||||
{
|
||||
"date": 1778128585256,
|
||||
"name": "/root/.openclaw/workspace/his-repo/logs/error-2026-05-07.log",
|
||||
"hash": "84a811bf9cf76799b49d36df79427471c8e0cfaa1bd359422d69091b06a64f87"
|
||||
},
|
||||
{
|
||||
"date": 1778200962653,
|
||||
"name": "/root/.openclaw/workspace/his-repo/logs/error-2026-05-08.log",
|
||||
"hash": "83b015957301572a67ea6fb41a65dfe5aa357831ca361155629630c6e9ef68bd"
|
||||
}
|
||||
],
|
||||
"hashType": "sha256"
|
||||
}
|
||||
@@ -1113,12 +1113,14 @@ function loadOrgList() {
|
||||
const records = res.data?.records || res.data || []
|
||||
orgList.value = records.map(item => ({ id: item.id, name: item.tenantName || item.name }))
|
||||
} else {
|
||||
proxy.$modal.msgError('获取卫生机构列表失败')
|
||||
// 权限不足时静默降级,不弹窗阻断(Bug #441)
|
||||
console.warn('卫生机构列表加载失败(可能无权限):', res.message || res.code)
|
||||
orgList.value = []
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
proxy.$modal.msgError('获取卫生机构列表失败')
|
||||
.catch((err) => {
|
||||
// 网络错误或权限拒绝:静默降级
|
||||
console.warn('卫生机构列表加载失败:', err?.message || err)
|
||||
orgList.value = []
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user