mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
fix: sort order of tables is lost switching pages
This commit is contained in:
@ -284,7 +284,7 @@ export default {
|
|||||||
addNotification: 'notifications/addNotification',
|
addNotification: 'notifications/addNotification',
|
||||||
changeBreadcrumbs: 'workspaces/changeBreadcrumbs'
|
changeBreadcrumbs: 'workspaces/changeBreadcrumbs'
|
||||||
}),
|
}),
|
||||||
async getTableData (sortParams) {
|
async getTableData () {
|
||||||
if (!this.table) return;
|
if (!this.table) return;
|
||||||
this.isQuering = true;
|
this.isQuering = true;
|
||||||
|
|
||||||
@ -300,7 +300,7 @@ export default {
|
|||||||
table: this.table,
|
table: this.table,
|
||||||
limit: this.limit,
|
limit: this.limit,
|
||||||
page: this.page,
|
page: this.page,
|
||||||
sortParams
|
sortParams: this.sortParams
|
||||||
};
|
};
|
||||||
|
|
||||||
try { // Table data
|
try { // Table data
|
||||||
@ -321,11 +321,11 @@ export default {
|
|||||||
return this.table;
|
return this.table;
|
||||||
},
|
},
|
||||||
reloadTable () {
|
reloadTable () {
|
||||||
this.getTableData(this.sortParams);
|
this.getTableData();
|
||||||
},
|
},
|
||||||
hardSort (sortParams) {
|
hardSort (sortParams) {
|
||||||
this.sortParams = sortParams;
|
this.sortParams = sortParams;
|
||||||
this.getTableData(sortParams);
|
this.getTableData();
|
||||||
},
|
},
|
||||||
openPageMenu () {
|
openPageMenu () {
|
||||||
if (this.isQuering) return;
|
if (this.isQuering) return;
|
||||||
|
Reference in New Issue
Block a user