fix: align asset customer data with OneOS and refine statistics display
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
shishengliang
2026-09-20 09:51:31 +08:00
parent 746edeb72c
commit 8fb574599b
8 changed files with 56 additions and 86 deletions
+3 -3
View File
@@ -34,7 +34,7 @@ import {
deriveInventoryView,
deriveModalVehicleView,
formatLocalDateTime,
getWeeklyFlowRange,
getRecentFlowRange,
selectFlowDetails,
type VehicleModalSelection,
type FlowSelection,
@@ -84,10 +84,10 @@ export default function AssetsModule() {
const [error, setError] = useState<string | null>(null);
const [lastUpdate, setLastUpdate] = useState<string>(() => formatLocalDateTime(new Date()));
const [modalLoading, setModalLoading] = useState(false);
const [flowRange, setFlowRange] = useState(() => getWeeklyFlowRange());
const [flowRange, setFlowRange] = useState(() => getRecentFlowRange());
const [flowStats, setFlowStats] = useState<FlowStatsResponse | null>(null);
const [flowLoading, setFlowLoading] = useState(false);
const [flowDailyExpanded, setFlowDailyExpanded] = useState(false);
const [flowDailyExpanded, setFlowDailyExpanded] = useState(true);
const [selectedFlow, setSelectedFlow] = useState<FlowSelection | null>(null);
// Dept/Region/Customer data