Browse Source

获取公式项。

chenshilong 7 năm trước cách đây
mục cha
commit
650bcff8a3
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      web/building_saas/main/js/models/calc_program.js

+ 5 - 1
web/building_saas/main/js/models/calc_program.js

@@ -401,7 +401,11 @@ let executeObj = {
 
 let treeNodeTools = {
     getFormulaNodes: function () {
-        return [];
+        let nodes = [];
+        for (let item of projectObj.project.mainTree.items){
+              if (item.data.calcBase && item.data.calcBase != '') nodes.push(item);
+        };
+        return nodes;
     },
 
     isRation: function(treeNode){