소스 검색

锁定节点相关

MaiXinRong 8 달 전
부모
커밋
62dd36b5ca
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      app/public/js/path_tree.js

+ 2 - 1
app/public/js/path_tree.js

@@ -1400,8 +1400,9 @@ const createNewPathTree = function (type, setting) {
             this.Locked = ids || [];
             for (const f of this.Locked) {
                 f.locked_ledger_id = f.ass_ledger_id ? f.ass_ledger_id.split(',') : (f.audit_ledger_id ? f.audit_ledger_id.split(',') : []);
-                for (const id of f.ass_ledger_id) {
+                for (const id of f.locked_ledger_id) {
                     const node = this.getItems(id);
+                    if (!node) continue;
                     node.locked = true;
                     const posterity = this.getPosterity(node);
                     for (const pn of posterity) {