From fb6f94b666ac979d8f746d87ebd5047e29ac0d6a Mon Sep 17 00:00:00 2001 From: zhangyu Date: Fri, 18 Mar 2022 09:39:04 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1695=20fix=EF=BC=9A=20Explore=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E5=9B=BE=E8=A1=A8=E5=90=8E=E6=97=A0=E6=B3=95=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/rightBox/chart/chartRightBox.vue | 4 ++++ .../src/components/page/dashboard/explore/exploreItem.vue | 2 +- 2 files changed, 5 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 463e7fd9c..1abf0914f 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue @@ -226,6 +226,10 @@ export default { params.x = 0 params.y = 999 } + if (this.from === 'explore') { // explore 新增 放在最后 + params.x = 0 + params.y = 999 + } if (!params.x && !params.y && this.from === 'chartTemp') { // chartTemp 新增 在第一位 params.x = 0 params.y = 0 diff --git a/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue b/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue index 6a0476302..7f16cd4f2 100644 --- a/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue +++ b/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue @@ -982,7 +982,7 @@ export default { this.chartData = chart this.rightBox.show = true }, - createSuccess (type, response, param, panel) { // 添加chart成功 + createSuccess (panel) { // 添加chart成功 this.$confirm(this.$t('dashboard.metric.goPanelTip'), this.$t('tip.saveSuccess'), { confirmButtonText: this.$t('tip.yes'), cancelButtonText: this.$t('tip.no'),