From 88ce63152c5a6708f1bc7581ad829f13238c2585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=BA=91?= Date: Fri, 8 May 2026 15:27:44 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#441:=20=E6=89=8B=E6=9C=AF=E5=AE=A4?= =?UTF-8?q?=E6=8A=A4=E5=A3=AB=E8=A7=92=E8=89=B2=E8=BF=9B=E5=85=A5=E9=97=A8?= =?UTF-8?q?=E8=AF=8A=E6=89=8B=E6=9C=AF=E5=AE=89=E6=8E=92=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=8D=AB=E7=94=9F=E6=9C=BA=E6=9E=84=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=8E=A5=E5=8F=A3=E6=97=A0=E6=9D=83=E9=99=90=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E6=94=B9=E4=B8=BA=E9=9D=99=E9=BB=98=E9=99=8D=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原因:后端 getTenantPage API 对手术室护士角色无权限,前端 msgError 弹窗阻断用户体验。 修复:loadOrgList() 权限失败时静默降级(console.warn 替代 msgError),列表下拉框显示为空但不弹窗。 用户仍可查看已安排的手术数据,仅筛选条件中的卫生机构下拉框不可用。 Co-Authored-By: 赵云 --- ...e92189ae54ef8e767273ceaeb613314-audit.json | 20 +++++++++++++++++++ ...7d24dcd050254bba93c4693957f894e-audit.json | 20 +++++++++++++++++++ .../src/views/surgicalschedule/index.vue | 8 +++++--- 3 files changed, 45 insertions(+), 3 deletions(-) create mode 100755 logs/.2c17bf7b4e92189ae54ef8e767273ceaeb613314-audit.json create mode 100755 logs/.9c2086cba7d24dcd050254bba93c4693957f894e-audit.json diff --git a/logs/.2c17bf7b4e92189ae54ef8e767273ceaeb613314-audit.json b/logs/.2c17bf7b4e92189ae54ef8e767273ceaeb613314-audit.json new file mode 100755 index 00000000..9d14d063 --- /dev/null +++ b/logs/.2c17bf7b4e92189ae54ef8e767273ceaeb613314-audit.json @@ -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" +} \ No newline at end of file diff --git a/logs/.9c2086cba7d24dcd050254bba93c4693957f894e-audit.json b/logs/.9c2086cba7d24dcd050254bba93c4693957f894e-audit.json new file mode 100755 index 00000000..c346d314 --- /dev/null +++ b/logs/.9c2086cba7d24dcd050254bba93c4693957f894e-audit.json @@ -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" +} \ No newline at end of file diff --git a/openhis-ui-vue3/src/views/surgicalschedule/index.vue b/openhis-ui-vue3/src/views/surgicalschedule/index.vue index 2108a7a6..e7c9c6ed 100755 --- a/openhis-ui-vue3/src/views/surgicalschedule/index.vue +++ b/openhis-ui-vue3/src/views/surgicalschedule/index.vue @@ -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 = [] }) }