Commit cd152135 authored by youjie's avatar youjie

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

parent cb6c7665
...@@ -1219,8 +1219,13 @@ ...@@ -1219,8 +1219,13 @@
{{$t('system.content_noData')}} {{$t('system.content_noData')}}
</div> </div>
<div v-if="!BOSSBtn && !BOSSBtn2"> <div v-if="!BOSSBtn && !BOSSBtn2">
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" <el-pagination background
layout="total,prev, pager, next, jumper" :page-size='msg.pageSize' :total='total'> @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> </el-pagination>
</div> </div>
<el-dialog custom-class='addCompany' :title="$t('fnc.xzzjiaoren')" width="400px" :visible.sync="zhuanBox" center <el-dialog custom-class='addCompany' :title="$t('fnc.xzzjiaoren')" width="400px" :visible.sync="zhuanBox" center
...@@ -2587,7 +2592,7 @@ ...@@ -2587,7 +2592,7 @@
this.msg.pageIndex == 1 this.msg.pageIndex == 1
this.getPageList(0, 1) this.getPageList(0, 1)
}, },
getPageList(t, active) { getPageList(t, active,type) {
if (active) { if (active) {
this.total = 0 this.total = 0
this.DataList = []; this.DataList = [];
...@@ -2603,7 +2608,9 @@ ...@@ -2603,7 +2608,9 @@
} else if (this.hbState) { } else if (this.hbState) {
this.msg.pageSize = 30; this.msg.pageSize = 30;
} else { } else {
this.msg.pageSize = 6; if(!type){
this.msg.pageSize = 6;
}
} }
if (this.msg.Status == 0) { if (this.msg.Status == 0) {
this.checkboxShow = true; this.checkboxShow = true;
...@@ -3153,6 +3160,11 @@ ...@@ -3153,6 +3160,11 @@
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getPageList(); this.getPageList();
}, },
// 更改每页条数
handleSizeChange(val) {
this.msg.pageSize = val
this.getPageList(null,null,1);
},
resetPageIndex() { resetPageIndex() {
// 重置页码 // 重置页码
this.msg.pageIndex = 1; 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