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