From 94de735233383fe644ec0401465e8e85c8999179 Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期五, 06 三月 2026 10:01:09 +0800
Subject: [PATCH] 钥匙柜开门添加 指纹方式

---
 admin/src/views/business/carStatistics.vue |   21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/admin/src/views/business/carStatistics.vue b/admin/src/views/business/carStatistics.vue
index 2f250fb..587a51f 100644
--- a/admin/src/views/business/carStatistics.vue
+++ b/admin/src/views/business/carStatistics.vue
@@ -87,7 +87,7 @@
                     <el-table
                         style="width: 100%; margin-top: 15px;"
                         :data="list"
-                        header-row-style="background-color: #F7F7F7;"
+                        :header-row-style="{ backgroundColor: '#F7F7F7' }"
                         border
                     >
                         <el-table-column :prop="item" :label="item" align="center" :fixed="index === 0 ? true : index === column.length - 1 ? 'right' : false" v-for="(item, index) in column" :key="index"></el-table-column>
@@ -102,7 +102,7 @@
                 <el-table
                     style="width: 100%; margin-top: 15px;"
                     :data="info.yearSortList"
-                    header-row-style="background-color: #F7F7F7;"
+                    :header-row-style="{ backgroundColor: '#F7F7F7' }"
                     border
                 >
                     <el-table-column prop="name" label="杞﹁締鍒嗙被" align="center"></el-table-column>
@@ -168,6 +168,17 @@
       getReportLists() {
         getReportList({ dateStr: this.date1, isGroupBy: this.isGroupBy, type: 0 })
             .then(res => {
+              if (res.length === 0) {
+                this.column = []
+                this.list = []
+                return
+              }
+
+              if (!res || res.length === 0) {
+                this.column = []
+                this.list = []
+                return
+              }
 
               this.column = res[0]
 
@@ -188,8 +199,8 @@
               //   }, {});
               // });
 
-              console.log(this.column)
-              console.log(this.list)
+              // console.log(this.column)
+              // console.log(this.list)
 
               // if (res.length === 0) {
               //   this.column = []
@@ -520,7 +531,7 @@
 
         .main_table {
             display: flex;
-            align-items: start;
+            align-items: flex-start;
             justify-content: space-between;
             margin-top: 10px;
             .main_table_list {

--
Gitblit v1.9.3