From 705757d8be37ce348d78aba7a79048aab6e05ff1 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Thu, 6 Jun 2024 19:24:07 +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=E7=BB=84=E8=81=94=E8=B0=83?= =?UTF-8?q?=E6=8B=96=E6=8B=BD&=E6=89=A7=E8=A1=8C&=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1&=E4=BB=BB=E5=8A=A1=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/modules/test-plan/testPlan.ts | 17 ++ .../src/api/requrls/test-plan/testPlan.ts | 6 + frontend/src/assets/style/arco-reset.less | 6 + frontend/src/components/pure/ms-tab/index.vue | 6 - .../components/pure/ms-table/base-table.vue | 76 +++++-- frontend/src/config/testPlan.ts | 9 + frontend/src/models/testPlan/testPlan.ts | 23 +- .../views/api-test/scenario/create/index.vue | 6 - .../views/api-test/scenario/detail/index.vue | 6 - .../components/bug-detail-drawer.vue | 3 - .../components/caseDetailDrawer.vue | 3 - .../taskCenter/component/taskCom.vue | 89 +++++++- .../testPlan/components/actionModal.vue | 6 +- .../testPlan/components/planTable.vue | 215 ++++++++++++------ .../testPlan/components/scheduledModal.vue | 104 +++++---- .../views/test-plan/testPlan/locale/en-US.ts | 1 + .../views/test-plan/testPlan/locale/zh-CN.ts | 1 + 17 files changed, 414 insertions(+), 163 deletions(-) diff --git a/frontend/src/api/modules/test-plan/testPlan.ts b/frontend/src/api/modules/test-plan/testPlan.ts index be33bfbe3f..74f8aeb06b 100644 --- a/frontend/src/api/modules/test-plan/testPlan.ts +++ b/frontend/src/api/modules/test-plan/testPlan.ts @@ -12,12 +12,15 @@ import { batchMovePlanUrl, BatchRunCaseUrl, BatchUpdateCaseExecutorUrl, + ConfigScheduleUrl, copyTestPlanUrl, deletePlanUrl, + DeleteScheduleTaskUrl, DeleteTestPlanModuleUrl, DisassociateCaseUrl, dragPlanOnGroupUrl, ExecuteHistoryUrl, + ExecutePlanUrl, followPlanUrl, GenerateReportUrl, GetAssociatedBugUrl, @@ -59,9 +62,11 @@ import type { BatchExecuteFeatureCaseParams, BatchFeatureCaseParams, BatchUpdateCaseExecutorParams, + CreateTask, DisassociateCaseParams, ExecuteHistoryItem, ExecuteHistoryType, + ExecutePlan, FollowPlanParams, PassRateCountDetail, PlanDetailApiCaseItem, @@ -281,3 +286,15 @@ export function getPlanGroupOptions(projectId: string) { export function dragPlanOnGroup(data: DragSortParams) { return MSR.post({ url: dragPlanOnGroupUrl, data }); } +// 测试计划-配置定时任务 +export function configSchedule(data: CreateTask) { + return MSR.post({ url: ConfigScheduleUrl, data }); +} +// 测试计划-计划&计划组-执行&批量执行 +export function executePlanOrGroup(data: ExecutePlan) { + return MSR.post({ url: ExecutePlanUrl, data }); +} +// 测试计划-计划&计划组-执行&批量执行 +export function deleteScheduleTask(testPlanId: string) { + return MSR.get({ url: `${DeleteScheduleTaskUrl}/${testPlanId}` }); +} diff --git a/frontend/src/api/requrls/test-plan/testPlan.ts b/frontend/src/api/requrls/test-plan/testPlan.ts index 79ed9a774f..2cbf84266f 100644 --- a/frontend/src/api/requrls/test-plan/testPlan.ts +++ b/frontend/src/api/requrls/test-plan/testPlan.ts @@ -90,3 +90,9 @@ export const TestPlanAndGroupCopyUrl = '/test-plan/copy'; export const TestPlanGroupOptionsUrl = 'test-plan/group-list'; // 测试计划-拖拽测试计划 export const dragPlanOnGroupUrl = '/test-plan/sort'; +// 测试计划-创建定时任务 +export const ConfigScheduleUrl = '/test-plan/schedule-config'; +// 测试计划-计划&计划组-执行&批量执行 +export const ExecutePlanUrl = '/test-plan-execute/start'; +// 测试计划-删除定时任务 +export const DeleteScheduleTaskUrl = 'test-plan/schedule-config-delete'; diff --git a/frontend/src/assets/style/arco-reset.less b/frontend/src/assets/style/arco-reset.less index f6328dd453..c718106916 100644 --- a/frontend/src/assets/style/arco-reset.less +++ b/frontend/src/assets/style/arco-reset.less @@ -863,6 +863,12 @@ background: var(--color-text-brand); line-height: 16px; } +.active-badge { + .arco-badge-text, + .arco-badge-number { + background-color: rgb(var(--primary-5)); + } +} .filter-button { display: flex; justify-content: space-between; diff --git a/frontend/src/components/pure/ms-tab/index.vue b/frontend/src/components/pure/ms-tab/index.vue index b524a38102..b59f419702 100644 --- a/frontend/src/components/pure/ms-tab/index.vue +++ b/frontend/src/components/pure/ms-tab/index.vue @@ -69,12 +69,6 @@ @apply relative right-0 top-0 transform-none shadow-none; } } - :deep(.active-badge) { - .arco-badge-text, - .arco-badge-number { - background-color: rgb(var(--primary-5)); - } - } .no-content { :deep(.arco-tabs-content) { display: none; diff --git a/frontend/src/components/pure/ms-table/base-table.vue b/frontend/src/components/pure/ms-table/base-table.vue index fd42365a30..e4d693b2dd 100644 --- a/frontend/src/components/pure/ms-table/base-table.vue +++ b/frontend/src/components/pure/ms-table/base-table.vue @@ -157,11 +157,11 @@