<el-table :data="isMixed ? copyMixedDetailList:copyDetailList" ref="refTable"> <el-table-column type="selection" width="50" align="center" :reserve-selection="true"></el-table-column> <el-table-column type="index" :index="indexMethod" label="序号"></el-table-column> </el-table-column> </el-table>
let currentSelect = this.$refs.refTable.selection; let currentSelect = this.$refs.ref的值.selection;
这样就可以获取到当前选中的数据行了