|
|
@@ -93,15 +93,6 @@ export default {
|
|
|
current_page: 1, // required
|
|
|
last_page: 10, // required
|
|
|
},
|
|
|
- pagination2: {
|
|
|
- total: 0,
|
|
|
- //per_page: Common.pageSize, // required
|
|
|
- per_page: 30, // required
|
|
|
- current_page: 1, // required
|
|
|
- last_page: 10, // required
|
|
|
- from: 1,
|
|
|
- to: 10, // required
|
|
|
- },
|
|
|
traceState: undefined,
|
|
|
traceStatus: undefined,
|
|
|
traceUserStatus: undefined,
|
|
|
@@ -112,7 +103,7 @@ export default {
|
|
|
// 监听路由是否变化
|
|
|
$route(to, from) {
|
|
|
if (to.query.currentPage != from.query.currentPage) {
|
|
|
- this.pagination.current_page = to.query.currentPage;
|
|
|
+ this.pagination.current_page = Number(to.query.currentPage);
|
|
|
this.getDatas();
|
|
|
}
|
|
|
},
|
|
|
@@ -121,8 +112,8 @@ export default {
|
|
|
mounted: function () {
|
|
|
const { currentPage, pageSize } = this.$route.query;
|
|
|
if (currentPage !== undefined && pageSize !== undefined) {
|
|
|
- this.pagination.current_page = this.$route.query.currentPage;
|
|
|
- this.pagination.per_page = this.$route.query.pageSize;
|
|
|
+ this.pagination.current_page = Number(this.$route.query.currentPage);
|
|
|
+ this.pagination.per_page = Number(this.$route.query.pageSize);
|
|
|
}
|
|
|
this.updateRouter();
|
|
|
|