From bb411aaaf56e34b2bdb28d871d8be01c4067e4c1 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Thu, 26 Sep 2024 14:25:03 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=8C=87=E6=A0=87=E5=8D=A1=E9=85=8D=E7=BD=AE=E6=95=B0?= =?UTF-8?q?=E5=80=BC=E6=A0=BC=E5=BC=8F=E5=90=8E=E8=A2=AB=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E7=9A=84=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) From 963f4ff85b724480c06de99caafb675245a023e7 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Thu, 26 Sep 2024 14:27:40 +0800 Subject: [PATCH 2/2] =?UTF-8?q?style(=E5=9B=BE=E8=A1=A8):=20=E6=B8=85?= =?UTF-8?q?=E9=99=A4debugger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/editor/drag-item/QuotaItem.vue | 1 - 1 file changed, 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 c3dc1148d3..5a1e9bb751 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 @@ -281,7 +281,6 @@ const editCompare = () => { } const valueFormatter = () => { - debugger item.value.index = props.index item.value.formatterType = props.type emit('valueFormatter', item.value)