From dac6ce8cea3c2bebd75e65a78fd913953e641259 Mon Sep 17 00:00:00 2001 From: zyh Date: Thu, 7 Sep 2023 17:57:30 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-3170=20fix=EF=BC=9Aparams=E6=94=B9=E4=B8=BA?= =?UTF-8?q?json=E5=AD=97=E7=AC=A6=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/alert/alertMessageInfo.vue | 4 ++++ nezha-fronted/src/components/common/rightBox/alertRuleBox.vue | 4 +++- nezha-fronted/src/components/page/alert/alertMessage.vue | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/common/alert/alertMessageInfo.vue b/nezha-fronted/src/components/common/alert/alertMessageInfo.vue index 8070dbca1..59b4b533f 100644 --- a/nezha-fronted/src/components/common/alert/alertMessageInfo.vue +++ b/nezha-fronted/src/components/common/alert/alertMessageInfo.vue @@ -26,6 +26,7 @@


') { this.editAlertRule.trbShot = '' @@ -958,6 +958,8 @@ export default { obj.param = { dataLink: [] } + } else { + obj.param = JSON.parse(obj.param) } this.editAlertRule = this.$lodash.cloneDeep(obj) this.showPanel.id = this.editAlertRule.dashboardId diff --git a/nezha-fronted/src/components/page/alert/alertMessage.vue b/nezha-fronted/src/components/page/alert/alertMessage.vue index be5293b53..f220e1bfb 100644 --- a/nezha-fronted/src/components/page/alert/alertMessage.vue +++ b/nezha-fronted/src/components/page/alert/alertMessage.vue @@ -647,7 +647,7 @@ export default { // 设置dataLink if (this.currentMsg.alertRule.param) { - chartInfo.param.dataLink = this.currentMsg.alertRule.param.dataLink + chartInfo.param.dataLink = JSON.parse(this.currentMsg.alertRule.param).dataLink } chartInfo.id = this.currentMsg.id