vue ele table 列表禁选

 
table 表格加 selecttable 方法
<el-table-column type="selection" width="55"  :selectable="selectable"> </el-table-column>

 

判断 返回id 是否包含 列表id //PS: 返回 id 得用 数组 = 
this.zhihuiId 是一个数组
row.basicId 是单个id
selectable(row,index) {
            return !(this.zhihuiId.indexOf( row.basicId ) >= 0 )
      },

 

posted @ 2021-11-15 11:02  薛定谔_猫  阅读(160)  评论(0)    收藏  举报