el-table根据条件部分复选框不能选中

2022-12-25  本文已影响0人  泪滴在琴上
<el-table :data="tableData" style="width: 100%"  @selection-change="handleSelectionChange">
            <el-table-column
              type="selection"
              width="55"
              :selectable="checkboxInit">
            </el-table-column>
            <template v-for="(item,index) in tableField">

js

checkboxInit(row,index){
        if(row['phase']!='wait_push'&&row['is_mql']=='N'){
          return 1
        }else{
          return 0
        }
      },
上一篇 下一篇

猜你喜欢

热点阅读