From 8f83e484437c0f328ddcd8b8fe123368bede8cb7 Mon Sep 17 00:00:00 2001 From: Ironsp <1522278303@qq.com> Date: Sat, 5 Sep 2026 11:54:05 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E4=BB=AA=E8=A1=A8=E7=9B=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/work/dashboard.vue | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/components/work/dashboard.vue b/src/components/work/dashboard.vue index d392b09..ce3cb41 100644 --- a/src/components/work/dashboard.vue +++ b/src/components/work/dashboard.vue @@ -8,8 +8,8 @@ const compactionValue = 25 const speedValue = 4.2 const speedMax = 12 -// 指针旋转角度:0km/h → 180°(左),12km/h → 0°(右) -const needleRotation = computed(() => 180 * (1 - speedValue / speedMax)) +// 指针旋转角度:0km/h → 225°(左下),12km/h → -45°(右下),中间90°(正上) +const needleRotation = computed(() => 225 - (speedValue / speedMax) * 270) // 今日作业概览数据 (假数据) const overviewData = [ @@ -84,26 +84,26 @@ const overviewData = [ - + - - + + - + - +