fix(接口测试): 场景批量编辑定时任务接口高级筛选参数修复

This commit is contained in:
baiqi 2024-11-27 14:22:12 +08:00 committed by 刘瑞斌
parent 18cdf76a95
commit 69f61ec4da
1 changed files with 3 additions and 11 deletions

View File

@ -1309,10 +1309,9 @@
const batchConditionParams = await getBatchConditionParams();
await scenarioBatchEditSchedule({
...batchParams.value,
projectId: appStore.currentProjectId,
selectIds: batchParams.value?.selectedIds || [],
...updateParam,
...batchConditionParams.moduleIds,
...batchConditionParams,
});
} else {
await scenarioScheduleConfig(updateParam);
@ -1528,22 +1527,15 @@
async function handleBatchToggleSchedule(enable: boolean) {
try {
appStore.showLoading();
const filterParams = {
...propsRes.value.filter,
};
const { selectedIds, selectAll, excludeIds } = batchParams.value;
const batchConditionParams = await getBatchConditionParams();
await scenarioBatchEditSchedule({
selectIds: selectedIds || [],
selectAll: !!selectAll,
excludeIds: excludeIds || [],
projectId: appStore.currentProjectId,
moduleIds: props.activeModule === 'all' ? [] : [props.activeModule, ...props.offspringIds],
condition: {
filter: filterParams,
keyword: keyword.value,
},
type: 'Schedule',
enable,
...batchConditionParams,
});
Message.success(
enable