diff --git a/frontend/src/api/modules/test-plan/report.ts b/frontend/src/api/modules/test-plan/report.ts index 391f01ae3d..a57ea67942 100644 --- a/frontend/src/api/modules/test-plan/report.ts +++ b/frontend/src/api/modules/test-plan/report.ts @@ -1,7 +1,8 @@ import MSR from '@/api/http'; import * as reportUrl from '@/api/requrls/test-plan/report'; -import type { TableQueryParams } from '@/models/common'; +import { CommonList, TableQueryParams } from '@/models/common'; +import { FeatureCaseItem, ReportBugItem, UpdateReportDetailParams } from '@/models/testPlan/report'; // 报告列表 export function reportList(data: TableQueryParams) { @@ -23,4 +24,19 @@ export function reportBathDelete(data: TableQueryParams) { return MSR.post({ url: reportUrl.PlanBatchDeleteUrl, data }); } +// 测试计划-报告-详情-缺陷分页查询 +export function getReportBugList(data: TableQueryParams) { + return MSR.post>({ url: reportUrl.ReportBugListUrl, data }); +} + +// 测试计划-报告-详情-功能用例分页查询 +export function getReportFeatureCaseList(data: TableQueryParams) { + return MSR.post>({ url: reportUrl.ReportFeatureCaseListUrl, data }); +} + +// 测试计划-报告-详情-报告内容更新 +export function updateReportDetail(data: UpdateReportDetailParams) { + return MSR.post({ url: reportUrl.UpdateReportDetailUrl, data }); +} + export default {}; diff --git a/frontend/src/api/requrls/test-plan/report.ts b/frontend/src/api/requrls/test-plan/report.ts index 09a81882bd..8ae8126098 100644 --- a/frontend/src/api/requrls/test-plan/report.ts +++ b/frontend/src/api/requrls/test-plan/report.ts @@ -6,3 +6,9 @@ export const PlanReportRenameUrl = '/test-plan/report/rename'; export const PlanDeleteUrl = '/test-plan/report/delete'; // 批量删除报告 export const PlanBatchDeleteUrl = '/test-plan/report/batch-delete'; +// 测试计划-报告-详情-缺陷分页查询 +export const ReportBugListUrl = '/test-plan/report/detail/bug/page'; +// 测试计划-报告-详情-功能用例分页查询 +export const ReportFeatureCaseListUrl = '/test-plan/report/detail/functional/case/page'; +// 测试计划-报告-详情-报告内容更新 +export const UpdateReportDetailUrl = '/test-plan/report/detail/edit'; diff --git a/frontend/src/enums/tableEnum.ts b/frontend/src/enums/tableEnum.ts index 48b6c0c686..a637b901de 100644 --- a/frontend/src/enums/tableEnum.ts +++ b/frontend/src/enums/tableEnum.ts @@ -67,6 +67,8 @@ export enum TableKeyEnum { TEST_PLAN_DETAIL_FEATURE_CASE_TABLE = 'testPlanDetailFeatureCaseTable', TEST_PLAN_DETAIL_BUG_TABLE_CASE_COUNT = 'testPlanDetailBugCaseCount', TEST_PLAN_REPORT_TABLE = 'testPlanReportTable', + TEST_PLAN_REPORT_DETAIL_BUG = 'testPlanReportDetailBug', + TEST_PLAN_REPORT_DETAIL_FEATURE_CASE = 'testPlanReportDetailFeatureCase', TASK_API_CASE_SYSTEM = 'taskCenterApiCaseSystem', TASK_API_CASE_ORGANIZATION = 'taskCenterApiCaseOrganization', TASK_API_CASE_PROJECT = 'taskCenterApiCaseProject', diff --git a/frontend/src/models/testPlan/report.ts b/frontend/src/models/testPlan/report.ts new file mode 100644 index 0000000000..c165fbb30f --- /dev/null +++ b/frontend/src/models/testPlan/report.ts @@ -0,0 +1,25 @@ +export interface ReportBugItem { + id: string; + num: number; + title: string; + status: string; + handleUserName: string; + relationCaseCount: number; +} + +export interface FeatureCaseItem { + id: string; + num: number; + name: string; + moduleName: string; + priority: string; + executeResult: string; + executeUserName: string; + bugCount: number; +} + +export interface UpdateReportDetailParams { + id: string; + summary: string; + richTextTmpFileIds: string[]; +} diff --git a/frontend/src/views/test-plan/report/detail/component/bugTable.vue b/frontend/src/views/test-plan/report/detail/component/bugTable.vue new file mode 100644 index 0000000000..0207e09feb --- /dev/null +++ b/frontend/src/views/test-plan/report/detail/component/bugTable.vue @@ -0,0 +1,85 @@ + + + diff --git a/frontend/src/views/test-plan/report/detail/component/featureCaseTable.vue b/frontend/src/views/test-plan/report/detail/component/featureCaseTable.vue new file mode 100644 index 0000000000..4a810a1e68 --- /dev/null +++ b/frontend/src/views/test-plan/report/detail/component/featureCaseTable.vue @@ -0,0 +1,120 @@ + + + diff --git a/frontend/src/views/test-plan/report/detail/index.vue b/frontend/src/views/test-plan/report/detail/index.vue index 9069dc6145..3d85b701b9 100644 --- a/frontend/src/views/test-plan/report/detail/index.vue +++ b/frontend/src/views/test-plan/report/detail/index.vue @@ -1,13 +1,79 @@ diff --git a/frontend/src/views/test-plan/report/locale/en-US.ts b/frontend/src/views/test-plan/report/locale/en-US.ts index fb6e8d13e6..387c864bbb 100644 --- a/frontend/src/views/test-plan/report/locale/en-US.ts +++ b/frontend/src/views/test-plan/report/locale/en-US.ts @@ -33,4 +33,7 @@ export default { 'report.passRate': 'Pass rate', 'report.completed': 'Completed', 'report.passRateTip': 'Pass rate: successful cases in the plan / cases in the plan * 100%', + 'report.detail.reportSummary': 'Report summary', + 'report.detail.bugDetails': 'Bug details', + 'report.detail.featureCaseDetails': 'Feature case details', }; diff --git a/frontend/src/views/test-plan/report/locale/zh-CN.ts b/frontend/src/views/test-plan/report/locale/zh-CN.ts index e5b9eca645..2cfd7c4e19 100644 --- a/frontend/src/views/test-plan/report/locale/zh-CN.ts +++ b/frontend/src/views/test-plan/report/locale/zh-CN.ts @@ -33,4 +33,7 @@ export default { 'report.passRate': '通过率', 'report.passRateTip': '通过率:执行成功的用例/计划内用例 * 100%', 'report.completed': '已完成', + 'report.detail.reportSummary': '报告总结', + 'report.detail.bugDetails': '缺陷明细', + 'report.detail.featureCaseDetails': '功能用例明细', };