fix(接口测试): 场景批量编辑定时任务接口高级筛选参数修复
This commit is contained in:
parent
18cdf76a95
commit
69f61ec4da
|
@ -1309,10 +1309,9 @@
|
||||||
const batchConditionParams = await getBatchConditionParams();
|
const batchConditionParams = await getBatchConditionParams();
|
||||||
await scenarioBatchEditSchedule({
|
await scenarioBatchEditSchedule({
|
||||||
...batchParams.value,
|
...batchParams.value,
|
||||||
projectId: appStore.currentProjectId,
|
|
||||||
selectIds: batchParams.value?.selectedIds || [],
|
selectIds: batchParams.value?.selectedIds || [],
|
||||||
...updateParam,
|
...updateParam,
|
||||||
...batchConditionParams.moduleIds,
|
...batchConditionParams,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
await scenarioScheduleConfig(updateParam);
|
await scenarioScheduleConfig(updateParam);
|
||||||
|
@ -1528,22 +1527,15 @@
|
||||||
async function handleBatchToggleSchedule(enable: boolean) {
|
async function handleBatchToggleSchedule(enable: boolean) {
|
||||||
try {
|
try {
|
||||||
appStore.showLoading();
|
appStore.showLoading();
|
||||||
const filterParams = {
|
|
||||||
...propsRes.value.filter,
|
|
||||||
};
|
|
||||||
const { selectedIds, selectAll, excludeIds } = batchParams.value;
|
const { selectedIds, selectAll, excludeIds } = batchParams.value;
|
||||||
|
const batchConditionParams = await getBatchConditionParams();
|
||||||
await scenarioBatchEditSchedule({
|
await scenarioBatchEditSchedule({
|
||||||
selectIds: selectedIds || [],
|
selectIds: selectedIds || [],
|
||||||
selectAll: !!selectAll,
|
selectAll: !!selectAll,
|
||||||
excludeIds: excludeIds || [],
|
excludeIds: excludeIds || [],
|
||||||
projectId: appStore.currentProjectId,
|
|
||||||
moduleIds: props.activeModule === 'all' ? [] : [props.activeModule, ...props.offspringIds],
|
|
||||||
condition: {
|
|
||||||
filter: filterParams,
|
|
||||||
keyword: keyword.value,
|
|
||||||
},
|
|
||||||
type: 'Schedule',
|
type: 'Schedule',
|
||||||
enable,
|
enable,
|
||||||
|
...batchConditionParams,
|
||||||
});
|
});
|
||||||
Message.success(
|
Message.success(
|
||||||
enable
|
enable
|
||||||
|
|
Loading…
Reference in New Issue