From bb411aaaf56e34b2bdb28d871d8be01c4067e4c1 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Thu, 26 Sep 2024 14:25:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=8C=87=E6=A0=87=E5=8D=A1=E9=85=8D=E7=BD=AE=E6=95=B0=E5=80=BC?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=90=8E=E8=A2=AB=E9=87=8D=E7=BD=AE=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20#12199?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/editor/drag-item/QuotaItem.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/editor/drag-item/QuotaItem.vue b/core/core-frontend/src/views/chart/components/editor/drag-item/QuotaItem.vue index 51ae3d9ebf..c3dc1148d3 100644 --- a/core/core-frontend/src/views/chart/components/editor/drag-item/QuotaItem.vue +++ b/core/core-frontend/src/views/chart/components/editor/drag-item/QuotaItem.vue @@ -249,7 +249,10 @@ const quickCalc = param => { break case 'setting': // 选择占比外,设置自动 - resetValueFormatter(item.value) + // 指标卡不需要重置数值格式 + if (chart.value.type !== 'indicator') { + resetValueFormatter(item.value) + } editCompare() break case 'percent': @@ -278,6 +281,7 @@ const editCompare = () => { } const valueFormatter = () => { + debugger item.value.index = props.index item.value.formatterType = props.type emit('valueFormatter', item.value)