element-ui获取table行数据

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

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

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

    } }

 

猜你喜欢

转载自www.cnblogs.com/xiongshuangping/p/10900124.html