From a04e40e8324e7b532b0de08606abc7e200358dfd Mon Sep 17 00:00:00 2001 From: "CN\\wuwx26" Date: Fri, 8 Jan 2021 10:29:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E6=8A=A4=E8=A1=A8=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/protection.js | 13 +++++-------- src/global/extend.js | 1 - 2 files changed, 5 insertions(+), 9 deletions(-) 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")){