From 9983caed2aca0e158673f6e24aa2d2115e1898f4 Mon Sep 17 00:00:00 2001 From: wangwenrui Date: Thu, 17 Sep 2020 11:17:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E5=88=87=E6=8D=A2chartty?= =?UTF-8?q?pe=20=E5=90=8E=E5=88=87=E5=9B=9EsingleStat=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98=E4=BB=A5=E5=8F=8A?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/page/dashboard/chartBox.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/page/dashboard/chartBox.vue b/nezha-fronted/src/components/page/dashboard/chartBox.vue index dea7900aa..57dfcca81 100644 --- a/nezha-fronted/src/components/page/dashboard/chartBox.vue +++ b/nezha-fronted/src/components/page/dashboard/chartBox.vue @@ -211,7 +211,7 @@
- + {{$t('dashboard.panel.chartForm.valMapping.value')}} {{$t('dashboard.panel.chartForm.valMapping.range')}} @@ -1054,6 +1054,14 @@ }else if(chartType === 'singleStat'){ this.setIsSingleStat(); this.resetElements(); + this.statistics='', + this.editChart.param={ + statistics:'', + valueMapping:{ + type:'value', + mapping:[{text:'',value:''}] + } + } }else { this.setIsOtherChart(); if(chartType === 'bar'||chartType === 'line'||chartType === 'stackArea'){ @@ -1287,7 +1295,6 @@ } .val-mapping-type .no-fill span{ background-color: unset !important; - color: #FA901C !important; }