zhangweicheng 5 سال پیش
والد
کامیت
6a90995073
2فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 0 1
      public/web/gljUtil.js
  2. 1 1
      web/building_saas/pm/js/pm_tree.js

+ 0 - 1
public/web/gljUtil.js

@@ -656,7 +656,6 @@ let gljUtil = {
     CONSTRUCTION_TECH: 3
   },
 
-
   gljType: {
     LABOUR: 1, // 人工
     // ==============材料类型 ↓=================

+ 1 - 1
web/building_saas/pm/js/pm_tree.js

@@ -333,7 +333,7 @@ const pmTree = {
           node.children = parentMap[node.data.ID] || [];
           node.parent = IDMap[node.data.ParentID] || this._root;
         });
-        const roots = parentMap['-1'];
+        const roots = parentMap['-1'] || [];
         // 将各节点的children进行排序,并设置nextSibling
         this._root.children = sortChildren(roots);
         // 生成tree.items