fix(接口测试): 场景批量编辑定时任务接口高级筛选参数修复
This commit is contained in:
parent
18cdf76a95
commit
69f61ec4da
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue