feat:table height auto

3.x
smallwei 3 years ago
parent f446988204
commit d0f062e783
  1. 29
      src/views/system/param.vue

@ -50,6 +50,7 @@
v-loading="loading" v-loading="loading"
@selection-change="selectionChange" @selection-change="selectionChange"
:data="data" :data="data"
:height="height"
style="width: 100%" style="width: 100%"
:border="option.border"> :border="option.border">
<el-table-column type="selection" <el-table-column type="selection"
@ -94,17 +95,21 @@
</el-table> </el-table>
</el-row> </el-row>
<el-row> <el-row>
<!-- 分页模块 --> <div class="avue-crud__pagination"
<el-pagination align="right" style="width:100%">
background <!-- 分页模块 -->
@size-change="sizeChange" <el-pagination class="avue-crud__pagination"
@current-change="currentChange" align="right"
:current-page="page.currentPage" background
:page-sizes="[10, 20, 30, 40, 50, 100]" @size-change="sizeChange"
:page-size="page.pageSize" @current-change="currentChange"
layout="total, sizes, prev, pager, next, jumper" :current-page="page.currentPage"
:total="page.total"> :page-sizes="[10, 20, 30, 40, 50, 100]"
</el-pagination> :page-size="page.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="page.total">
</el-pagination>
</div>
</el-row> </el-row>
<!-- 表单模块 --> <!-- 表单模块 -->
<el-dialog :title="title" <el-dialog :title="title"
@ -165,6 +170,7 @@ import { mapGetters } from "vuex";
export default { export default {
data () { data () {
return { return {
height: 0,
// //
title: '', title: '',
// //
@ -265,6 +271,7 @@ export default {
} }
}, },
mounted () { mounted () {
this.height = this.setPx(document.body.clientHeight - 400)
this.init(); this.init();
this.onLoad(this.page); this.onLoad(this.page);
}, },

Loading…
Cancel
Save