Commit 03278645 by xing_wang

案件类别、刑事主案类别只能选择子节点

parent 685e9ef2
......@@ -1619,6 +1619,11 @@ function openCombotree(ID) {
checkbox: true,
lines: true,
onBeforeCheck: function (node, checked) {
if(ID == "ajlbdm" ||ID == "ajzlb"){
if(!$('#' + dictTreeID).tree('isLeaf',node.target)){
return false;
}
}
if (checked && !dictMultiple) {
var roots = $(this).tree('getRoots');
$('#' + dictTreeID).tree('uncheck', roots[0].target);
......@@ -1650,6 +1655,11 @@ function openCombotree(ID) {
checkbox: true,
lines: true,
onBeforeCheck: function (node, checked) {
if(ID == "ajlbdm" ||ID == "ajzlb"){
if(!$('#' + dictTreeID).tree('isLeaf',node.target)){
return false;
}
}
if (checked && !dictMultiple) {
var roots = $(this).tree('getRoots');
$('#' + dictTreeID).tree('uncheck', roots[0].target);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment