方法1.
<i-table :header="tableHeader" v-if="pageshow" />
pageshow:true,
clickQuery(value) { //查询
this.pageshow = false
this.$nextTick(() => {
this.pageshow = true
})
},
方法2.
<el-pagination
v-if="option.hidePagibation"
class="pageination"
background
layout="total, sizes, prev, pager, next, jumper"
:page-sizes="
option.sizes && option.sizes.length > 0 ? option.sizes : [10,20,40,60]
"
:page-size="option.size"
:total="option.total"
:current-page.sync="currentPage"
@size-change="handlePageSize"
@current-change="handlePageCurrent"
>
</el-pagination>
currentPage:1,
父组件调用这个方法
updateCurPage(){
this.currentPage = 1;
},