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,
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')