|
|
@ -5,6 +5,7 @@ import * as XLSX from 'xlsx' |
|
|
|
import { message } from 'ant-design-vue' |
|
|
|
import { message } from 'ant-design-vue' |
|
|
|
|
|
|
|
|
|
|
|
const isPublicView = inject(IsPublicInj, ref(false)) |
|
|
|
const isPublicView = inject(IsPublicInj, ref(false)) |
|
|
|
|
|
|
|
|
|
|
|
const fields = inject(FieldsInj, ref([])) |
|
|
|
const fields = inject(FieldsInj, ref([])) |
|
|
|
|
|
|
|
|
|
|
|
const { project } = useProject() |
|
|
|
const { project } = useProject() |
|
|
@ -15,6 +16,8 @@ const meta = inject(MetaInj) |
|
|
|
|
|
|
|
|
|
|
|
const selectedView = inject(ActiveViewInj) |
|
|
|
const selectedView = inject(ActiveViewInj) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { sorts, nestedFilters } = useSmartsheetStoreOrThrow() |
|
|
|
|
|
|
|
|
|
|
|
const exportFile = async (exportType: ExportTypes) => { |
|
|
|
const exportFile = async (exportType: ExportTypes) => { |
|
|
|
let offset = 0 |
|
|
|
let offset = 0 |
|
|
|
let c = 1 |
|
|
|
let c = 1 |
|
|
@ -36,7 +39,10 @@ const exportFile = async (exportType: ExportTypes) => { |
|
|
|
{ |
|
|
|
{ |
|
|
|
responseType, |
|
|
|
responseType, |
|
|
|
query: { |
|
|
|
query: { |
|
|
|
|
|
|
|
fields: fields.value.map((field) => field.title), |
|
|
|
offset, |
|
|
|
offset, |
|
|
|
|
|
|
|
sortArrJson: JSON.stringify(sorts.value), |
|
|
|
|
|
|
|
filterArrJson: JSON.stringify(nestedFilters.value), |
|
|
|
}, |
|
|
|
}, |
|
|
|
} as any, |
|
|
|
} as any, |
|
|
|
) |
|
|
|
) |
|
|
|