element-ui获取table行数据

https://blog.csdn.net/weixin_38684316/article/details/85910190

在el-table中添加@row-click="getDetails"

methods:{ getDetails(row){ console.log(row) //此时就能拿到整行的信息

    } }

 

posted @ 2019-05-21 15:34  往后余生是你  阅读(14921)  评论(0编辑  收藏  举报