Commit cd152135 authored by youjie's avatar youjie

我的财务单据 每页条数更改

parent cb6c7665
......@@ -1219,8 +1219,13 @@
{{$t('system.content_noData')}}
</div>
<div v-if="!BOSSBtn && !BOSSBtn2">
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size='msg.pageSize' :total='total'>
<el-pagination background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page.sync="currentPage"
layout="total,sizes,prev, pager, next, jumper"
:page-size='msg.pageSize' :total='total'
:page-sizes="[6,15,20,30,50,100,200]">
</el-pagination>
</div>
<el-dialog custom-class='addCompany' :title="$t('fnc.xzzjiaoren')" width="400px" :visible.sync="zhuanBox" center
......@@ -2587,7 +2592,7 @@
this.msg.pageIndex == 1
this.getPageList(0, 1)
},
getPageList(t, active) {
getPageList(t, active,type) {
if (active) {
this.total = 0
this.DataList = [];
......@@ -2603,7 +2608,9 @@
} else if (this.hbState) {
this.msg.pageSize = 30;
} else {
this.msg.pageSize = 6;
if(!type){
this.msg.pageSize = 6;
}
}
if (this.msg.Status == 0) {
this.checkboxShow = true;
......@@ -3153,6 +3160,11 @@
this.msg.pageIndex = val;
this.getPageList();
},
// 更改每页条数
handleSizeChange(val) {
this.msg.pageSize = val
this.getPageList(null,null,1);
},
resetPageIndex() {
// 重置页码
this.msg.pageIndex = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment