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