Pārlūkot izejas kodu

锁定节点相关

MaiXinRong 8 mēneši atpakaļ
vecāks
revīzija
62dd36b5ca
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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) {