select and query send

This commit is contained in:
Julian Krauser 2024-12-16 13:56:06 +01:00
parent b611f689b9
commit 03c0ee58f2
7 changed files with 644 additions and 553 deletions

View file

@ -34,17 +34,21 @@ export const useQueryBuilderStore = defineStore("queryBuilder", {
if (this.query == undefined) return;
this.loadingData = "loading";
http
.post(`/admin/querybuilder/query$offset=${offset}&count=${count}`, {
.post(`/admin/querybuilder/query?offset=${offset}&count=${count}`, {
query: this.query,
})
.then((result) => {
this.data = result.data.rows;
this.totalLength = result.data.count;
this.totalLength = result.data.total;
this.loadingData = "fetched";
})
.catch((err) => {
this.loadingData = "failed";
});
},
clearResults() {
this.data = [];
this.totalLength = 0;
},
},
});