提交人:weidu

提交描述:4级或者更多级组织结构,修改最小组织结构归属时,选择判定失效
提交时间:2019-04-12
dep_wangsr
RyzeBB 6 years ago committed by Limy
parent 61241d58be
commit 4c5d5c2dd4

@ -1085,7 +1085,8 @@
notAllowLastLevel: function(_tree) { notAllowLastLevel: function(_tree) {
var nodes = _tree.getSelectedNodes(); var nodes = _tree.getSelectedNodes();
for (var i = 0; i < nodes.length; i++) { for (var i = 0; i < nodes.length; i++) {
if (nodes[i].level == nodes.length + 1) { //if (nodes[i].level == nodes.length + 1)判断是否是最后层级节点该条件判定四级组织结构时失效如下只需判定选择的节点isParent == false即可 modify by weidu 2019-04-10
if (!nodes[i].isParent) {
$.modal.msgError("不能选择最后层级节点(" + nodes[i].name + ""); $.modal.msgError("不能选择最后层级节点(" + nodes[i].name + "");
return false; return false;
} }

Loading…
Cancel
Save