瀏覽代碼

Merge branch 'master' of http://smartcost.f3322.net:3000/SmartCost/ConstructionCost

zhangweicheng 7 年之前
父節點
當前提交
3874cffc6d
共有 1 個文件被更改,包括 1 次插入13 次删除
  1. 1 13
      web/building_saas/main/js/views/project_view.js

+ 1 - 13
web/building_saas/main/js/views/project_view.js

@@ -214,22 +214,10 @@ var projectObj = {
         }
         return rst;
     },
-    //获取更改的单元格(复制粘贴时,跳过隐藏行)
+    //获取粘贴更改的单元格(粘贴时,跳过隐藏行)
     checkSpreadChangedCells: function (info) {
         let rst = {refreshRows: [], changedCells: []};
         //获取显示行号
-        let nodes = projectObj.project.mainTree.items;
-        /*let rCount = info.rowCount;
-        let vRows = [];
-        for(let i = info.row, len = nodes.length; i < len; i++){
-            if(rCount <= 0){
-                break;
-            }
-            if(nodes[i].visible){
-                vRows.push(i);
-                rCount--;
-            }
-        }*/
         let vRows = projectObj.getVisibleRows(info.row, info.rowCount);
         let vCount = vRows.length;
         let lastRow = null, count = 0;