From fda1a6aacb327ec6956a0df614ee89a32aee4544 Mon Sep 17 00:00:00 2001 From: dragon <3013557874@qq.com> Date: Thu, 28 Nov 2024 17:57:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=80=80=E6=AC=BE=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E5=90=8E=E5=8F=B0=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/refund/UserRefundQuiry.vue | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/views/refund/UserRefundQuiry.vue b/src/views/refund/UserRefundQuiry.vue index d1e4ebb..375af34 100644 --- a/src/views/refund/UserRefundQuiry.vue +++ b/src/views/refund/UserRefundQuiry.vue @@ -57,7 +57,7 @@ @@ -235,7 +235,9 @@ export default { sortedMapObj() { const entries = Object.entries(this.mapObj); // 将 "总充值{USD}" 的键排到第一位 - entries.sort(([keyA], [keyB]) => (keyA === "总充值{USD}" ? -1 : keyB === "总充值{USD}" ? 1 : 0)); + entries.sort(([keyA], [keyB]) => + keyA === "总充值{USD}" ? -1 : keyB === "总充值{USD}" ? 1 : 0 + ); return Object.fromEntries(entries); }, }, @@ -320,9 +322,17 @@ export default { beginDate: startTime, endDate: endTime, }).then((res) => { - this.total = res.total; - this.tableData = res.rows; - this.mapObj = res.totalMap; + if (res.code == 200) { + this.total = res.data.total; + this.tableData = res.data.rows; + this.mapObj = res.data.totalMap; + } else { + ElMessage({ + showClose: true, + message: res.message, + type: "error", + }); + } this.loading = false; }); },