<el-table :data="gridData" border @row-click="showRow">
<el-table-column label="" width="50" align="center">
<template slot-scope="scope">
<el-radio v-model="radio" :label="scope.$index"> </el-radio>
</template>
</el-table-column>
<el-table-column property="name" label="客户姓名" width="150"></el-table-column>
</el-table>
data() {
return {
gridData: [],
radio: '',
selected:{},
}
}
showRow(row){
this.radio = this.gridData.list.indexOf(row);
this.selected=row;
},