diff --git a/fuellog-web/src/pages/Dashboard.vue b/fuellog-web/src/pages/Dashboard.vue index 7727a48..8c1c6df 100644 --- a/fuellog-web/src/pages/Dashboard.vue +++ b/fuellog-web/src/pages/Dashboard.vue @@ -1,20 +1,36 @@ - 添加车辆 + + 添加车辆 + - + + + 当前车辆 + + + 当前车辆 - {{ vehicleStore.getCurrent()?.name || '—' }} + {{ currentVehicle?.name || '—' }} - 本月加油 + 累计加油 {{ fmtAmount(stats.total_amount) }} 共 {{ stats.total_records }} 笔 - + 平均油价 @@ -64,14 +111,21 @@ onMounted(async () => { {{ fmtConsumption(stats.avg_consumption) }} - + 每公里成本 {{ fmtCostPerKm(stats.cost_per_km) }} + + 累计升数 + + {{ stats.total_liters.toFixed(2) }} L + + +