:fix: pagination not fonud

This commit is contained in:
Zeeland 2022-11-01 02:07:58 +08:00
parent 5f536250ea
commit 4d87aff1d0

View File

@ -5,7 +5,7 @@
</el-col>
<el-col>
<el-table
:data="records.records"
:data="records.list"
style="width: 100%">
<el-table-column
label="登录 IP"
@ -29,11 +29,11 @@
:hide-on-single-page="true"
@current-change="currentChange"
@size-change="sizeChange"
:current-page="records.pagination.currentPage"
:current-page="records.pageNum"
:page-sizes="[10, 20, 50, 100]"
:page-size="records.pagination.pageSize"
:page-size="records.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="records.pagination.total">
:total="records.total">
</el-pagination>
</el-col>
</el-row>
@ -61,7 +61,7 @@ export default {
let _ts = this;
let search = {
size: size,
page: _ts.records.pagination.currentPage
page: _ts.records.pageNum
}
_ts.$emit('currentChange', search);
},
@ -69,7 +69,7 @@ export default {
let _ts = this;
let search = {
page: page,
size: _ts.records.pagination.pageSize
size: _ts.records.pageSize
}
_ts.$emit('currentChange', search);
}