From 7874262b15ca8d2495012ed5f934332dbeeadf29 Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期四, 28 九月 2023 09:42:57 +0800
Subject: [PATCH] feat: 客户管理页列表配置列显隐控制

---
 src/views/other/payment/receipt/index.vue |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/views/other/payment/receipt/index.vue b/src/views/other/payment/receipt/index.vue
index 2145240..c8fc457 100644
--- a/src/views/other/payment/receipt/index.vue
+++ b/src/views/other/payment/receipt/index.vue
@@ -154,17 +154,18 @@
       })
         .then((res) => {
           console.log(res)
-          if (res.code === 200) {
-            if (res.data.list && res.data.list.length > 0) {
-              const list = res.data.list.map((item) => {
+          if (res.data.code === 200) {
+            if (res.data.data.data && res.data.data.data.length > 0) {
+              const list = res.data.data.data.map((item) => {
                 return {
                   ...item,
-                  paymentType_name: item.PaymentType.name,
+                  client_name: item.client.name,
+                  paymentType_name: item.paymentType.name,
                   principal_name: item.principal.username
                 }
               })
               this.tableList.tableInfomation = list || []
-              this.pagerOptions.totalCount = res.data.count
+              this.pagerOptions.totalCount = res.data.data.count
             } else {
               this.tableList.tableInfomation = []
             }

--
Gitblit v1.8.0