From 53bc4f0dfee3f45a1d195faf3a584c2d52a303a8 Mon Sep 17 00:00:00 2001 From: wangwenrui Date: Thu, 6 Aug 2020 18:13:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8DalertList=E5=9B=BE?= =?UTF-8?q?=E8=A1=A8=E7=BC=96=E8=BE=91=E6=97=A0=E6=B3=95=E5=9B=9E=E6=98=BE?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/page/dashboard/alertChartParam.vue | 2 -- nezha-fronted/src/components/page/dashboard/chartBox.vue | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/nezha-fronted/src/components/page/dashboard/alertChartParam.vue b/nezha-fronted/src/components/page/dashboard/alertChartParam.vue index 1c900edf0..d567b4c28 100644 --- a/nezha-fronted/src/components/page/dashboard/alertChartParam.vue +++ b/nezha-fronted/src/components/page/dashboard/alertChartParam.vue @@ -93,7 +93,6 @@ this.$emit('on-enter-complate',param,opType); }, setData:function(responseData){ - console.log(responseData) if(responseData&&responseData.param){ let param=responseData.param; let projectId=param.projectId; @@ -118,7 +117,6 @@ state:param.state } - console.log(this.parameters) } }, queryOptionsData:function(){ diff --git a/nezha-fronted/src/components/page/dashboard/chartBox.vue b/nezha-fronted/src/components/page/dashboard/chartBox.vue index 4d86397d1..8b39e1f37 100644 --- a/nezha-fronted/src/components/page/dashboard/chartBox.vue +++ b/nezha-fronted/src/components/page/dashboard/chartBox.vue @@ -909,9 +909,12 @@ this.editChart.param.url = data.param.url; this.setIsUrl(); //this.elements = [1]; - }else if(this.editChart.type==='alertLine'){ + }else if(this.editChart.type==='alertList'){ this.editChart.param = data.param; this.setIsAlertList(); + this.$nextTick(()=>{ + this.$refs.alertParamBox.setData(data) + }) //this.elements=[1]; }else{ if((this.editChart.type==='line'||this.editChart.type==='bar'||this.editChart.type==='stackArea'||this.editChart.type==='singleStat')&&data.param){