diff --git a/src/views/super/Ranking/Purchase.vue b/src/views/super/Ranking/Purchase.vue index 6d6c6ca..38e5687 100644 --- a/src/views/super/Ranking/Purchase.vue +++ b/src/views/super/Ranking/Purchase.vue @@ -170,7 +170,8 @@ export default { } }, mounted() { - this.init() + this.currentPage = 1 + this.getData() }, computed: { type2nameOptions() { @@ -194,7 +195,9 @@ export default { }, watch: { '$route'() { - this.init() + document.title = this.pageTitle + this.currentPage = 1 + this.getData() }, 'form.date'(newVal) { if (Array.isArray(newVal) && newVal.length === 2) { @@ -207,9 +210,7 @@ export default { } }, methods: { - init() { - document.title = this.pageTitle; - + getData(){ if (this.type == 'purchase') { this.getPurchase() } else { @@ -217,7 +218,8 @@ export default { } }, changeSelectType() { - this.init() + this.currentPage = 1 + this.getData() }, getPurchase() { const that = this @@ -255,11 +257,11 @@ export default { }, handleSizeChange(val) { this.pageSize = val - this.init() + this.getData() }, handleCurrentChange(val) { this.currentPage = val - this.init() + this.getData() }, openDialog() { this.dialogVisible = true;