Sfoglia il codice sorgente

Merge branch '1.0.0_online' of http://smartcost.f3322.net:3000/SmartCost/ConstructionCost into 1.0.0_online

zhongzewei 7 anni fa
parent
commit
fc14b6e1bd
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      web/building_saas/main/js/views/glj_view.js

+ 2 - 2
web/building_saas/main/js/views/glj_view.js

@@ -1221,7 +1221,7 @@ var gljOprObj = {
             return offset;
         }
 
-        if(index && data[index] && data[index].isMixRatio !==true){
+        if(isDef(index) && data[index] && data[index].isMixRatio !==true){
             TreeNodeCellType.prototype =  sheetCommonObj.getDynamicCombo();
         }else {
             TreeNodeCellType.prototype =  new ns.CellTypes.Text();
@@ -1281,7 +1281,7 @@ var gljOprObj = {
         };
         let cellType = new TreeNodeCellType();
         let options = [];
-        if(index && data[index] && data[index].isMixRatio !==true){
+        if(isDef(index) && data[index] && data[index].isMixRatio !==true){
             let code = data[index].code;
             if(code) {
                 let preCode = code.split("-")[0];