From 4936ba718f4ec2d069a9c28d07215573ed8548aa Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期五, 30 一月 2026 10:12:10 +0800
Subject: [PATCH] 修改简道云人员推送删除功能bug
---
admin/src/views/business/admissionStatistics.vue | 26 ++++++++++++++------------
1 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/admin/src/views/business/admissionStatistics.vue b/admin/src/views/business/admissionStatistics.vue
index afcddff..28f5f38 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,17 +167,19 @@
getReportLists() {
getReportList({ dateStr: this.date1, isGroupBy: this.isGroupBy, type: 1 })
.then(res => {
-
- this.column = res[0]
-
- this.list = res.slice(1).map(row => {
- const obj = {};
- this.column.forEach((header, index) => {
- obj[header] = row[index];
+ if (!res || res.length === 0) {
+ this.column = []
+ this.list = []
+ return
+ }
+ this.column = res[0]
+ 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