admin/src/views/business/admissionStatistics.vue
@@ -167,14 +167,12 @@ getReportLists() { getReportList({ dateStr: this.date1, isGroupBy: this.isGroupBy, type: 1 }) .then(res => { if (res.length === 0) { 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) => { @@ -182,7 +180,6 @@ }); return obj; }); // if (res.length === 0) { // this.column = [] // this.list = []