From 3a154bdb0a5aaa2c0ac3eac95a6ba747068bd454 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 13 一月 2026 10:00:37 +0800
Subject: [PATCH] 优化

---
 admin/src/views/business/admissionStatistics.vue |   23 ++++++++++++++---------
 1 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/admin/src/views/business/admissionStatistics.vue b/admin/src/views/business/admissionStatistics.vue
index 06da26a..3cc50cf 100644
--- a/admin/src/views/business/admissionStatistics.vue
+++ b/admin/src/views/business/admissionStatistics.vue
@@ -167,22 +167,27 @@
       getReportLists() {
         getReportList({ dateStr: this.date1, isGroupBy: this.isGroupBy, type: 1 })
           .then(res => {
+<<<<<<< HEAD
+            if (!res || res.length === 0) {
+=======
             if (res.length === 0) {
+>>>>>>> 5e91539195106afc3a03e7bd006786409ecd9b5d
               this.column = []
               this.list = []
               return
             }
+<<<<<<< HEAD
+              this.column = res[0]
+=======
+>>>>>>> 5e91539195106afc3a03e7bd006786409ecd9b5d
 
-            this.column = res[0]
-
-            this.list = res.slice(1).map(row => {
-              const obj = {};
-              this.column.forEach((header, index) => {
-                obj[header] = row[index];
+              this.list = res.slice(1).map(row => {
+                const obj = {};
+                this.column.forEach((header, index) => {
+                  obj[header] = row[index];
+                });
+                return obj;
               });
-              return obj;
-            });
-
             // if (res.length === 0) {
             //   this.column = []
             //   this.list = []

--
Gitblit v1.9.3