Warehouse/improve2

This commit is contained in:
Luca Haid
2025-04-24 11:45:29 +00:00
parent acbe86f4a4
commit c42ecc7915
2 changed files with 11 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ class WarehouseCategoryController extends TTCrud {
// @formatter:off
protected array $columns = [
['key' => 'title', 'text' => 'Titel', 'required' => true,],
['key' => 'name', 'text' => 'Name', 'required' => true,],
['key' => 'description', 'text' => 'Beschreibung', 'required' => true],
['key' => 'create', 'text' => 'Erstellt am', 'required' => false, 'modal' => false, 'table' => ['filter' => false, 'sortable' => false, 'class' => 'text-center']],
['key' => 'create_by', 'text' => 'Erstellt von', 'required' => false, 'modal' => false, 'table' => ['filter' => false, 'sortable' => false, 'class' => 'text-center']],

View File

@@ -368,7 +368,16 @@ Vue.component('tt-table', {
pagination: {
page: Math.max(page, 1), per_page: this.pagination?.per_page ? this.pagination.per_page : 10,
}, filters: this.filters, order: this.order
});
}).catch(error => {
if (this.window.fetchErrorOccurred === undefined) {
this.filters = {};
this.order = {key: null, order: 'asc'};
this.expandedRows = {};
this.disableDebounce = true;
this.fetchData(page).then();
}
this.window.fetchErrorOccurred = true;
})
if (fetchTimestamp !== this.latestFetchTimestamp) return;