<el-table :data="tableData" v-loading="loading" ref="multipleTable" border stripe > <el-table-column type="selection" :selectable='selectableFun' width="55"></el-table-column>
@TOC
selectableFun(row,index){
if (row.id==0) {//你需要判断的条件
return 0;//不可勾选
}else{
return 1;//可勾选
}
},
// 回显
this.$nextTick(() => {
res.data.forEach((d, index) => {
if (d.id== 1) {
//回显条件
this.$refs.multipleTable.toggleRowSelection(d, true);
}
});
});