|
@@ -404,7 +404,7 @@ $(document).ready(() => {
|
|
|
const children = parent ? parent.children : tree.children;
|
|
|
const index = children.indexOf(node);
|
|
|
const lastSelect = children[index + count - 1];
|
|
|
- if (tree.checkNodeUsed(lastSelect, pos) && (!lastSelect.children || lastSelect.children.length === 0)) {
|
|
|
+ if (tree.checkNodeUsed(lastSelect, pos) && (!lastSelect.children || lastSelect.children.length === 0) && (children.length > index + count)) {
|
|
|
toastr.warning('选中的节点已计量,不可升级');
|
|
|
return;
|
|
|
}
|