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 = [ - + - - + + - + - +