@@ -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()
+ },
+ },
}