el-table表格内的checkbox复选框selection 设置禁用
<!-- selected false禁用 true可选 -->
<el-table-column
type="selection"
:selectable="selected"
width="55"
fixed
/>
/**
* 表格多选状态如何禁选(识别出已经选则的值,无法再次选择)
* 也可以根据row 返回的某些限制字段来控制是否禁用
*/
selected(row, index) {
// console.log(row, index);
return !this.dataList.some(item => item.id == row.id );
}