From 8965678a2ce96eaa75958b8a12c8883f0e4fdd02 Mon Sep 17 00:00:00 2001 From: teukkk Date: Fri, 14 Jun 2024 17:36:19 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E8=AF=A6=E6=83=85-?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E5=8E=86=E5=8F=B2=E8=81=94=E8=B0=83&?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=96=B0=E5=BB=BA=E6=B5=8B=E8=AF=95=E8=AE=A1?= =?UTF-8?q?=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/modules/test-plan/testPlan.ts | 2 +- .../src/api/requrls/test-plan/testPlan.ts | 4 +-- frontend/src/assets/style/global.less | 15 ++++++++++- frontend/src/models/testPlan/testPlan.ts | 12 ++++----- .../organization/project/orgProject.vue | 2 +- .../components/systemOrganization.vue | 2 +- .../components/systemProject.vue | 2 +- .../testPlan/createAndEditPlanDrawer.vue | 20 +++++++-------- .../testPlan/detail/executeHistory/index.vue | 25 +++++++++++-------- .../views/test-plan/testPlan/locale/en-US.ts | 2 ++ .../views/test-plan/testPlan/locale/zh-CN.ts | 2 ++ 11 files changed, 53 insertions(+), 35 deletions(-) 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 @@