diff --git a/frontend/src/api/modules/test-plan/testPlan.ts b/frontend/src/api/modules/test-plan/testPlan.ts index 49934a6a88..b445974870 100644 --- a/frontend/src/api/modules/test-plan/testPlan.ts +++ b/frontend/src/api/modules/test-plan/testPlan.ts @@ -392,7 +392,7 @@ export function getApiScenarioReport(reportId: string) { export function getApiScenarioReportStep(reportId: string, stepId: string) { return MSR.get({ url: `${ApiScenarioReportDetailStepUrl}/${reportId}/${stepId}` }); } -// 计划详情-执行历史 TODO 联调 +// 计划详情-执行历史 export function getPlanDetailExecuteHistory(data: PlanDetailFeatureCaseListQueryParams) { return MSR.post>({ url: PlanDetailExecuteHistoryUrl, data }); } diff --git a/frontend/src/api/requrls/test-plan/testPlan.ts b/frontend/src/api/requrls/test-plan/testPlan.ts index 5d86fd4a66..d5360b1714 100644 --- a/frontend/src/api/requrls/test-plan/testPlan.ts +++ b/frontend/src/api/requrls/test-plan/testPlan.ts @@ -80,8 +80,8 @@ 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'; -// 计划详情-执行历史 TODO 联调 -export const PlanDetailExecuteHistoryUrl = '/api/scenario/execute/page'; +// 计划详情-执行历史 +export const PlanDetailExecuteHistoryUrl = '/his/page'; // 功能用例-关联用例-接口用例-API export const TestPlanApiAssociatedPageUrl = '/test-plan/association/api/page'; // 功能用例-关联用例-接口用例-CASE diff --git a/frontend/src/assets/style/global.less b/frontend/src/assets/style/global.less index 000147106d..3da0204fc3 100644 --- a/frontend/src/assets/style/global.less +++ b/frontend/src/assets/style/global.less @@ -98,7 +98,7 @@ body { } /* 白色背景的tooltip */ -.tooltip-white { +.ms-tooltip-white { .arco-tooltip-content { background-color: var(--color-bg-1); box-shadow: 0 4px 10px -1px rgb(100 100 102 / 15%); @@ -108,3 +108,16 @@ body { background-color: var(--color-bg-1); } } + +/* 红色背景的tooltip */ +.ms-tooltip-red { + .arco-tooltip-content { + color: rgb(var(--danger-6)); + background-color: rgb(var(--danger-1)); + box-shadow: 0 4px 10px -1px rgb(100 100 102 / 15%); + } + .arco-tooltip-popup-arrow { + z-index: 1; + background-color: rgb(var(--danger-1)); + } +} diff --git a/frontend/src/models/testPlan/testPlan.ts b/frontend/src/models/testPlan/testPlan.ts index 4635f4905b..2a1a3e3d9b 100644 --- a/frontend/src/models/testPlan/testPlan.ts +++ b/frontend/src/models/testPlan/testPlan.ts @@ -61,6 +61,7 @@ export interface AddTestPlanParams { projectId?: string; testPlanId?: string; functionalCaseCount?: number; + isGroup?: boolean; } export interface TestPlanDetail extends AddTestPlanParams { @@ -144,7 +145,7 @@ export interface FollowPlanParams { } export interface TestPlanBaseParams { - projectId: string; + projectId?: string; testPlanId: string; } @@ -348,17 +349,16 @@ export interface PlanDetailApiScenarioItem { testPlanCollectionId: string; // 测试集id } -// 执行历史 TODO 联调 +// 执行历史 export interface PlanDetailExecuteHistoryItem { id: string; num: string; - name: string; + triggerMode: string; // 执行方式 + execStatus: string; // 执行结果 operationUser: string; - createUser: string; startTime: number; endTime: number; - lastExecResult: LastExecuteResults; - triggerMode: string; + deleted: boolean; } export interface CreateTask { diff --git a/frontend/src/views/setting/organization/project/orgProject.vue b/frontend/src/views/setting/organization/project/orgProject.vue index 7369b4726d..346fb145cc 100644 --- a/frontend/src/views/setting/organization/project/orgProject.vue +++ b/frontend/src/views/setting/organization/project/orgProject.vue @@ -19,7 +19,7 @@