批量选择table 的行数
图片:table.jpg 代码实现: 在<el-table >添加属性 ref = "multipleTable " , 在<el-table-colum> 添加type属性 type=" selection " 再通过一下代码就能获取已选择的行的数据; this.$refs.multipleTable.selection这里的 multipleTable 是上面ref 的值; saveButton(){ console.log(this.$ref.multipleTable.selection); } 参考 :https://blog.csdn.net/weixin_42517975/article/details/89631128 |
|
|