Warehouse/improve2
This commit is contained in:
@@ -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']],
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user