From f713d8cf789abef79d38052b4d129ccd9f9eb8e9 Mon Sep 17 00:00:00 2001 From: teukkk Date: Fri, 18 Oct 2024 14:18:58 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):?= =?UTF-8?q?=20=E8=AE=A1=E5=88=92=E8=AF=A6=E6=83=85=E9=A1=B5-=E9=AB=98?= =?UTF-8?q?=E7=BA=A7=E7=AD=9B=E9=80=89-=E6=89=80=E5=B1=9E=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E9=87=8C=E7=A6=81=E7=94=A8=E9=A1=B9=E7=9B=AE=E5=B1=82?= =?UTF-8?q?=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../testPlan/detail/apiCase/components/caseTable.vue | 7 ++++++- .../detail/apiScenario/components/scenarioTable.vue | 7 ++++++- .../testPlan/detail/featureCase/components/caseTable.vue | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/test-plan/testPlan/detail/apiCase/components/caseTable.vue b/frontend/src/views/test-plan/testPlan/detail/apiCase/components/caseTable.vue index 833fc392bb..2e181f860e 100644 --- a/frontend/src/views/test-plan/testPlan/detail/apiCase/components/caseTable.vue +++ b/frontend/src/views/test-plan/testPlan/detail/apiCase/components/caseTable.vue @@ -587,7 +587,12 @@ title: 'common.belongModule', dataIndex: 'moduleId', type: FilterType.TREE_SELECT, - treeSelectData: props.treeType === 'MODULE' ? props.moduleTree : anotherTree.value, + treeSelectData: (props.treeType === 'MODULE' ? props.moduleTree : anotherTree.value).map((node) => { + return { + ...node, + disabled: true, // 项目层级的禁用掉 + }; + }), treeSelectProps: { fieldNames: { title: 'name', diff --git a/frontend/src/views/test-plan/testPlan/detail/apiScenario/components/scenarioTable.vue b/frontend/src/views/test-plan/testPlan/detail/apiScenario/components/scenarioTable.vue index 1eda65852e..6e54c2972a 100644 --- a/frontend/src/views/test-plan/testPlan/detail/apiScenario/components/scenarioTable.vue +++ b/frontend/src/views/test-plan/testPlan/detail/apiScenario/components/scenarioTable.vue @@ -564,7 +564,12 @@ title: 'common.belongModule', dataIndex: 'moduleId', type: FilterType.TREE_SELECT, - treeSelectData: props.treeType === 'MODULE' ? props.moduleTree : anotherTree.value, + treeSelectData: (props.treeType === 'MODULE' ? props.moduleTree : anotherTree.value).map((node) => { + return { + ...node, + disabled: true, // 项目层级的禁用掉 + }; + }), treeSelectProps: { fieldNames: { title: 'name', diff --git a/frontend/src/views/test-plan/testPlan/detail/featureCase/components/caseTable.vue b/frontend/src/views/test-plan/testPlan/detail/featureCase/components/caseTable.vue index f73b1c4535..27bfd7545e 100644 --- a/frontend/src/views/test-plan/testPlan/detail/featureCase/components/caseTable.vue +++ b/frontend/src/views/test-plan/testPlan/detail/featureCase/components/caseTable.vue @@ -664,7 +664,12 @@ title: 'common.belongModule', dataIndex: 'moduleId', type: FilterType.TREE_SELECT, - treeSelectData: props.treeType === 'MODULE' ? moduleTree.value : anotherTree.value, + treeSelectData: (props.treeType === 'MODULE' ? moduleTree.value : anotherTree.value).map((node) => { + return { + ...node, + disabled: true, // 项目层级的禁用掉 + }; + }), treeSelectProps: { fieldNames: { title: 'name',