diff --git a/src/controllers/protection.js b/src/controllers/protection.js index 81cebf6..0215a34 100644 --- a/src/controllers/protection.js +++ b/src/controllers/protection.js @@ -946,7 +946,11 @@ export function checkProtectionCellHidden(r, c, sheetIndex){ //cell range locked state export function checkProtectionLockedRangeList(rangeList, sheetIndex){ //EPM-BUDGET-START - if (rangeList[0].column[0] !== rangeList[0].column[1]) return true + if (rangeList[0].column[0] !== rangeList[0].column[1]) return true; + let cell = sheetFile.data[rangeList[0].row[0]][rangeList[0].column[0]]; + if(cell&& !cell.lo){ + return true; + } //EPM-BUDGET-END let sheetFile = sheetmanage.getSheetByIndex(sheetIndex); @@ -968,13 +972,6 @@ export function checkProtectionLockedRangeList(rangeList, sheetIndex){ return true; } - //EPM-BUDGET-START - let cell = sheetFile.data[rangeList[0].row[0]][rangeList[0].column[0]] - if(cell&& !cell.lo){ - return true; - } - //EPM-BUDGET-END - const _locale = locale(); const local_protection = _locale.protection; diff --git a/src/global/extend.js b/src/global/extend.js index b2475db..f1f3a84 100644 --- a/src/global/extend.js +++ b/src/global/extend.js @@ -13,7 +13,6 @@ import Store from '../store'; //增加行列 function luckysheetextendtable(type, index, value, direction, sheetIndex) { - console.log(type, index, value, direction, sheetIndex) sheetIndex = sheetIndex || Store.currentSheetIndex; if(type=='row' && !checkProtectionAuthorityNormal(sheetIndex, "insertRows")){