Update BaseTable.vue

fix:分页问题,:data数据要进行处理分页
pull/260/head
feiyuggg 2020-10-16 15:22:58 +08:00 committed by GitHub
parent 0f641c0f08
commit 1691238c75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@
<el-button type="primary" icon="el-icon-search" @click="handleSearch"></el-button>
</div>
<el-table
:data="tableData"
:data="tableData.slice((query.pageIndex-1)*query.pageSize,query.pageIndex*query.pageSize)"
border
class="table"
ref="multipleTable"