Browse Source

refactor: shared grid view api corrections

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/1668/head
Pranav C 3 years ago
parent
commit
2bf954c2d4
  1. 28
      packages/nc-gui/components/project/spreadsheet/public/xcTable.vue

28
packages/nc-gui/components/project/spreadsheet/public/xcTable.vue

@ -419,19 +419,21 @@ export default {
list,
pageInfo: { totalRows: count }
}
} = (await this.$api.public.dataList(this.$route.params.id, {}, {
sortArrJson: JSON.stringify(this.sorts && this.sorts.map(({
fk_column_id,
direction
}) => ({
direction,
fk_column_id
}))),
filterArrJson: JSON.stringify(this.filters),
...this.queryParams
}, {
headers: { 'xc-password': this.password }
}
} = (await this.$api.public.dataList(
this.$route.params.id,
{
sortArrJson: JSON.stringify(this.sorts && this.sorts.map(({
fk_column_id,
direction
}) => ({
direction,
fk_column_id
}))),
filterArrJson: JSON.stringify(this.filters),
...this.queryParams
}, {
headers: { 'xc-password': this.password }
}
))
this.count = count

Loading…
Cancel
Save