牛牛 hace 2 años
padre
commit
b33bb78704
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      RMS-FrontEnd/src/views/report/components/Tabel.vue

+ 2 - 2
RMS-FrontEnd/src/views/report/components/Tabel.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <el-table :data="data" border ref="table" :height="tableHeight - 25" header-row-class-name="custom-table-header" @sort-change="sortChange">
+    <el-table :data="data" border ref="table" :height="tableHeight" header-row-class-name="custom-table-header" @sort-change="sortChange">
       <el-table-column label="#" align="center" width="50px">
         <template slot-scope="scope">
           <span>{{ (scope.$index + 1) + ((params.current - 1) * params.size) }}</span>
@@ -86,7 +86,7 @@ export default {
         return false
       }
       const offsetBodyHeight = body.offsetHeight
-      // console.log(offsetTop,offsetBodyHeight)
+      console.log(offsetTop,offsetBodyHeight)
       if (this.data.length && offsetBodyHeight < offsetTop) {
         this.tableHeight = offsetBodyHeight + 75
       } else if (!this.data.length) {