From 17b92e9b60dda6dcc20c748046a5ff3c3958d52e Mon Sep 17 00:00:00 2001
From: wangrong <wangrong@shsening.com>
Date: 星期五, 28 八月 2026 16:19:11 +0800
Subject: [PATCH] 增加首页大屏显示
---
src/modules/report/data/screen.ts | 67 ++-------------------------------
1 files changed, 4 insertions(+), 63 deletions(-)
diff --git a/src/modules/report/data/screen.ts b/src/modules/report/data/screen.ts
index a419dee..658c00a 100644
--- a/src/modules/report/data/screen.ts
+++ b/src/modules/report/data/screen.ts
@@ -40,68 +40,9 @@
unavailable?: string[];
}
+import { structureScreen } from './screen-structure';
+
+/** 闆跺�肩粨鏋勫厹搴曪紝鍥捐〃杞翠笌鍝佺被鍚嶇О浠嶅畬鏁� */
export function emptyScreen(range: TimeRange = 'month'): ScreenData {
- return {
- range,
- axis: [],
- kpis: {
- todayWeightKg: 0,
- periodWeightTon: 0,
- resourceRate: 0,
- periodValue: 0,
- periodCarbonTon: 0,
- totalWeightTon: 0,
- totalParticipants: 0,
- totalPoints: 0,
- recyclableTon: 0,
- bulkTon: 0,
- elecTon: 0,
- fabricTon: 0,
- yearCarbonTon: 0,
- monthCarbonTon: 0,
- totalCarbonTon: 0,
- greenActions: 0,
- newParticipants: 0,
- participateRate: 0,
- pointsIssued: 0,
- pointsConsumed: 0,
- pointsBalance: 0,
- sorterOnline: 0,
- sorterTotal: 0,
- vehicleOnline: 0,
- vehicleTotal: 0,
- siteOnline: 0,
- siteTotal: 0,
- todayOrders: 0,
- todayAppointments: 0,
- pendingAppointments: 0,
- alerts: 0,
- healthAlerts: 0
- },
- wasteMix: [],
- recycleItems: [],
- trend: { weight: [], value: [], carbon: [] },
- yearCarbon: Array.from({ length: 12 }, () => 0),
- deptRank: [],
- classRank: [],
- majorRank: [],
- pointFlow: { issued: 0, transfer: 0, donate: 0, mall: 0, balance: 0 },
- participateTrend: [],
- deliverTrend: [],
- ordersByType: { axis: [], 鐜板満鍥炴敹: [], 棰勭害涓婇棬: [], 澶у睆鎶曢��: [], 娲诲姩鍥炴敹: [] },
- appointmentFlow: [
- { name: '棰勭害', value: 0 },
- { name: '鎺ュ崟', value: 0 },
- { name: '瀹屾垚', value: 0 }
- ],
- sorterStatus: [
- { name: '宸ヤ綔涓�', value: 0, color: '#22c55e' },
- { name: '浼戞伅', value: 0, color: '#f59e0b' },
- { name: '寮傚父', value: 0, color: '#ef4444' },
- { name: '绂荤嚎', value: 0, color: '#94a3b8' }
- ],
- vehicles: [],
- sites: [],
- unavailable: []
- };
+ return structureScreen(range);
}
--
Gitblit v1.9.1