mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 13:41:23 +00:00
Public Invoice View fix
This commit is contained in:
@@ -174,6 +174,7 @@
|
||||
:data="fetchData"
|
||||
:columns="estimateColumns"
|
||||
:placeholder-count="estimateStore.totalEstimateCount >= 20 ? 10 : 5"
|
||||
:key="tableKey"
|
||||
class="mt-10"
|
||||
>
|
||||
<template #header>
|
||||
@@ -256,6 +257,7 @@ const dialogStore = useDialogStore()
|
||||
const userStore = useUserStore()
|
||||
|
||||
const tableComponent = ref(null)
|
||||
const tableKey = ref(0)
|
||||
const { t } = useI18n()
|
||||
const showFilters = ref(false)
|
||||
const status = ref([
|
||||
@@ -408,6 +410,8 @@ function setFilters() {
|
||||
state.selectAllField = false
|
||||
})
|
||||
|
||||
tableKey.value += 1
|
||||
|
||||
refreshTable()
|
||||
}
|
||||
|
||||
|
||||
@@ -172,6 +172,7 @@
|
||||
:data="fetchData"
|
||||
:columns="invoiceColumns"
|
||||
:placeholder-count="invoiceStore.invoiceTotalCount >= 20 ? 10 : 5"
|
||||
:key="tableKey"
|
||||
class="mt-10"
|
||||
>
|
||||
<!-- Select All Checkbox -->
|
||||
@@ -288,6 +289,7 @@ const { t } = useI18n()
|
||||
// Local State
|
||||
const utils = inject('$utils')
|
||||
const table = ref(null)
|
||||
const tableKey = ref(0)
|
||||
const showFilters = ref(false)
|
||||
|
||||
const status = ref([
|
||||
@@ -416,9 +418,12 @@ async function fetchData({ page, filter, sort }) {
|
||||
page,
|
||||
}
|
||||
|
||||
console.log(data)
|
||||
|
||||
isRequestOngoing.value = true
|
||||
|
||||
let response = await invoiceStore.fetchInvoices(data)
|
||||
console.log('API response:', response.data.data)
|
||||
|
||||
isRequestOngoing.value = false
|
||||
|
||||
@@ -464,6 +469,8 @@ function setFilters() {
|
||||
state.selectAllField = false
|
||||
})
|
||||
|
||||
tableKey.value += 1
|
||||
|
||||
refreshTable()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user