日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網站首頁 編程語言 正文

element table表格里的多選按鈕,根據條件判斷是否可以被選中

作者:沉、睡 更新時間: 2022-01-30 編程語言

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>

原文鏈接:https://blog.csdn.net/zz975896590/article/details/119991185

欄目分類
最近更新