From 0bd0946115cf1ad802a10c48f977232b8f50fae1 Mon Sep 17 00:00:00 2001 From: wangwenrui Date: Mon, 14 Sep 2020 16:24:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E5=87=BA=E7=8E=B0legend=E7=9B=B8=E5=90=8C=E7=9A=84=E6=83=85?= =?UTF-8?q?=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/charts/chart-list.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nezha-fronted/src/components/charts/chart-list.vue b/nezha-fronted/src/components/charts/chart-list.vue index ccccb346e..2eb5afc13 100644 --- a/nezha-fronted/src/components/charts/chart-list.vue +++ b/nezha-fronted/src/components/charts/chart-list.vue @@ -174,7 +174,6 @@ }, watch:{ dataList(n){ - console.log(n); } }, data() { @@ -846,7 +845,6 @@ endTime = this.filter.end_time; //this.$parent.refreshTime(startTime,endTime);全屏查询,不更新panel列表的时间条件 } else { - console.log('页面进入',this.filter) startTime = this.filter.start_time; endTime = this.filter.end_time; } @@ -965,9 +963,10 @@ if (!alias || alias === '') { alias = host; } - legend.push({name: host + resIndex, alias: alias}); + legend.push({name: host+"-"+chartItem.elements[innerPos].id+"-" + resIndex, alias: alias}); // 图表中每条线的名字,去掉最后的逗号与空格:metric名称, 标签1=a,标签2=c - seriesItem.theData.name = host + resIndex; + + seriesItem.theData.name = host +"-"+chartItem.elements[innerPos].id+"-"+ resIndex; //alert(seriesItem.theData.name); seriesItem.metric_name = seriesItem.theData.name; // 将秒改为毫秒