From f95fddc2ffd264084f7a2f4ec7b3b271190617ad Mon Sep 17 00:00:00 2001 From: pengda <1111@qq.com> Date: Thu, 25 Sep 2025 11:12:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=99=E9=A2=9D=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/agent/recharge.vue | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/views/agent/recharge.vue b/src/views/agent/recharge.vue index dfd0ab6..8b58ac3 100644 --- a/src/views/agent/recharge.vue +++ b/src/views/agent/recharge.vue @@ -275,7 +275,10 @@ export default { }, handleClick(){ this.tableList = [] + this.total = 0 this.total_money = 0 + this.currentPage = 1 + this.pageSize = 20 if(this.totalType == 1) this.getRechargeData() if(this.totalType == 2) this.getRechargeList() if(this.totalType == 3) this.getRefundList() @@ -321,10 +324,15 @@ export default { getRefundList() { this.tableLoading = true try { - this.$http('POST', '/agentnew/ajax_get_cancel_check_list', {date: this.date}).then(response => { + this.$http('POST', '/agentnew/ajax_get_cancel_check_list', { + date: this.date, + cur_page: this.currentPage, + page_size: this.pageSize + }).then(response => { this.tableLoading = false this.$nextTick(() => { this.tableList = response.data.list + this.total = response.data.total this.tid2refunds = response.data.tid2refunds }) }).catch(error => { @@ -368,11 +376,13 @@ export default { }, handleSizeChange(val) { this.pageSize = val - this.getRechargeList() + if(this.totalType == 2) this.getRechargeList() + if(this.totalType == 3) this.getRefundList() }, handleCurrentChange(val) { this.currentPage = val - this.getRechargeList() + if(this.totalType == 2) this.getRechargeList() + if(this.totalType == 3) this.getRefundList() }, handleShowInfo(id, tid){ this.dialogVisible = true