<el-table ref="refTable" :data="list" v-loading="listLoading" element-loading-text="加载中" fit highlight-current-row style="width: 100%" :max-height="maxHeight">
<el-table-column :reserve-selection="true" :selectable="onVendorSelectable" type="selection" width="55"></el-table-column>
<el-table-column type="index" width="50"> </el-table-column> <el-table-column min-width="200" align="center" prop="content" label="排查内容"></el-table-column> <el-table-column min-width="150" align="center" prop="basis" label="排查依据"></el-table-column> </el-table>
//表单中调用方法,判断那个需要禁用
onVendorSelectable(row){
let isDisable = this.disabledData.some((item) => {
if (row.sensorCode === item.sensorCode) {
return true;
} else {
return false;
}
});
return !isDisable;
},
标签:return,isDisable,element,ui,table,复选框,row From: https://www.cnblogs.com/Jishuyang/p/16741910.html