diff --git a/frontend/src/components/business/ms-associate-case/caseTree.vue b/frontend/src/components/business/ms-associate-case/caseTree.vue
index e2a7b5330f..f1a88362bd 100644
--- a/frontend/src/components/business/ms-associate-case/caseTree.vue
+++ b/frontend/src/components/business/ms-associate-case/caseTree.vue
@@ -147,7 +147,7 @@
const virtualListProps = computed(() => {
return {
- height: 'calc(100vh - 236px)',
+ height: 'calc(100vh - 250px)',
threshold: 200,
fixedSize: true,
buffer: 15, // 缓冲区默认 10 的时候,虚拟滚动的底部 padding 计算有问题
diff --git a/frontend/src/components/business/ms-associate-case/index.vue b/frontend/src/components/business/ms-associate-case/index.vue
index 5b01079aa1..974f0b45ec 100644
--- a/frontend/src/components/business/ms-associate-case/index.vue
+++ b/frontend/src/components/business/ms-associate-case/index.vue
@@ -282,7 +282,7 @@
/>
-
+
{{ t('ms.case.associate.api') }}
@@ -311,6 +312,7 @@
children: 'children',
}"
class="ml-[12px] w-[200px]"
+ allow-clear
:data="scenarioSetTree"
>
@@ -366,6 +368,7 @@
import type { ModuleTreeNode, TableQueryParams } from '@/models/common';
import type { ProjectListItem } from '@/models/setting/project';
+ import type { PlanDetailApiCaseTreeParams } from '@/models/testPlan/testPlan';
import { CaseModulesApiTypeEnum, CasePageApiTypeEnum } from '@/enums/associateCaseEnum';
import { CaseLinkEnum } from '@/enums/caseEnum';
@@ -626,15 +629,20 @@
async function initTestSet() {
if (props.extraTableParams?.testPlanId) {
+ const params: PlanDetailApiCaseTreeParams = {
+ testPlanId: props.extraTableParams.testPlanId,
+ treeType: 'COLLECTION',
+ };
try {
- apiSetTree.value = await getApiCaseModule({
- testPlanId: props.extraTableParams.testPlanId,
- treeType: 'COLLECTION',
- });
- scenarioSetTree.value = await getApiScenarioModule({
- testPlanId: props.extraTableParams.testPlanId,
- treeType: 'COLLECTION',
- });
+ const [apiSetTreeResult, scenarioSetTreeResult] = await Promise.all([
+ getApiCaseModule(params),
+ getApiScenarioModule(params),
+ ]);
+
+ apiSetTree.value = apiSetTreeResult;
+ scenarioSetTree.value = scenarioSetTreeResult;
+ apiCaseCollectionId.value = apiSetTree.value[0].id;
+ apiScenarioCollectionId.value = scenarioSetTree.value[0].id;
} catch (error) {
console.log(error);
}
diff --git a/frontend/src/views/test-plan/testPlan/detail/index.vue b/frontend/src/views/test-plan/testPlan/detail/index.vue
index f0aa0003df..efc2c8f340 100644
--- a/frontend/src/views/test-plan/testPlan/detail/index.vue
+++ b/frontend/src/views/test-plan/testPlan/detail/index.vue
@@ -33,12 +33,8 @@
{{ t('common.edit') }}
-
-
+
+
{{ t('testPlan.testPlanDetail.generateReport') }}