|
@@ -293,11 +293,11 @@ var rationGLJOprObj = {
|
|
|
x = e.pageX - offset.left,
|
|
|
y = e.pageY - offset.top;
|
|
|
let target = sheet.hitTest(x, y);
|
|
|
- if(sheet.parent.getActiveSheetIndex() === 0){
|
|
|
- let delDis = true;
|
|
|
- let cacheSection = me.cache["_GLJ_" + me.currentRationItem.ID];
|
|
|
- if(target.hitTestType === 3 && typeof target.row !== 'undefined' && typeof target.col !== 'undefined'){//在表格内
|
|
|
- sheet.setActiveCell(target.row, target.col);
|
|
|
+ if(sheet.parent.getActiveSheetIndex() === 0 && target.hitTestType === 3 && typeof target.row !== 'undefined' && typeof target.col !== 'undefined'){
|
|
|
+ let delDis = true, cacheSection;
|
|
|
+ sheet.setActiveCell(target.row, target.col);
|
|
|
+ if(me.currentRationItem){
|
|
|
+ let cacheSection = me.cache["_GLJ_" + me.currentRationItem.ID];
|
|
|
if(target.row < cacheSection.length){
|
|
|
delDis = false;
|
|
|
}
|