From 8375a4572ba0738d5c635f25ed5fd76f78b7be00 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Fri, 12 Nov 2021 11:46:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9C=89=E4=BA=9B?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E5=88=B7=E6=96=B0=E6=8C=89=E9=92=AE=E4=B8=8D?= =?UTF-8?q?=E7=94=9F=E6=95=88=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/utils/tools.js | 5 +++-- src/views/charts/Chart.vue | 3 --- src/views/charts/Panel.vue | 10 +++++++++- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/utils/tools.js b/src/utils/tools.js index 9361f213..3ed9f9ea 100644 --- a/src/utils/tools.js +++ b/src/utils/tools.js @@ -352,11 +352,12 @@ noDataDom.setAttribute('class', 'no-data') noDataDom.innerText = 'No data' export const noData = { updated (el, binding) { + console.info(binding) if (el && binding.oldValue !== binding.value) { if (binding.value) { setTimeout(() => { el.childNodes.forEach(node => { - node.style.display = 'none' + node.style && (node.style.display = 'none') }) el.insertBefore(noDataDom, el.childNodes[0]) }) @@ -370,7 +371,7 @@ export const noData = { } } el.childNodes.forEach(node => { - node.style.display = '' + node.style && (node.style.display = '') }) }) } diff --git a/src/views/charts/Chart.vue b/src/views/charts/Chart.vue index 7ed61c03..981877b2 100644 --- a/src/views/charts/Chart.vue +++ b/src/views/charts/Chart.vue @@ -1287,7 +1287,6 @@ export default { const queryParams = { ...this.queryTimeRange, ...this.entity } this.chartOption.series[0].tooltip = { formatter: function (param) { - console.info(param) return `
@@ -1369,8 +1368,6 @@ export default { value: item.bytes } }) - console.info(data) - console.info(link) this.chartOption.series[0].data = data this.chartOption.series[0].links = link this.myChart.setOption(this.chartOption) diff --git a/src/views/charts/Panel.vue b/src/views/charts/Panel.vue index e8708ec3..f91b4592 100644 --- a/src/views/charts/Panel.vue +++ b/src/views/charts/Panel.vue @@ -63,7 +63,15 @@
- +