網站首頁 編程語言 正文
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
相關推薦
- 2022-04-01 K8s產生ERROR的解決方法
- 2022-06-13 詳解Python如何利用Pandas與NumPy進行數據清洗_python
- 2022-09-30 Spi機制在Android開發的應用示例詳解_Android
- 2021-12-15 幾個小技巧幫你實現Golang永久阻塞_Golang
- 2022-03-20 C++字符串和數字的去重操作和鞍點的尋找_C 語言
- 2024-04-03 Validator工具驗證類,區分添加,刪除,修改
- 2023-03-15 React.memo?React.useMemo對項目性能優化使用詳解_React
- 2022-10-30 Python對象循環引用垃圾回收算法詳情_python
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支