|
@@ -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) {
|