MrShi
3 天以前 b314e0bd5dbeef190404c71c045f9c1a2f1295b3
admin/src/views/business/admissionStatistics.vue
@@ -167,17 +167,20 @@
      getReportLists() {
        getReportList({ dateStr: this.date1, isGroupBy: this.isGroupBy, type: 1 })
          .then(res => {
            if (!res || res.length === 0) {
              this.column = []
              this.list = []
              return
            }
              this.column = res[0]
            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 = []