首页 > 其他 > 详细

element 多选 selection 根据条件禁止选择

时间:2019-06-03 15:35:23      阅读:1649      评论:0      收藏:0      [点我收藏+]
<el-table class="lin_height" :data="tableData" @selection-change="handleSelectionChange"  @sort-change=‘sortChange‘ :default-sort="{prop: ‘applyDate‘, order: ‘asc‘}" >
<template v-for="(item,index) in ip_list">
<el-table-column :show-overflow-tooltip="true" :min-width="item.minWidth" align="center"
:type="item.selection" :prop="item.prop" :label="item.label" :sortable="item.sortable"
:selectable="item.selectInit"
>
</el-table-column>

</template>


</el-table>

<script>
methods: {
//已提交验证
selectInit(row,index){
console.log(row)
if(row.flowStatus=="已提交"){
return false  //不可勾选
}else{
return true  //可勾选
}
},

}

</script>

element 多选 selection 根据条件禁止选择

原文:https://www.cnblogs.com/wplcc/p/10967672.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!