|
@@ -220,7 +220,7 @@ var rationGLJOprObj = {
|
|
|
bindRationGljDelOpr: function () {
|
|
|
let me = rationGLJOprObj, spreadBook = me.sheet.getParent();
|
|
|
spreadBook.commandManager().register('rationGljDelete', function () {
|
|
|
- if(!me.currentRationItem || me.currentRationItem.type === rationOprObj.type.std){
|
|
|
+ if(!me.currentRationItem){
|
|
|
return;
|
|
|
}
|
|
|
let sels = me.sheet.getSelections(), lockCols = me.setting.view.lockColumns;
|
|
@@ -271,7 +271,7 @@ var rationGLJOprObj = {
|
|
|
if(me.currentRationItem && typeof me.cache["_GLJ_" + me.currentRationItem.ID] === 'undefined'){
|
|
|
me.cache["_GLJ_" + me.currentRationItem.ID] = [];
|
|
|
}
|
|
|
- if (!(args.cellRange.col === 0 || args.cellRange.col === 5) || !(me.currentRationItem) || (me.currentRationItem && me.currentRationItem.type === rationOprObj.type.std)) {
|
|
|
+ if (!(args.cellRange.col === 0 || args.cellRange.col === 5) || !(me.currentRationItem)) {
|
|
|
args.cancel = true;
|
|
|
}
|
|
|
},
|
|
@@ -610,7 +610,7 @@ var rationGLJOprObj = {
|
|
|
let gljIds = [];
|
|
|
for (let i = 0; i < rationGljList.length; i++) {
|
|
|
let idObj = Object.create(null);
|
|
|
- idObj.type = rationType === rationOprObj.type.std ? rationOprObj.type.std : rationGljList[i].type;
|
|
|
+ idObj.type = rationGljList[i].type;
|
|
|
idObj.id = rationGljList[i].gljId;
|
|
|
gljIds.push(idObj);
|
|
|
}
|