fix(export): include all paginated query result rows
This commit is contained in:
1 parent
b75219ab40
commit
7f5de70687
5 files changed
+174
-15
No files matched your search
@@ -216,6 +216,7 @@ const props = defineProps<{
|
||||
loading?: boolean;
|
||||
cacheKey?: string;
|
||||
onExecuteSql?: (sql: string) => Promise<void>;
|
||||
fullExportResult?: () => Promise<QueryResult | undefined>;
|
||||
customSave?: (changes: {
|
||||
dirtyRows: Map<number, Map<number, string | number | boolean | null>>;
|
||||
newRows: (string | number | boolean | null)[][];
|
||||
@@ -2944,6 +2945,7 @@ const {
|
||||
getRowItem: (rowId: number) => visibleDisplayItems.value.find((item) => item.id === rowId),
|
||||
selectedRowIds,
|
||||
hasRowSelection,
|
||||
fullExportResult: props.fullExportResult,
|
||||
});
|
||||
|
||||
const pageSizeMenuItems = computed(() =>
|
||||
|
||||
@@ -465,6 +465,7 @@ defineExpose({ focusSearch, refreshData, handleModRTarget });
|
||||
:count-sql="activeTab.resultCountSql"
|
||||
:total-row-count="activeTab.resultTotalRowCount"
|
||||
:on-execute-sql="async (sql: string) => emit('executeSql', sql)"
|
||||
:full-export-result="() => queryStore.fetchTabResultForExport(activeTab.id)"
|
||||
@reload="
|
||||
(
|
||||
sql?: string,
|
||||
@@ -667,6 +668,7 @@ defineExpose({ focusSearch, refreshData, handleModRTarget });
|
||||
:page-offset="activeTab.resultPageOffset"
|
||||
:page-limit="activeTab.resultPageLimit"
|
||||
:on-execute-sql="async (sql: string) => emit('executeSql', sql)"
|
||||
:full-export-result="() => queryStore.fetchTabResultForExport(activeTab.id)"
|
||||
@update:where-input="(v: string) => (activeTab.whereInput = v)"
|
||||
@reload="
|
||||
(
|
||||
|
||||
Reference in new issue
Block a user