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){