From 696bd0d88a6bcb9eae8c25865b8eb2f8869bfe01 Mon Sep 17 00:00:00 2001 From: baiqi Date: Mon, 18 Nov 2024 16:06:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=BC=80=E5=90=AF=E5=85=B3=E9=97=AD=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E4=BB=BB=E5=8A=A1=E6=8E=A5=E5=8F=A3=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test-plan/testPlan/components/planTable.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/views/test-plan/testPlan/components/planTable.vue b/frontend/src/views/test-plan/testPlan/components/planTable.vue index d591922d71..59b3f45a15 100644 --- a/frontend/src/views/test-plan/testPlan/components/planTable.vue +++ b/frontend/src/views/test-plan/testPlan/components/planTable.vue @@ -355,9 +355,9 @@ // addTestPlan, archivedPlan, batchArchivedPlan, + batchConfigSchedule, batchCopyPlan, batchDeletePlan, - batchEditTestPlan, batchMovePlan, deletePlan, deleteScheduleTask, @@ -379,8 +379,9 @@ import { characterLimit, getGenerateId } from '@/utils'; import { hasAnyPermission } from '@/utils/permission'; - import { DragSortParams, ModuleTreeNode, TableQueryParams } from '@/models/common'; + import { DragSortParams, ModuleTreeNode } from '@/models/common'; import type { + BatchConfigSchedule, // AddTestPlanParams, BatchExecutePlan, BatchMoveParams, @@ -1210,7 +1211,7 @@ async function handleStatusTimingTask(enable: boolean) { try { const { selectedIds, selectAll, excludeIds } = batchParams.value; - const params: TableQueryParams = { + const params: BatchConfigSchedule = { selectIds: selectedIds || [], selectAll: !!selectAll, excludeIds: excludeIds || [], @@ -1218,10 +1219,9 @@ moduleIds: props.activeFolder === 'all' ? [] : [props.activeFolder, ...props.offspringIds], condition: conditionParams.value, type: showType.value, - scheduleOpen: enable, - editColumn: 'SCHEDULE', + enable, }; - await batchEditTestPlan(params); + await batchConfigSchedule(params); Message.success( enable ? t('testPlan.testPlanGroup.enableScheduleTaskSuccess')