doum
16 小时以前 54e81529b5644b10ebe9aa56c811c27e27bba59e
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,11 @@
      getReportLists() {
        getReportList({ dateStr: this.date1, isGroupBy: this.isGroupBy, type: 0 })
            .then(res => {
              if (res.length === 0) {
                this.column = []
                this.list = []
                return
              }
              this.column = res[0]
@@ -188,8 +193,8 @@
              //   }, {});
              // });
              console.log(this.column)
              console.log(this.list)
              // console.log(this.column)
              // console.log(this.list)
              // if (res.length === 0) {
              //   this.column = []