fix: SLA阈值调整 — <24h绿 24-48h橙 >48h红
This commit is contained in:
@ -66,9 +66,9 @@ function ProgressBar({ a, b, c, total, labels, d }: {
|
||||
|
||||
// ─── 滞留时间 SLA 预警颜色 ────────────────────────────────
|
||||
function durationColor(h: number) {
|
||||
if (h >= 24) return "text-red-600 bg-red-100 font-bold"; // 超24h 危险
|
||||
if (h >= 12) return "text-orange-600 bg-orange-50"; // 12-24h 警告
|
||||
return "text-emerald-600 bg-emerald-50"; // <12h 正常
|
||||
if (h >= 48) return "text-red-600 bg-red-100 font-bold";
|
||||
if (h >= 24) return "text-orange-600 bg-orange-50";
|
||||
return "text-emerald-600 bg-emerald-50";
|
||||
}
|
||||
function durationLabel(h: number) {
|
||||
if (h >= 48) return `${Math.round(h / 24)}天`;
|
||||
|
||||
Reference in New Issue
Block a user