|
@@ -128,6 +128,7 @@ export default {
|
|
next(vm => {
|
|
next(vm => {
|
|
//const pm = to.param;
|
|
//const pm = to.param;
|
|
Object.assign(vm, to.params);
|
|
Object.assign(vm, to.params);
|
|
|
|
+ vm.inCurrentPage=to.params.currentPage;
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -137,7 +138,7 @@ export default {
|
|
this.getDataList();
|
|
this.getDataList();
|
|
},
|
|
},
|
|
getDataList(isTurnPage) {
|
|
getDataList(isTurnPage) {
|
|
- const param = this.getFilterItems(isTurnPage);
|
|
|
|
|
|
+ const param = this.getFilterItems(isTurnPage);
|
|
this.searched = true;
|
|
this.searched = true;
|
|
const loading = this.$loading({
|
|
const loading = this.$loading({
|
|
lock: true,
|
|
lock: true,
|
|
@@ -151,6 +152,10 @@ export default {
|
|
this.list = res.data.data.records
|
|
this.list = res.data.data.records
|
|
}
|
|
}
|
|
this.total = res.data.data.total;
|
|
this.total = res.data.data.total;
|
|
|
|
+ if(this.inCurrentPage!==undefined){
|
|
|
|
+ this.currentPage=this.inCurrentPage;
|
|
|
|
+ this.inCurrentPage = undefined;
|
|
|
|
+ }
|
|
})
|
|
})
|
|
},
|
|
},
|
|
filterDatas() {
|
|
filterDatas() {
|
|
@@ -201,7 +206,7 @@ export default {
|
|
this.clearFilter();
|
|
this.clearFilter();
|
|
};
|
|
};
|
|
const param = {
|
|
const param = {
|
|
- current: this.currentPage,
|
|
|
|
|
|
+ current: this.inCurrentPage||this.currentPage,
|
|
size: this.pageSize,
|
|
size: this.pageSize,
|
|
mealName:this.filter.mealName.trim(),
|
|
mealName:this.filter.mealName.trim(),
|
|
itemName:this.filter.itemName.trim(),
|
|
itemName:this.filter.itemName.trim(),
|