实现思路:
elemnet-ui,自带的一个事件,
在table里面添加方法handleSelectionChange
handleSelectionChange (
selection,
row) {
this.
selectData[
this.
currentPage] = []
selection.
forEach((
item,
index)
=> {
this.
selectData[
this.
currentPage].
push(
item.
INDEX)
})
},
把当页选中的选项的index,放进二位数组
在请求翻页重新取得数据时再次勾选上记忆中的选项