The el-table multi-selection checkbox can realize multiple pages and multiple selections, and the check status will not be cleared after turning the page

Requirement: The table data is divided into multiple pages. When the multi-selection box inside is effective only on the current page, the user may need to select multiple pages of data. In this way, the selected data needs to be retained and displayed on a new page after the data page is turned. The selected ones should be added.
Realization:
The realization of multi-choice is ready-made in the element component, and this is realized on this basis. add
to the form<el-table>:row-key="(row)=>{ return row.id}"

<el-table
	:row-key="(row)=>{ return row.id}"
    ref="multipleTable"
    :data="tableData"   
    @selection-change="handleSelectionChange">

<el-table-column>join in:reserve-selection="true"

<el-table-column :reserve-selection="true" label="员工基本信息">

Complete Smecta~

Guess you like

Origin blog.csdn.net/m0_46538057/article/details/112552959
Recommended