mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
fix pagination & adjust to new searchUser query
This commit is contained in:
parent
59a16a8c46
commit
2ffaaa8bd4
@ -1,12 +1,19 @@
|
|||||||
import gql from 'graphql-tag'
|
import gql from 'graphql-tag'
|
||||||
|
|
||||||
export const searchUsers = gql`
|
export const searchUsers = gql`
|
||||||
query ($searchText: String!, $currentPage: Int, $pageSize: Int, $filters: SearchUsersFilters) {
|
query (
|
||||||
|
$query: String!
|
||||||
|
$filters: SearchUsersFilters
|
||||||
|
$currentPage: Int = 0
|
||||||
|
$pageSize: Int = 25
|
||||||
|
$order: Order = ASC
|
||||||
|
) {
|
||||||
searchUsers(
|
searchUsers(
|
||||||
searchText: $searchText
|
query: $query
|
||||||
|
filters: $filters
|
||||||
currentPage: $currentPage
|
currentPage: $currentPage
|
||||||
pageSize: $pageSize
|
pageSize: $pageSize
|
||||||
filters: $filters
|
order: $order
|
||||||
) {
|
) {
|
||||||
userCount
|
userCount
|
||||||
userList {
|
userList {
|
||||||
|
|||||||
@ -49,7 +49,7 @@
|
|||||||
pills
|
pills
|
||||||
size="lg"
|
size="lg"
|
||||||
v-model="currentPage"
|
v-model="currentPage"
|
||||||
per-page="perPage"
|
:per-page="perPage"
|
||||||
:total-rows="rows"
|
:total-rows="rows"
|
||||||
align="center"
|
align="center"
|
||||||
:hide-ellipsis="true"
|
:hide-ellipsis="true"
|
||||||
@ -97,10 +97,11 @@ export default {
|
|||||||
.query({
|
.query({
|
||||||
query: searchUsers,
|
query: searchUsers,
|
||||||
variables: {
|
variables: {
|
||||||
searchText: this.criteria,
|
query: this.criteria,
|
||||||
|
filters: this.filters,
|
||||||
currentPage: this.currentPage,
|
currentPage: this.currentPage,
|
||||||
pageSize: this.perPage,
|
pageSize: this.perPage,
|
||||||
filters: this.filters,
|
order: 'DESC',
|
||||||
},
|
},
|
||||||
fetchPolicy: 'no-cache',
|
fetchPolicy: 'no-cache',
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user