From 7af3c2759e846bb15c5df70f5a6a81cee3b71d4c Mon Sep 17 00:00:00 2001 From: danial Date: Sat, 6 Dec 2025 15:10:05 +0800 Subject: [PATCH] =?UTF-8?q?refactor(recharge-history):=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E8=8B=B9=E6=9E=9C=E5=8D=A1=E5=85=85=E5=80=BC=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E9=A1=B5=E9=9D=A2=E4=BB=A3=E7=A0=81=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E5=92=8C=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 统一icon模板写法,提升代码简洁性 - 表格分页配置改为计算属性,改善代码组织 - 显示状态标签新增文字长度判断和悬浮提示优化 - 增加类型兼容适配函数,支持新旧数据结构转换 - 重构fetchData函数,调用新版API并简化参数处理 - 优化分页、查询、重置相关函数逻辑,避免重复传参 - 使用常量对象维护状态映射,减少冗余代码 - 异步调用改用apiClient封装,提升接口调用一致性 - 优化文件下载逻辑,支持xlsx格式并自动触发保存 - 删除已注释和废弃代码,提升代码可维护性 --- .../recharge-history/index.vue | 355 +++++++++--------- 1 file changed, 169 insertions(+), 186 deletions(-) diff --git a/src/views/apple-card-info/recharge-history/index.vue b/src/views/apple-card-info/recharge-history/index.vue index 75ade59..837b34b 100644 --- a/src/views/apple-card-info/recharge-history/index.vue +++ b/src/views/apple-card-info/recharge-history/index.vue @@ -56,44 +56,29 @@ - + 搜索 - + 重置 - - - - 下载 - - + + + 下载 + {{ getStatusColorMap(record.status).text }} - - {{ record.remark }} - + - + - + @@ -170,19 +158,9 @@ status="warning" @click="callBackOrderManual(record.orderNo)" > - + - @@ -193,7 +171,7 @@ /> @@ -202,18 +180,12 @@