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 @@