From 30b29ca6cbc417a4c3b217fbff0826cb9df7ecc2 Mon Sep 17 00:00:00 2001 From: baiqi Date: Fri, 20 Sep 2024 17:18:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E8=84=91=E5=9B=BE=E7=8E=AF?= =?UTF-8?q?=E5=A2=83/=E8=B5=84=E6=BA=90=E8=8A=82=E7=82=B9=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E8=8F=9C=E5=8D=95=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1046852 --user=白奇 测试规划-点击环境/资源池标签后点击其它模块节点-也展示环境/资源池下拉框 https://www.tapd.cn/55049933/s/1582607 --- .../business/ms-minders/testPlanMinder/index.vue | 15 ++++++++------- .../pure/ms-minder-editor/menu/nodeDropdown.vue | 5 ++++- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/business/ms-minders/testPlanMinder/index.vue b/frontend/src/components/business/ms-minders/testPlanMinder/index.vue index aee8d8e373..907c564087 100644 --- a/frontend/src/components/business/ms-minders/testPlanMinder/index.vue +++ b/frontend/src/components/business/ms-minders/testPlanMinder/index.vue @@ -306,6 +306,13 @@ () => props.status !== 'ARCHIVED' && hasAnyPermission(['PROJECT_TEST_PLAN:READ+UPDATE']) ); + /** + * 是否可以显示下拉菜单 + */ + const canShowDropdown = ref(false); + const dropdownList = ref([]); + const checkedVal = ref(); + /** * 检测节点可展示的菜单项 * @param node 选中节点 @@ -752,18 +759,12 @@ } ); - /** - * 是否可以显示下拉菜单 - */ - const canShowDropdown = ref(false); - const dropdownList = ref([]); - const checkedVal = ref(); - /** * 处理节点选中 * @param node 节点 */ function handleNodeSelect(node: PlanMinderNode) { + canShowDropdown.value = false; if (checkConfigFormUnsaved()) { return; } diff --git a/frontend/src/components/pure/ms-minder-editor/menu/nodeDropdown.vue b/frontend/src/components/pure/ms-minder-editor/menu/nodeDropdown.vue index 61d6ff736b..66558a0b0e 100644 --- a/frontend/src/components/pure/ms-minder-editor/menu/nodeDropdown.vue +++ b/frontend/src/components/pure/ms-minder-editor/menu/nodeDropdown.vue @@ -17,7 +17,9 @@ :class="props.checkedVal === item.value ? 'ms-minder-node-dropdown-item--active' : ''" @click="item.onClick && item.onClick()" > -
{{ item.label }}
+ +
{{ item.label }}
+
@@ -45,6 +47,7 @@