MaiXinRong 1 年間 前
コミット
f640ac5555
1 ファイル変更4 行追加4 行削除
  1. 4 4
      app/public/js/revise.js

+ 4 - 4
app/public/js/revise.js

@@ -423,10 +423,10 @@ $(document).ready(() => {
                 const parent = tree.getParent(node);
                 const children = parent ? parent.children : tree.children;
                 const index = children.indexOf(node);
-                // if (index > 0 && children[index-1].used) {
-                //     toastr.warning('其前节点已计量,选中的节点不可降级');
-                //     return;
-                // }
+                if (index > 0 && children[index-1].used) {
+                    toastr.warning('其前节点已计量,选中的节点不可降级');
+                    return;
+                }
                 for (let i = index; i < count; i++) {
                     const child = children[i+index];
                     if (tree.checkNodeUsed(child, pos)) {