Browse Source

保护表整理

master
CN\wuwx26 5 years ago
parent
commit
a04e40e832
  1. 13
      src/controllers/protection.js
  2. 1
      src/global/extend.js

13
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;

1
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")){

Loading…
Cancel
Save