From 73641efa5f1c304d0c9803730b79770bc4f65d37 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 19 十二月 2025 09:34:00 +0800
Subject: [PATCH] 优化
---
admin/src/views/business/admissionStatistics.vue | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/admin/src/views/business/admissionStatistics.vue b/admin/src/views/business/admissionStatistics.vue
index afcddff..06da26a 100644
--- a/admin/src/views/business/admissionStatistics.vue
+++ b/admin/src/views/business/admissionStatistics.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>
@@ -167,6 +167,11 @@
getReportLists() {
getReportList({ dateStr: this.date1, isGroupBy: this.isGroupBy, type: 1 })
.then(res => {
+ if (res.length === 0) {
+ this.column = []
+ this.list = []
+ return
+ }
this.column = res[0]
--
Gitblit v1.9.3