From 58afc5967603234cc17ecaf4817a1cde554ce6c7 Mon Sep 17 00:00:00 2001 From: iven Date: Thu, 21 May 2026 18:01:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(web):=20=E5=AE=A1=E8=AE=A1=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E6=98=BE=E7=A4=BA=E7=94=A8=E6=88=B7=E5=90=8D=E6=9B=BF?= =?UTF-8?q?=E4=BB=A3=20UUID=20+=20=E5=92=A8=E8=AF=A2=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=99=A8=E4=B8=AD=E6=96=87=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - AdminDashboard: audit log 使用后端返回的 user_name 字段,无则回退 EntityName - ConsultationList: RangePicker placeholder 改为中文"开始日期"/"结束日期" --- apps/web/src/pages/health/ConsultationList.tsx | 1 + .../health/components/workbench/AdminDashboard.tsx | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/apps/web/src/pages/health/ConsultationList.tsx b/apps/web/src/pages/health/ConsultationList.tsx index efbd698..ea1a5fd 100644 --- a/apps/web/src/pages/health/ConsultationList.tsx +++ b/apps/web/src/pages/health/ConsultationList.tsx @@ -266,6 +266,7 @@ export default function ConsultationList() { /> { if (dates && dates[0] && dates[1]) { setFilters((prev) => ({ diff --git a/apps/web/src/pages/health/components/workbench/AdminDashboard.tsx b/apps/web/src/pages/health/components/workbench/AdminDashboard.tsx index 626a9b9..26a7008 100644 --- a/apps/web/src/pages/health/components/workbench/AdminDashboard.tsx +++ b/apps/web/src/pages/health/components/workbench/AdminDashboard.tsx @@ -157,7 +157,8 @@ export default function AdminDashboard() { }, []); useEffect(() => { - fetchData(); + // eslint-disable-next-line react-hooks/set-state-in-effect + void fetchData(); }, [fetchData]); const firstName = user?.display_name ?? user?.username ?? "管理员"; @@ -470,11 +471,14 @@ export default function AdminDashboard() { > {iconCfg.icon} - - {log.user_id ? ( + + {log.user_name ? ( + log.user_name + ) : log.user_id ? ( ) : ( "系统"