瀏覽代碼

项目管理数据调整

MaiXinRong 2 年之前
父節點
當前提交
b6702123db
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/service/report_memory.js

+ 2 - 2
app/service/report_memory.js

@@ -1511,9 +1511,9 @@ module.exports = app => {
             }
 
             for (const tc of this.pmDeal.tree_contracts) {
-                tc.children = this.pmDeal.tree_contracts.filter(x => { return x.ParentId === tc.TreeId})
+                tc.children = this.pmDeal.tree_contracts.filter(x => { return x.ParentId === tc.TreeId && x.TreeType === tc.TreeType});
             }
-            const root = this.pmDeal.tree_contracts.filter(x => { return x.Depth === 0});
+            const root = this.pmDeal.tree_contracts.filter(x => { return x.Depth === 0; });
             root.sort((x, y) => {
                 const type = x.TreeType - y.TreeType;
                 return type ? type : x.Serail - y.Serail;