html:
<el-table-column align="center" width="55" label="" >
<template slot-scope="scope">
<el-radio :label="scope.row.flagIndex" v-model="scope.row.flagValue" @change.native="getTemplateRow(scope.$index,scope.row)"> </el-radio>
</template>
</el-table-column>
js:
getTemplateRow(index,row){ //获取选中数据
this.templateSelection = row;
this.list.forEach((row, index) => {
row.enableFlag = this.templateSelection.flagIndex
})
row.enableFlag = 1
this.$HttpAddObj(row, ``).then(res => {})
},
原文:https://blog.csdn.net/sou_vyp/article/details/82589030