From 06cc43e3403fe90e59618bb7335cdc02a3413c44 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Wed, 15 Dec 2021 09:51:04 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20=E4=BF=AE=E6=94=B9table=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=9C=89=E5=A4=9A=E4=BD=99=E5=8F=82=E6=95=B0=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/rightBox/chart/chartRightBox.vue | 4 +++- nezha-fronted/src/components/page/dashboard/panel.vue | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue index 1aa936a38..979cbf053 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue @@ -170,6 +170,9 @@ export default { params.groupId = 0 } delete params.panel + if (params.type === 'table') { + delete params.param.tags + } if (params.id) { // 修改 this.$put('visual/panel/chart', params).then(response => { if (response.code === 200) { @@ -329,7 +332,6 @@ export default { immediate: true, handler (n) { this.editChart = JSON.parse(JSON.stringify(n)) - console.log(this.editChart) if (this.editChart.groupId === -1) { this.editChart.groupId = '' } diff --git a/nezha-fronted/src/components/page/dashboard/panel.vue b/nezha-fronted/src/components/page/dashboard/panel.vue index 13c8fdffa..b9db70b96 100644 --- a/nezha-fronted/src/components/page/dashboard/panel.vue +++ b/nezha-fronted/src/components/page/dashboard/panel.vue @@ -415,6 +415,9 @@ export default { if (!this.chart.groupId || this.chart.groupId == -1) { this.chart.groupId = '' } + if (this.chart.type == 'table') { + this.chart.param.tags = this.chart.param.indexs ? this.chart.param.indexs.split(',') : [] + } } else { this.$message.error(res.msg) }