<el-table-column type="selection" width="40" :selectable="checkSelectable" />
<el-table-column fixed="left" align="center" label="序号" width="60">
<template slot-scope="scope">
<span v-text="getIndex(scope.$index)" />
</template>
</el-table-column>
设置属性:selectable
checkSelectable(row) {
if (row.id === 102289 || row.id === 102284) {
return false
} else {
return true
}
},
但是如果表格设置了点击行选中的话,这个还是不生效的