|
@@ -14,8 +14,9 @@
|
|
|
<template>
|
|
<template>
|
|
|
<el-pagination
|
|
<el-pagination
|
|
|
@current-change="getData"
|
|
@current-change="getData"
|
|
|
- background :page-size='20'
|
|
|
|
|
|
|
+ background :page-size='page_size?page_size:20'
|
|
|
@size-change="handleSizeChange"
|
|
@size-change="handleSizeChange"
|
|
|
|
|
+ :current-page="current"
|
|
|
:page-sizes="[1,20, 30, 40, 50,60,70,80,90,100]"
|
|
:page-sizes="[1,20, 30, 40, 50,60,70,80,90,100]"
|
|
|
layout="sizes,total,prev, pager, next"
|
|
layout="sizes,total,prev, pager, next"
|
|
|
:total="total">
|
|
:total="total">
|
|
@@ -30,6 +31,8 @@ export default {
|
|
|
},
|
|
},
|
|
|
props: {
|
|
props: {
|
|
|
total:'',
|
|
total:'',
|
|
|
|
|
+ page_size:'',
|
|
|
|
|
+ current:''
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
|
getData(type){
|
|
getData(type){
|
|
@@ -44,6 +47,9 @@ export default {
|
|
|
handleSizeChange(val){
|
|
handleSizeChange(val){
|
|
|
this.$emit('pageChange',val)
|
|
this.$emit('pageChange',val)
|
|
|
}
|
|
}
|
|
|
|
|
+ },
|
|
|
|
|
+ created(){
|
|
|
|
|
+ console.log(this.page_size)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|