From dd208a2e99c7f4c3ab1ef47ed31d59d5a8552414 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Fri, 3 Dec 2021 16:29:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=20=E6=96=B0=E5=A2=9Em?= =?UTF-8?q?etrics=E6=97=B6=20=E5=90=8D=E7=A7=B0=E4=B8=A2=E5=A4=B1=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 --- .../components/common/rightBox/chart/chartRightBox.vue | 9 ++++++++- 1 file changed, 8 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 a78ceb846..4333b1f4f 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue @@ -161,6 +161,7 @@ export default { const arr = [this.$refs.chartForm.validate()] arr.push(this.$refs['childrenFrom' + this.editChart.datasource].$refs.chartForm.validate()) Promise.all(arr).then(res => { + this.editChart.param = JSON.stringify(this.editChart.param) if (this.editChart.id) { // 修改 this.$put('visual/panel/chart', this.editChart).then(response => { if (response.code === 200) { @@ -286,7 +287,13 @@ export default { } }, editChartChange (newEditChart) { - this.editChart = JSON.parse(JSON.stringify(newEditChart)) + this.editChart = { + ...JSON.parse(JSON.stringify(newEditChart)), + name: this.editChart.name, + remark: this.editChart.remark, + groupId: this.editChart.groupId, + panelName: this.editChart.panelName + } } }, created () {