|
|
@ -44,10 +44,10 @@
|
|
|
|
<my-pagination
|
|
|
|
<my-pagination
|
|
|
|
id="L-pagination"
|
|
|
|
id="L-pagination"
|
|
|
|
:total="total"
|
|
|
|
:total="total"
|
|
|
|
:page="pagination.current"
|
|
|
|
:page="pagination.pageNum"
|
|
|
|
:limit="pagination.size"
|
|
|
|
:limit="pagination.pageSize"
|
|
|
|
@pagination="getPagination"
|
|
|
|
@pagination="getPagination"
|
|
|
|
:current-page.sync="pagination.current"
|
|
|
|
:current-page.sync="pagination.pageNum"
|
|
|
|
></my-pagination>
|
|
|
|
></my-pagination>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -64,8 +64,8 @@ export default {
|
|
|
|
deptId: this.$store.state.user.deptId,
|
|
|
|
deptId: this.$store.state.user.deptId,
|
|
|
|
total:0,
|
|
|
|
total:0,
|
|
|
|
pagination: {
|
|
|
|
pagination: {
|
|
|
|
current:1,
|
|
|
|
pageNum:1,
|
|
|
|
size:10,
|
|
|
|
pageSize:10,
|
|
|
|
orderChange:1,
|
|
|
|
orderChange:1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
loading:false,
|
|
|
|
loading:false,
|
|
|
@ -101,15 +101,15 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 获取页码
|
|
|
|
// 获取页码
|
|
|
|
getPagination(pages) {
|
|
|
|
getPagination(pages) {
|
|
|
|
this.pagination.current = pages.page;
|
|
|
|
this.pagination.pageNum = pages.page;
|
|
|
|
this.pagination.size = pages.limit;
|
|
|
|
this.pagination.pageSize = pages.limit;
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 查询
|
|
|
|
// 查询
|
|
|
|
handleQuery() {
|
|
|
|
handleQuery() {
|
|
|
|
this.pagination = {
|
|
|
|
this.pagination = {
|
|
|
|
current: 1,
|
|
|
|
pageNum: 1,
|
|
|
|
size: 10
|
|
|
|
pageSize: 10
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.pagination = { ...this.pagination,...this.formInline };
|
|
|
|
this.pagination = { ...this.pagination,...this.formInline };
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
@ -118,8 +118,8 @@ export default {
|
|
|
|
resetQuery(formName){
|
|
|
|
resetQuery(formName){
|
|
|
|
this.$refs[formName].resetFields();
|
|
|
|
this.$refs[formName].resetFields();
|
|
|
|
this.pagination = {
|
|
|
|
this.pagination = {
|
|
|
|
current: 1,
|
|
|
|
pageNum: 1,
|
|
|
|
size: 10
|
|
|
|
pageSize: 10
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|