網(wǎng)站首頁 編程語言 正文
//tree點擊方法
const HandleTreeListAble = (list, orgParent, isChecked) => {
for (let item of list) {
if (item.orgParent !== orgParent) item.disabled = isChecked
if (item.children)
HandleTreeListAble(item.children, orgParent, isChecked)
}
return list
}
//遞歸選中的方法
const handleNodeChect = (node, isChecked) => {
if (
isChecked === false &&
elOrgTreeList.value.getCheckedKeys().length !== 0
)
return
let { orgParent } = node
state.orgList = HandleTreeListAble(state.orgList, orgParent, isChecked)
}
原文鏈接:https://blog.csdn.net/WWW_wwwww/article/details/115538230
相關(guān)推薦
- 2022-11-13 Python?fileinput模塊應(yīng)用詳解_python
- 2022-10-29 C#?CLR?中學(xué)習(xí)?C++關(guān)鍵詞extern使用詳解_C 語言
- 2022-06-17 Go語言學(xué)習(xí)之函數(shù)的定義與使用詳解_Golang
- 2022-02-09 Qt5連接并操作PostgreSQL數(shù)據(jù)庫的實現(xiàn)示例_C 語言
- 2022-03-26 Linux快速部署Redis_Redis
- 2022-11-17 詳解C/C++實現(xiàn)各種字符轉(zhuǎn)換方法合集_C 語言
- 2022-05-26 .Net解決引用程序集沒有強名稱報錯_實用技巧
- 2022-07-29 Linux文件管理方法介紹_linux shell
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細win安裝深度學(xué)習(xí)環(huán)境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎(chǔ)操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區(qū)別,Jav
- spring @retryable不生效的一種
- Spring Security之認(rèn)證信息的處理
- Spring Security之認(rèn)證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權(quán)
- redisson分布式鎖中waittime的設(shè)
- maven:解決release錯誤:Artif
- restTemplate使用總結(jié)
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務(wù)發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結(jié)構(gòu)-簡單動態(tài)字符串(SD
- arthas操作spring被代理目標(biāo)對象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支