After element-ui paging and modifying current-page, the view remains unchanged.

paging current-page is set

    //  
    searTenantHouseList() {
      this.pagination.currentPage = 1
      this.GetTenantHouseList()
    }

but this.pagination.currentPage still hasn"t changed after clicking search
and clicking the page number to jump this.pagination.currentPage still hasn"t changed
ask for advice

Jun.13,2022

:current-page.sync="currentPage3"

this will take effect


I have a similar situation,

          <el-pagination
            class="pagination"
            @size-change="handleSizeChange"
            @current-change="handleCurrentChange"
            :current-page="query.page"
            :page-sizes="[10, 20, 50]"
            :page-size="query.per_page"
            layout="total, sizes, prev, pager, next, jumper"
            :total="query.totalCount">
          </el-pagination>

then add "tableData.length & & query.totalCount > query.per_page" to it


generally with total, you will have a paging effect when you click. Check out


clipboard.png
take a closer look at the document, all of which have specific usage

.
Menu