<div class="history-table">
<el-table
:data="tableData_history"
highlight-current-row
:cell-style="tableCellStyle"
height="60vh"
max-height="480"
border
@row-click="clickChange_history"
>
<el-table-column class-name="allow" label="选择" width="50" align="center"><template slot-scope="scope"><el-radio v-model="tableRadio_history" :label="scope.row" @click.native="clickChange_history"><i /></el-radio></template></el-table-column>
data(){
return{
tableRadio_history: [],
}
}
clickChange_history(row) {
if (this.tableRadio_history === row) {
this.tableRadio_history = []
} else {
this.tableRadio_history = row
}
this.single_history = this.tableRadio_history?.id?.length ? false : true
},
<style lang="scss" scoped>
.history-table{
::v-deep .el-table__body-wrapper{
.el-radio__label {
padding-left:0;
}
}
}
</style>