From 6e6228a7fa863c30349387249136668f12a0d894 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Fri, 25 Nov 2022 11:30:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E9=87=8D?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E6=8A=A5=E9=94=99=E6=97=A0=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/dataease/service/panel/PanelGroupService.java | 4 ++++ frontend/src/views/panel/list/PanelList.vue | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/io/dataease/service/panel/PanelGroupService.java b/backend/src/main/java/io/dataease/service/panel/PanelGroupService.java index 5ad6ab684e..a6e418bc6e 100644 --- a/backend/src/main/java/io/dataease/service/panel/PanelGroupService.java +++ b/backend/src/main/java/io/dataease/service/panel/PanelGroupService.java @@ -222,6 +222,10 @@ public class PanelGroupService { } else { // 更新 + if (StringUtils.isBlank(request.getPid())) { + PanelGroupWithBLOBs panel = panelGroupMapper.selectByPrimaryKey(request.getId()); + request.setPid(panel.getPid()); + } if (StringUtils.isNotEmpty(request.getName())) { checkPanelName(request.getName(), request.getPid(), PanelConstants.OPT_TYPE_UPDATE, request.getId(), request.getNodeType()); } diff --git a/frontend/src/views/panel/list/PanelList.vue b/frontend/src/views/panel/list/PanelList.vue index 2ece545af3..5f7adfba96 100644 --- a/frontend/src/views/panel/list/PanelList.vue +++ b/frontend/src/views/panel/list/PanelList.vue @@ -730,7 +730,6 @@ export default { titlePre: this.$t('commons.edit'), panelInfo: { id: param.data.id, - pid: param.data.pid, name: param.data.name, nodeType: param.type }