select and query send
This commit is contained in:
parent
b611f689b9
commit
03c0ee58f2
7 changed files with 644 additions and 553 deletions
|
@ -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;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue