zhangweicheng 7 éve
szülő
commit
345851c9d9
1 módosított fájl, 2 hozzáadás és 2 törlés
  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];