diff --git a/frontend/src/api/modules/test-plan/testPlan.ts b/frontend/src/api/modules/test-plan/testPlan.ts index 4d314984c6..ee65451ad7 100644 --- a/frontend/src/api/modules/test-plan/testPlan.ts +++ b/frontend/src/api/modules/test-plan/testPlan.ts @@ -8,6 +8,7 @@ import { batchCopyPlanUrl, batchDeletePlanUrl, BatchDisassociateCaseUrl, + BatchEditTestPlanUrl, batchMovePlanUrl, BatchRunCaseUrl, BatchUpdateCaseExecutorUrl, @@ -16,6 +17,7 @@ import { DeleteTestPlanModuleUrl, DisassociateCaseUrl, EditCaseLastExecResultUrl, + ExecuteHistoryUrl, followPlanUrl, GenerateReportUrl, GetAssociatedBugUrl, @@ -52,6 +54,8 @@ import type { BatchUpdateCaseExecutorParams, DisassociateCaseParams, EditLastExecResultParams, + ExecuteHistoryItem, + ExecuteHistoryType, FollowPlanParams, PassRateCountDetail, PlanDetailBugItem, @@ -85,6 +89,11 @@ export function moveTestPlanModuleTree(data: MoveModules) { return MSR.post({ url: MoveTestPlanModuleUrl, data }); } +// 批量编辑测试计划 +export function batchEditTestPlan(data: TableQueryParams) { + return MSR.post({ url: BatchEditTestPlanUrl, data }); +} + // 删除模块 export function deletePlanModuleTree(id: string) { return MSR.get({ url: `${DeleteTestPlanModuleUrl}/${id}` }); @@ -226,3 +235,7 @@ export function associateBugToPlan(data: TableQueryParams) { export function testPlanCancelBug(id: string) { return MSR.get({ url: `${TestPlanCancelBugUrl}/${id}` }); } +// 测试计划-用例详情-执行历史 +export function executeHistory(data: ExecuteHistoryType) { + return MSR.post({ url: ExecuteHistoryUrl, data }); +} diff --git a/frontend/src/api/requrls/test-plan/testPlan.ts b/frontend/src/api/requrls/test-plan/testPlan.ts index 776ae7ee6e..dbc26fe7f9 100644 --- a/frontend/src/api/requrls/test-plan/testPlan.ts +++ b/frontend/src/api/requrls/test-plan/testPlan.ts @@ -22,6 +22,8 @@ export const UpdateTestPlanUrl = '/test-plan/update'; export const batchDeletePlanUrl = '/test-plan/batch-delete'; // 删除测试计划 export const deletePlanUrl = '/test-plan/delete'; +// 测试计划批量编辑 +export const BatchEditTestPlanUrl = '/test-plan/batch-edit'; // 获取统计数量 export const getStatisticalCountUrl = '/test-plan/getCount'; // 归档 @@ -29,7 +31,7 @@ export const archivedPlanUrl = '/test-plan/archived'; // 批量复制 export const batchCopyPlanUrl = '/test-plan/batch-copy'; // 批量移动 -export const batchMovePlanUrl = '/test-plan/batch/move'; +export const batchMovePlanUrl = '/test-plan/batch-move'; // 批量归档 export const batchArchivedPlanUrl = '/test-plan/batch-archived'; // 计划详情缺陷管理列表 @@ -74,3 +76,5 @@ export const BatchRunCaseUrl = '/test-plan/functional/case/batch/run'; export const GetTestPlanUsersUrl = '/test-plan/functional/case/user-option'; // 计划详情-功能用例-批量更新执行人 export const BatchUpdateCaseExecutorUrl = '/test-plan/functional/case/batch/update/executor'; +// 计划详情-功能用例-执行历史 +export const ExecuteHistoryUrl = '/test-plan/functional/case/exec/history'; diff --git a/frontend/src/components/business/ms-case-associate/index.vue b/frontend/src/components/business/ms-case-associate/index.vue index d178e1f740..0a36cf452b 100644 --- a/frontend/src/components/business/ms-case-associate/index.vue +++ b/frontend/src/components/business/ms-case-associate/index.vue @@ -86,7 +86,7 @@ }" :expand-all="isExpandAll" block-node - title-tooltip-position="left" + title-tooltip-position="top" @select="folderNodeSelect" > diff --git a/frontend/src/views/test-plan/testPlan/detail/featureCase/index.vue b/frontend/src/views/test-plan/testPlan/detail/featureCase/index.vue index 18a20071e3..937a27c956 100644 --- a/frontend/src/views/test-plan/testPlan/detail/featureCase/index.vue +++ b/frontend/src/views/test-plan/testPlan/detail/featureCase/index.vue @@ -76,4 +76,12 @@ function initModuleTree(tree: ModuleTreeNode[]) { moduleTree.value = unref(tree); } + + function getCaseTableList() { + caseTableRef.value?.loadCaseList(); + } + + defineExpose({ + getCaseTableList, + }); diff --git a/frontend/src/views/test-plan/testPlan/detail/index.vue b/frontend/src/views/test-plan/testPlan/detail/index.vue index 956d81dde4..a6f9ffdae5 100644 --- a/frontend/src/views/test-plan/testPlan/detail/index.vue +++ b/frontend/src/views/test-plan/testPlan/detail/index.vue @@ -101,11 +101,21 @@ - + - +