|
@@ -283,15 +283,20 @@ export default {
|
|
|
},
|
|
|
|
|
|
resetPage() {
|
|
|
+ console.log('in 1')
|
|
|
this.currentPage = 1;
|
|
|
this.skip = 0;
|
|
|
},
|
|
|
getPageConfig() {
|
|
|
+ console.log('in 2')
|
|
|
return { skip: (this.currentPage - 1) * this.limit, limit: this.limit, currentPage: this.currentPage };
|
|
|
},
|
|
|
setPage({ skip, limit }) {
|
|
|
+ console.log('in 3')
|
|
|
let currentPage = skip / limit + 1;
|
|
|
- this.currentPage = currentPage;
|
|
|
+ // this.currentPage = currentPage;
|
|
|
+ this.$set(this,'currentPage',currentPage)
|
|
|
+ console.log(JSON.parse(JSON.stringify(this.currentPage)));
|
|
|
},
|
|
|
},
|
|
|
};
|