diff --git a/admin/src/components/CreationTransactionList.vue b/admin/src/components/CreationTransactionList.vue index 8bf27c275..5f906f1bf 100644 --- a/admin/src/components/CreationTransactionList.vue +++ b/admin/src/components/CreationTransactionList.vue @@ -3,6 +3,15 @@
{{ $t('transactionlist.title') }}
+ {{ $t('help.help') }}
@@ -26,6 +35,10 @@ export default { }, data() { return { + items: [], + rows: 0, + currentPage: 1, + perPage: 25, fields: [ { key: 'createdAt', @@ -65,7 +78,6 @@ export default { }, { key: 'memo', label: this.$t('transactionlist.memo') }, ], - items: [], } }, methods: { @@ -74,13 +86,14 @@ export default { .query({ query: creationTransactionList, variables: { - currentPage: 1, - pageSize: 25, + currentPage: this.currentPage, + pageSize: this.perPage, order: 'DESC', userId: parseInt(this.userId), }, }) .then((result) => { + this.rows = result.data.creationTransactionList.contributionCount this.items = result.data.creationTransactionList.contributionList }) .catch((error) => { @@ -91,5 +104,10 @@ export default { created() { this.getTransactions() }, + watch: { + currentPage() { + this.getTransactions() + }, + }, }