From d9a70793f7a17ae1aecd3f65caeaeddb797e7b08 Mon Sep 17 00:00:00 2001 From: duxingchen Date: Fri, 28 Aug 2026 11:33:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E4=BA=A7=E5=93=81=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E4=BA=BA=E6=97=B6=E9=97=B4=E7=9D=80=E8=89=B2?= =?UTF-8?q?=E4=B8=8E=E4=BB=BB=E5=8A=A1=E5=85=A8=E6=99=AF=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 当前人时间按滞留时长着色:<1h 绿 / ≥1h 橙 / ≥24h 红 - 与任务全景「当前人滞留」列的配色逻辑统一 --- frontend/src/pages/admin/AdminProductsPage.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/admin/AdminProductsPage.tsx b/frontend/src/pages/admin/AdminProductsPage.tsx index 8f91b0b..eae6ce1 100644 --- a/frontend/src/pages/admin/AdminProductsPage.tsx +++ b/frontend/src/pages/admin/AdminProductsPage.tsx @@ -240,7 +240,16 @@ export default function AdminProductsPage() { - +
+ + 当前人时间 + {(() => { + const h = p.active_duration_hours; + if (h == null) return ; + const cls = h >= 24 ? "bg-red-50 text-red-600" : h >= 1 ? "bg-orange-50 text-orange-600" : "bg-emerald-50 text-emerald-600"; + return {formatDuration(h)}; + })()} +