<el-table @row-click="openDetails"></el-table> //对应的 methods 中//点击行事件methods: { openDetails (row) { //具体操作 },}