mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 05:29:26 +08:00
fix: missing filter params when exporting data after changing pagination (#6633)
This commit is contained in:
parent
3c5ff51472
commit
773ee94db4
@ -37,7 +37,7 @@ export const useExportAction = () => {
|
|||||||
const { name, title } = useCollection_deprecated();
|
const { name, title } = useCollection_deprecated();
|
||||||
const { t } = useExportTranslation();
|
const { t } = useExportTranslation();
|
||||||
const { modal } = App.useApp();
|
const { modal } = App.useApp();
|
||||||
const filters = service.params?.[1]?.filters || {};
|
const filters = service.params[0]?.filter || {};
|
||||||
const field = useField();
|
const field = useField();
|
||||||
const exportLimit = useMemo(() => {
|
const exportLimit = useMemo(() => {
|
||||||
if (appInfo?.data?.exportLimit) {
|
if (appInfo?.data?.exportLimit) {
|
||||||
@ -81,7 +81,7 @@ export const useExportAction = () => {
|
|||||||
{
|
{
|
||||||
title: compile(title),
|
title: compile(title),
|
||||||
appends: service.params[0]?.appends?.join(),
|
appends: service.params[0]?.appends?.join(),
|
||||||
filter: mergeFilter([...Object.values(filters), defaultFilter]),
|
filter: mergeFilter([filters, defaultFilter]),
|
||||||
sort: params?.sort,
|
sort: params?.sort,
|
||||||
values: {
|
values: {
|
||||||
columns: compile(exportSettings),
|
columns: compile(exportSettings),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user