|
@@ -60,7 +60,7 @@
|
|
|
<span class="total">共{{ total }}条</span>
|
|
|
<el-pagination background layout="total, sizes, prev, pager, next, jumper"
|
|
|
:current-page.sync="queryParams.current" :page-size.sync="queryParams.size" :page-sizes="pageSizes"
|
|
|
- :page-count="getPageCount()" @current-change="handleCurrentChange" @size-change="getList">
|
|
|
+ :page-count="getPageCount()" @current-change="handleCurrentChange" @size-change="changeSize">
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
</el-footer>
|
|
@@ -271,6 +271,22 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ //切换页大小
|
|
|
+ async changeSize(val){
|
|
|
+ this.queryParams.size = val
|
|
|
+ this.queryParams.current = 1
|
|
|
+ this.patentNoList = []
|
|
|
+ await this.getList();
|
|
|
+ this.$nextTick(() => {
|
|
|
+ if (this.quickSelect) {
|
|
|
+ this.commonSwitch()
|
|
|
+ } else {
|
|
|
+ if (this.queryParams.isAdd.length > 0) {
|
|
|
+ this.getHaveChoose([])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
//获取最大页数
|
|
|
getPageCount() {
|
|
|
var a = Math.ceil(Number(this.total) / Number(this.queryParams.size))
|