|
|
@ -89,15 +89,15 @@ export function useSharedView() { |
|
|
|
offset: number, |
|
|
|
offset: number, |
|
|
|
type: ExportTypes.EXCEL | ExportTypes.CSV, |
|
|
|
type: ExportTypes.EXCEL | ExportTypes.CSV, |
|
|
|
responseType: 'base64' | 'blob', |
|
|
|
responseType: 'base64' | 'blob', |
|
|
|
|
|
|
|
{ sortsArr, filtersArr }: { sortsArr: SortType[]; filtersArr: FilterType[] }, |
|
|
|
) => { |
|
|
|
) => { |
|
|
|
return await $api.public.csvExport(sharedView.value!.uuid!, type, { |
|
|
|
return await $api.public.csvExport(sharedView.value!.uuid!, type, { |
|
|
|
format: responseType, |
|
|
|
format: responseType, |
|
|
|
query: { |
|
|
|
query: { |
|
|
|
fields: fields.map((field) => field.title), |
|
|
|
fields: fields.map((field) => field.title), |
|
|
|
offset, |
|
|
|
offset, |
|
|
|
sortArrJson: JSON.stringify(sorts.value), |
|
|
|
filterArrJson: JSON.stringify(filtersArr ?? nestedFilters.value), |
|
|
|
|
|
|
|
sortArrJson: JSON.stringify(sortsArr ?? sorts.value), |
|
|
|
filterArrJson: JSON.stringify(nestedFilters.value), |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
headers: { |
|
|
|
headers: { |
|
|
|
'xc-password': password.value, |
|
|
|
'xc-password': password.value, |
|
|
|