|
@@ -1624,9 +1624,10 @@ $(document).ready(() => {
|
|
|
const sheet = slSpread.getActiveSheet();
|
|
|
const node = SpreadJsObj.getSelectObject(sheet);
|
|
|
if (node) {
|
|
|
- spSpread.getActiveSheet().zh_setting.readOnly = node.lock || (node.children && node.children.length > 0);
|
|
|
+ const posReadOnly = node.lock || (node.children && node.children.length > 0);
|
|
|
+ spSpread.getActiveSheet().zh_setting.readOnly = posReadOnly;
|
|
|
const posData = stagePos.ledgerPos[itemsPre + node.id] || [];
|
|
|
- SpreadJsObj.loadSheetData(spSpread.getActiveSheet(), 'data', posData, true);
|
|
|
+ SpreadJsObj.loadSheetData(spSpread.getActiveSheet(), 'data', posData, posReadOnly);
|
|
|
getNodeList(node.id);
|
|
|
} else {
|
|
|
spSpread.getActiveSheet().zh_setting.readOnly = true;
|