当前位置 : 主页 > 网络编程 > 其它编程 >

eltree给已知的key值加disabled

来源:互联网 收集:自由互联 发布时间:2023-07-02
data(){return{treeBudgetSelect:[],budgetIds:[3,4]}}methods:{this.setDisabled(this.treeBudg data(){ return{ treeBudgetSelect:[], budgetIds:[3,4] } } methods:{this.setDisabled(this.treeBudgetSelect,this.budgetIds)//已经选择的不能编辑s
data(){return{treeBudgetSelect:[],budgetIds:[3,4]}}methods:{this.setDisabled(this.treeBudg 技术分享图片

data(){

return{

treeBudgetSelect:[],

budgetIds:[3,4]

}

}

methods:{this.setDisabled(this.treeBudgetSelect,this.budgetIds)//已经选择的不能编辑setDisabled(treeData,key){key.forEach(k=>{constloop=(data)=>{for(constitemofdata){if(item.treedataid===k){item.disabled=truebreak}if(item.childList&&item.childList.length){loop(item.childList)},}}loop(treeData)})},}

上一篇:Dockercompose安装Jenkins
下一篇:没有了
网友评论