From b4bf37b0636e10f391d29a7d32612f48c4d83f6c Mon Sep 17 00:00:00 2001
From: wangjiahao <1522128093@qq.com>
Date: Thu, 27 Oct 2022 21:20:13 +0800
Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BB=AA?=
=?UTF-8?q?=E8=A1=A8=E6=9D=BF=E4=BF=AE=E6=94=B9=E5=90=8D=E7=A7=B0=E5=90=8E?=
=?UTF-8?q?=E6=B2=A1=E6=9C=89=E8=87=AA=E5=8A=A8=E4=BF=AE=E6=94=B9=E9=A1=B6?=
=?UTF-8?q?=E9=83=A8=E5=90=8D=E7=A7=B0=20#3445?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/panel/list/EditPanel/index.vue | 62 +++++++++++--------
frontend/src/views/panel/list/PanelList.vue | 3 +
2 files changed, 39 insertions(+), 26 deletions(-)
diff --git a/frontend/src/views/panel/list/EditPanel/index.vue b/frontend/src/views/panel/list/EditPanel/index.vue
index a6daca3789..03a5e89aee 100644
--- a/frontend/src/views/panel/list/EditPanel/index.vue
+++ b/frontend/src/views/panel/list/EditPanel/index.vue
@@ -8,16 +8,19 @@
{{ $t('panel.custom') }}
+ > {{ $t('panel.custom') }}
+
{{ $t('panel.import_template') }}
+ >{{ $t('panel.import_template') }}
+
{{ $t('panel.copy_template') }}
+ >{{ $t('panel.copy_template') }}
+
{{ $t('panel.upload_template') }}
+ >{{ $t('panel.upload_template') }}
+
{{ $t('commons.cancel') }}
+ >{{ $t('commons.cancel') }}
+
{{ $t('commons.confirm') }}
+ >{{ $t('commons.confirm') }}
+
@@ -234,7 +240,7 @@ export default {
showClose: true
})
this.loading = false
- this.$emit('closeEditPanelDialog', response.data)
+ this.$emit('closeEditPanelDialog', { id: response.data, name: this.editPanel.panelInfo.name })
}).catch(() => {
this.loading = false
})
@@ -265,34 +271,38 @@ export default {
diff --git a/frontend/src/views/panel/list/PanelList.vue b/frontend/src/views/panel/list/PanelList.vue
index 671f996f94..1ff274d29f 100644
--- a/frontend/src/views/panel/list/PanelList.vue
+++ b/frontend/src/views/panel/list/PanelList.vue
@@ -645,6 +645,9 @@ export default {
if (panelInfo) {
this.defaultTree()
this.tree()
+ if (this.editPanel.optType === 'rename' && panelInfo.id === this.$store.state.panel.panelInfo.id) {
+ this.$store.state.panel.panelInfo.name = panelInfo.name
+ }
// 默认展开 同时点击 新增的节点
if (
panelInfo &&