浏览代码

计算程序窗口刷新

MaiXinRong 7 年之前
父节点
当前提交
9f30dfcb95

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

@@ -3615,6 +3615,6 @@ class CalcProgram {
     calculate(treeNode){
         treeNode.data.gljList = this.project.ration_glj.getGljArrByRation(treeNode.data.ID);
         this.calc.calculate(treeNode);
-        projectObj.mainController.showTreeData();
+        projectObj.mainController.refreshTreeNode([treeNode]);
     };
 }

+ 1 - 11
web/building_saas/main/js/views/calc_program_view.js

@@ -171,17 +171,7 @@ let calcProgramSetting ={
                 "field":"type",
                 "vAlign":1,
                 "hAlign":0,
-                "font":"Arial",
-                "getText": function (record) {
-                    if (record.type) {
-                        for (let ft of feeType) {
-                            if (ft.type === record.type) {
-                                return ft.name;
-                            }
-                        }
-                    }
-                    return '';
-                }
+                "font":"Arial"
             }
         },
         {