pull/122/head
RuoYi 2019-08-23 14:06:52 +08:00
commit 2a6761d47e
1 changed files with 4 additions and 0 deletions

View File

@ -1191,6 +1191,10 @@
// 不允许根父节点选择
notAllowParents: function(_tree) {
var nodes = _tree.getSelectedNodes();
if(nodes.length == 0){
$.modal.msgError("请选择节点后提交");
return false;
}
for (var i = 0; i < nodes.length; i++) {
if (nodes[i].level == 0) {
$.modal.msgError("不能选择根节点(" + nodes[i].name + "");