From a34d7b57ceaa4ff3a211bdd70feed38bf4642b7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=E5=85=88=E7=94=9F?= <1211120248@qq.com> Date: Thu, 9 Jul 2026 18:12:02 +0800 Subject: [PATCH] fix: polish yak forecast overlay chart --- src/views/yakManagement/index.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/views/yakManagement/index.vue b/src/views/yakManagement/index.vue index afaf6ac..cc7f39c 100644 --- a/src/views/yakManagement/index.vue +++ b/src/views/yakManagement/index.vue @@ -21,6 +21,7 @@ :tile-url-template="yakMapTileUrlTemplate" :center="yakOlMapCenter" :max-zoom="21" + :overlay-layer="activeYakMapLayer" @ready="handleYakOlReady" @layer-status="handleYakLayerStatus" @tile-status="handleYakTileStatus" @@ -1749,7 +1750,7 @@ const monthlyForecastOption = computed(() => ({ itemHeight: 8, textStyle: { color: "rgba(222, 250, 255, 0.78)", fontSize: 10 }, }, - grid: { left: 40, right: 42, top: 34, bottom: 28 }, + grid: { left: 52, right: 42, top: 34, bottom: 28 }, xAxis: { type: "category", data: monthlyRows.value.map((item) => item.month || item.name), @@ -1760,7 +1761,15 @@ const monthlyForecastOption = computed(() => ({ yAxis: [ { type: "value", - axisLabel: { color: "rgba(223, 250, 255, 0.58)", fontSize: 10 }, + axisLabel: { + color: "rgba(223, 250, 255, 0.58)", + fontSize: 10, + formatter: (value) => { + const number = Number(value) + if (!Number.isFinite(number)) return value + return Math.abs(number) >= 10000 ? `${Number((number / 10000).toFixed(1))}δΈ‡` : `${number}` + }, + }, splitLine: { lineStyle: { color: "rgba(48, 220, 255, 0.1)", type: "dashed" } }, }, {