From 69f61ec4da2a936a9ca5cbd1217bba1a12ad8ddd Mon Sep 17 00:00:00 2001 From: baiqi Date: Wed, 27 Nov 2024 14:22:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E6=89=B9=E9=87=8F=E7=BC=96=E8=BE=91=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E4=BB=BB=E5=8A=A1=E6=8E=A5=E5=8F=A3=E9=AB=98=E7=BA=A7?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E5=8F=82=E6=95=B0=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api-test/scenario/components/scenarioTable.vue | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/frontend/src/views/api-test/scenario/components/scenarioTable.vue b/frontend/src/views/api-test/scenario/components/scenarioTable.vue index 307bf22e73..6db2805797 100644 --- a/frontend/src/views/api-test/scenario/components/scenarioTable.vue +++ b/frontend/src/views/api-test/scenario/components/scenarioTable.vue @@ -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