ElementUI表格外获取表格选中id

//设置表格绑定ref
 <el-table ref="filterTable">
//表格列设置复选框
 <el-table-column type="selection" width="65"> </el-table-column>
//item为表格选中的行数据,进行操作就可以了
setDelBtn() {
      this.$refs.filterTable.selection.forEach((item) => {
        this.delIds.push(item.id)
      })
},

版权声明:本文为CongJiYong原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。