mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
pagination for user list on creation page
This commit is contained in:
parent
5d9cc6ae24
commit
d88c16a66c
@ -18,6 +18,13 @@
|
|||||||
:creation="creation"
|
:creation="creation"
|
||||||
@update-item="updateItem"
|
@update-item="updateItem"
|
||||||
/>
|
/>
|
||||||
|
<b-pagination
|
||||||
|
pills
|
||||||
|
v-model="currentPage"
|
||||||
|
per-page="25"
|
||||||
|
:total-rows="rows"
|
||||||
|
align="center"
|
||||||
|
></b-pagination>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col cols="12" lg="6" class="shadow p-3 mb-5 rounded bg-info">
|
<b-col cols="12" lg="6" class="shadow p-3 mb-5 rounded bg-info">
|
||||||
<user-table
|
<user-table
|
||||||
@ -101,6 +108,8 @@ export default {
|
|||||||
radioSelectedMass: '',
|
radioSelectedMass: '',
|
||||||
criteria: '',
|
criteria: '',
|
||||||
creation: [null, null, null],
|
creation: [null, null, null],
|
||||||
|
rows: 0,
|
||||||
|
currentPage: 1,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
@ -113,9 +122,11 @@ export default {
|
|||||||
query: searchUsers,
|
query: searchUsers,
|
||||||
variables: {
|
variables: {
|
||||||
searchText: this.criteria,
|
searchText: this.criteria,
|
||||||
|
currentPage: this.currentPage,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
|
this.rows = result.data.searchUsers.userCount
|
||||||
this.itemsList = result.data.searchUsers.userList.map((user) => {
|
this.itemsList = result.data.searchUsers.userList.map((user) => {
|
||||||
return {
|
return {
|
||||||
...user,
|
...user,
|
||||||
@ -153,5 +164,13 @@ export default {
|
|||||||
this.itemsMassCreation = []
|
this.itemsMassCreation = []
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
currentPage() {
|
||||||
|
this.getUsers()
|
||||||
|
},
|
||||||
|
criteria() {
|
||||||
|
this.getUsers()
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user