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