element table表格里的多选按钮,根据条件判断是否可以被选中
<el-table v-loading="loading" :data="contentList" border style="width: 100%" @selection-change="handleSelectionChange" >
<template slot-scope="scope">
<el-table-column type="selection" width="55" style="" :selectable="selectInit(scope)"> </el-table-column>
</template>
</el-table>
<script>
methods: {
//已提交验证
selectInit(row,index){
console.log(row)
if(row.flowStatus=="已提交"){
return false //不可勾选
}else{
return true //可勾选
}
},
}
</script>