fix(测试计划): 批量开启关闭定时任务接口调整

This commit is contained in:
baiqi 2024-11-18 16:06:22 +08:00 committed by 刘瑞斌
parent b7824dab34
commit 696bd0d88a
1 changed files with 6 additions and 6 deletions

View File

@ -355,9 +355,9 @@
// addTestPlan, // addTestPlan,
archivedPlan, archivedPlan,
batchArchivedPlan, batchArchivedPlan,
batchConfigSchedule,
batchCopyPlan, batchCopyPlan,
batchDeletePlan, batchDeletePlan,
batchEditTestPlan,
batchMovePlan, batchMovePlan,
deletePlan, deletePlan,
deleteScheduleTask, deleteScheduleTask,
@ -379,8 +379,9 @@
import { characterLimit, getGenerateId } from '@/utils'; import { characterLimit, getGenerateId } from '@/utils';
import { hasAnyPermission } from '@/utils/permission'; import { hasAnyPermission } from '@/utils/permission';
import { DragSortParams, ModuleTreeNode, TableQueryParams } from '@/models/common'; import { DragSortParams, ModuleTreeNode } from '@/models/common';
import type { import type {
BatchConfigSchedule,
// AddTestPlanParams, // AddTestPlanParams,
BatchExecutePlan, BatchExecutePlan,
BatchMoveParams, BatchMoveParams,
@ -1210,7 +1211,7 @@
async function handleStatusTimingTask(enable: boolean) { async function handleStatusTimingTask(enable: boolean) {
try { try {
const { selectedIds, selectAll, excludeIds } = batchParams.value; const { selectedIds, selectAll, excludeIds } = batchParams.value;
const params: TableQueryParams = { const params: BatchConfigSchedule = {
selectIds: selectedIds || [], selectIds: selectedIds || [],
selectAll: !!selectAll, selectAll: !!selectAll,
excludeIds: excludeIds || [], excludeIds: excludeIds || [],
@ -1218,10 +1219,9 @@
moduleIds: props.activeFolder === 'all' ? [] : [props.activeFolder, ...props.offspringIds], moduleIds: props.activeFolder === 'all' ? [] : [props.activeFolder, ...props.offspringIds],
condition: conditionParams.value, condition: conditionParams.value,
type: showType.value, type: showType.value,
scheduleOpen: enable, enable,
editColumn: 'SCHEDULE',
}; };
await batchEditTestPlan(params); await batchConfigSchedule(params);
Message.success( Message.success(
enable enable
? t('testPlan.testPlanGroup.enableScheduleTaskSuccess') ? t('testPlan.testPlanGroup.enableScheduleTaskSuccess')