|
@@ -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];
|