From 2c82adf77c728d12820f8223ff2c90fd2eb3d5c8 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 22 Feb 2021 10:37:17 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9topology=20toolti?= =?UTF-8?q?p=E8=A1=A8=E6=A0=BC=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/project/L5/topoTooltip.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/common/project/L5/topoTooltip.vue b/nezha-fronted/src/components/common/project/L5/topoTooltip.vue index a893988c4..62224405d 100644 --- a/nezha-fronted/src/components/common/project/L5/topoTooltip.vue +++ b/nezha-fronted/src/components/common/project/L5/topoTooltip.vue @@ -103,6 +103,7 @@ threshold:'', url:'', valueMapping:{"mapping":[{"color":{"bac":"#fff","text":"#000"},"text":"","value":""}],"type":"text"}, + statistics:chartData.aggregation }; chartData.span=12; this.chartData=chartData; @@ -266,6 +267,7 @@ element: {element: host, alias: alias}, time: timeTmp,//采集时间 value: dpsItem[1],//数值 + data:[dpsItem[0] * 1000, dpsItem[1]] }); return [dpsItem[0] * 1000, dpsItem[1]]; }); @@ -300,7 +302,7 @@ errorMsg: errorMsg, } if (chartItem.type === 'table') {//表格 - this.$refs['editChart' + chartItem.type].setData(chartItem, tableData,this.filter.panelId, this.filter, filterType, errorMsg); + this.$refs['editChart' + chartItem.type].setData(chartItem, tableData,this.filter.panelId, this.filter, '', errorMsg); } else if (chartItem.type === 'line' || chartItem.type === 'bar' || chartItem.type === 'stackArea' || chartItem.type === 4) { if (series.length && chartItem.type === 4) {//曲线汇总 //series.push(sumData);//后续需要