diff --git a/src/views/oa/crm/businessTripApply/index.vue b/src/views/oa/crm/businessTripApply/index.vue index 6162c2e..04931cb 100644 --- a/src/views/oa/crm/businessTripApply/index.vue +++ b/src/views/oa/crm/businessTripApply/index.vue @@ -331,7 +331,9 @@ const handleExport = () => { proxy?.download( 'oa/crm/businessTripApply/export', { - ...queryParams.value + ...queryParams.value, + // 如果选中了数据,则只导出选中的数据 + tripIds: ids.value.length > 0 ? ids.value.join(',') : undefined }, `businessTripApply_${new Date().getTime()}.xlsx` ); diff --git a/src/views/oa/erp/afterSales/index.vue b/src/views/oa/erp/afterSales/index.vue index 48dd193..ee8e67a 100644 --- a/src/views/oa/erp/afterSales/index.vue +++ b/src/views/oa/erp/afterSales/index.vue @@ -382,7 +382,9 @@ const handleExport = () => { proxy?.download( 'oa/erp/afterSales/export', { - ...queryParams.value + ...queryParams.value, + // 如果选中了数据,则只导出选中的数据 + afterSalesIds: ids.value.length > 0 ? ids.value.join(',') : undefined }, `afterSales_${new Date().getTime()}.xlsx` );