From 24b66f68b578a4057378f1a50315dc04db29d07a Mon Sep 17 00:00:00 2001 From: kkfluous Date: Sat, 28 Mar 2026 20:28:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=87=BA=E5=8B=A4=E7=8E=87/=E5=87=BA?= =?UTF-8?q?=E5=8B=A4/=E9=97=B2=E7=BD=AE=E6=98=BE=E7=A4=BA=E4=B8=BA-?= =?UTF-8?q?=EF=BC=88=E6=95=B0=E6=8D=AE=E6=8E=A5=E5=85=A5=E4=B8=AD=EF=BC=89?= =?UTF-8?q?=EF=BC=8C=E7=A7=BB=E5=8A=A8=E7=AB=AF=E9=9A=90=E8=97=8F=E6=A0=87?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 部门Tab顶部汇总、桌面表格、移动端卡片的出勤率/出勤/闲置 全部显示为"-",移除点击下钻(数据未就绪) - 移动端隐藏"羚牛氢能车辆资产"标题 Co-Authored-By: Claude Opus 4.6 (1M context) --- src/App.tsx | 64 ++++++++++++++--------------------------------------- 1 file changed, 16 insertions(+), 48 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index e41da92..8ca133c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -412,7 +412,7 @@ export default function App() {
{/* Title row */}
-

羚牛氢能车辆资产

+

羚牛氢能车辆资产

{/* Right: status + theme */}
@@ -1275,25 +1275,17 @@ export default function App() { 总运营车辆 {deptData.reduce((s, d) => s + d.totalAssets, 0)}
-
setShowPlateNumbers({ batch: 'All', model: 'All', location: 'All', attendance: 'active', source: 'department', title: '部门运营统计 - 出勤车辆' })}> +
出勤车辆 - - {deptData.reduce((acc, d) => acc + d.operatingCount, 0)} - + -
-
setShowPlateNumbers({ batch: 'All', model: 'All', location: 'All', attendance: 'idle', source: 'department', title: '部门运营统计 - 闲置车辆' })}> +
闲置车辆 - - {deptData.reduce((acc, d) => acc + d.idleCount, 0)} - + -
平均出勤 - - {deptData.length > 0 ? (deptData.reduce((acc, d) => acc + d.attendanceRate, 0) / deptData.length).toFixed(1) : 0}% - + -
@@ -1379,9 +1371,7 @@ export default function App() { {dept.department} - - {dept.attendanceRate}% - + - - - - - + - + - {isExpanded ? : } @@ -1599,8 +1569,8 @@ export default function App() { >

{dept.department}

- - 出勤率: {dept.attendanceRate}% + + 出勤率: -
@@ -1609,15 +1579,13 @@ export default function App() {
总运营
{dept.totalAssets}
-
{ e.stopPropagation(); setShowPlateNumbers({ batch: 'All', model: 'All', location: 'All', department: dept.department, attendance: 'active', source: 'department', title: `部门运营统计 - ${dept.department} - 出勤车辆` }); }}> -
出勤
-
{dept.operatingCount}
+
+
出勤
+
-
-
{ e.stopPropagation(); setShowPlateNumbers({ batch: 'All', model: 'All', location: 'All', department: dept.department, attendance: 'idle', source: 'department', title: `部门运营统计 - ${dept.department} - 闲置车辆` }); }}> +
闲置
-
{dept.idleCount}
+
-