Browse Source

改变页尺寸时

FoShanPG
刘云峰 4 months ago
parent
commit
9d19736c5f
  1. 26
      vue/src/views/pg-fis/basedate/m100Online/normalPritIndex.vue

26
vue/src/views/pg-fis/basedate/m100Online/normalPritIndex.vue

@ -187,7 +187,7 @@
<div class="table-footer"> <div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"--> <!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
<pagination v-show="totalCount > 0" :total="totalCount" style="float: right" :page.sync="page" :limit.sync="listQuery.MaxResultCount" <pagination v-show="totalCount > 0" :total="totalCount" style="float: right" :page.sync="page" :limit.sync="listQuery.MaxResultCount"
@pagination="getList" /> @pagination="pageSizeChanged" />
<!-- 抽屉控件 --> <!-- 抽屉控件 -->
<el-drawer title="信息详细页" size="75%" direction="rtl" :visible.sync="drawer" :before-close="handleDrawerClose"> <el-drawer title="信息详细页" size="75%" direction="rtl" :visible.sync="drawer" :before-close="handleDrawerClose">
<div> <div>
@ -1016,15 +1016,27 @@
return projectTypeKeyValue[type]; return projectTypeKeyValue[type];
}, },
//
pageSizeChanged(data) {
if (data != undefined) {
this.listQuery.MaxResultCount = data.limit;
this.page = data.page;
}
this.getList();
},
/*取M100列表*/ /*取M100列表*/
getList(data) { getList(data) {
debugger
this.listLoading = true; this.listLoading = true;
if (data != undefined) { // if (data != undefined) {
this.listQueryList.SkipCount = (this.page - 1) * data.limit; // this.listQueryList.SkipCount = (this.page - 1) * data.limit;
} else { // } else {
this.listQueryList.SkipCount = (this.page - 1) * 15; // this.listQueryList.SkipCount = (this.page - 1) * 15;
} // }
this.listQueryList.SkipCount = (this.page - 1) * this.listQuery.MaxResultCount;
this.listQueryList.MaxResultCount = this.listQuery.MaxResultCount;
if (this.listQuery.productType === 2) { if (this.listQuery.productType === 2) {
this.listQueryList.ZHBBillStatus = 2; this.listQueryList.ZHBBillStatus = 2;
} else { } else {

Loading…
Cancel
Save