From 2876f0684783d17733e1da87e0e44ff06bbcaad6 Mon Sep 17 00:00:00 2001 From: pengda <10266652509@qq.com> Date: Tue, 6 May 2025 17:21:39 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E4=BB=B7=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=B8=B2=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/super/Ranking/Purchase.vue | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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; -- 1.8.3.1