style:员工档案的size调整

This commit is contained in:
xiongchengqiang 2020-05-22 10:09:44 +08:00
parent 85fb4f3f9d
commit e3fc340d5b

View File

@ -95,6 +95,7 @@
@current-change="handleCurrentChange"
:current-page.sync="query.currentPage"
:page-sizes="[10, 20, 50]"
:page-size="query.limit"
layout="total, sizes, prev, pager, next"
:total="query.pageTotal"
></el-pagination>
@ -164,7 +165,7 @@ export default {
loading: false,
query: {
page: 1,
limit: 10,
limit: 20,
pageTotal: 0,
departmentId: null
}
@ -270,7 +271,7 @@ export default {
// { page: 0, limit: 5 }
async handleGetTableList (id) {
this.loading = true
let result = await apiEmployeesList(Object.assign({}, this.query, { limit: this.query.pageSize }))
let result = await apiEmployeesList(Object.assign({}, this.query, { limit: this.query.limit }))
console.log('result: ', result)
if (result.code === 0) {
this.tableData = result.page.list
@ -301,7 +302,7 @@ export default {
this.handleGetTableList()
},
handleSizeChange (val) {
this.query.pageSize = val
this.query.limit = val
this.handleGetTableList()
},
//