|
@@ -329,7 +329,7 @@ $(document).ready(function() {
|
|
self.refreshTree(sheet, refreshNode);
|
|
self.refreshTree(sheet, refreshNode);
|
|
const sel = sheet.getSelections()[0];
|
|
const sel = sheet.getSelections()[0];
|
|
sheet.setSelection(tree.nodes.indexOf(node), sel.col, sel.rowCount, sel.colCount);
|
|
sheet.setSelection(tree.nodes.indexOf(node), sel.col, sel.rowCount, sel.colCount);
|
|
- SpreadJsObj.reloadRowsBackColor(sheet, [sel.row, refreshNode.create[0].index]);
|
|
|
|
|
|
+ SpreadJsObj.reloadRowsBackColor(sheet, [sel.row, tree.nodes.indexOf(node)]);
|
|
self.refreshOperationValid(sheet);
|
|
self.refreshOperationValid(sheet);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -354,7 +354,7 @@ $(document).ready(function() {
|
|
self.refreshTree(sheet, refreshNode);
|
|
self.refreshTree(sheet, refreshNode);
|
|
const sel = sheet.getSelections()[0];
|
|
const sel = sheet.getSelections()[0];
|
|
sheet.setSelection(tree.nodes.indexOf(node), sel.col, sel.rowCount, sel.colCount);
|
|
sheet.setSelection(tree.nodes.indexOf(node), sel.col, sel.rowCount, sel.colCount);
|
|
- SpreadJsObj.reloadRowsBackColor(sheet, [sel.row, refreshNode.create[0].index]);
|
|
|
|
|
|
+ SpreadJsObj.reloadRowsBackColor(sheet, [sel.row, tree.nodes.indexOf(node)]);
|
|
self.refreshOperationValid(sheet);
|
|
self.refreshOperationValid(sheet);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -737,7 +737,7 @@ $(document).ready(function() {
|
|
const result = tree.loadPostData(data.ledger);
|
|
const result = tree.loadPostData(data.ledger);
|
|
self.refreshTree(sheet, result);
|
|
self.refreshTree(sheet, result);
|
|
sheet.setSelection(result.create[0].index, sel.col, sel.rowCount, sel.colCount);
|
|
sheet.setSelection(result.create[0].index, sel.col, sel.rowCount, sel.colCount);
|
|
- SpreadJsObj.reloadRowsBackColor(sheet, [sel.row, refreshNode.create[0].index]);
|
|
|
|
|
|
+ SpreadJsObj.reloadRowsBackColor(sheet, [sel.row, result.create[0].index]);
|
|
self.refreshOperationValid(sheet);
|
|
self.refreshOperationValid(sheet);
|
|
removeLocalCache(copyBlockTag);
|
|
removeLocalCache(copyBlockTag);
|
|
}, null, true);
|
|
}, null, true);
|
|
@@ -2009,7 +2009,7 @@ $(document).ready(function() {
|
|
treeOperationObj.refreshTree(mainSheet, refreshData);
|
|
treeOperationObj.refreshTree(mainSheet, refreshData);
|
|
const sel = mainSheet.getSelections()[0];
|
|
const sel = mainSheet.getSelections()[0];
|
|
mainSheet.setSelection(refreshData.create[0].index, sel.col, sel.rowCount, sel.colCount);
|
|
mainSheet.setSelection(refreshData.create[0].index, sel.col, sel.rowCount, sel.colCount);
|
|
- SpreadJsObj.reloadRowsBackColor(mainSheet, [sel.row, refreshNode.create[0].index]);
|
|
|
|
|
|
+ SpreadJsObj.reloadRowsBackColor(mainSheet, [sel.row, refreshData.create[0].index]);
|
|
treeOperationObj.refreshOperationValid(mainSheet);
|
|
treeOperationObj.refreshOperationValid(mainSheet);
|
|
ledgerSpread.focus();
|
|
ledgerSpread.focus();
|
|
posOperationObj.loadCurPosData();
|
|
posOperationObj.loadCurPosData();
|
|
@@ -2219,7 +2219,7 @@ $(document).ready(function() {
|
|
const result = ledgerTree.loadPostData(data.ledger);
|
|
const result = ledgerTree.loadPostData(data.ledger);
|
|
treeOperationObj.refreshTree(sheet, result);
|
|
treeOperationObj.refreshTree(sheet, result);
|
|
sheet.setSelection(result.create[0].index, sel.col, sel.rowCount, sel.colCount);
|
|
sheet.setSelection(result.create[0].index, sel.col, sel.rowCount, sel.colCount);
|
|
- SpreadJsObj.reloadRowsBackColor(sheet, [sel.row, refreshNode.create[0].index]);
|
|
|
|
|
|
+ SpreadJsObj.reloadRowsBackColor(sheet, [sel.row, result.create[0].index]);
|
|
treeOperationObj.refreshOperationValid(sheet);
|
|
treeOperationObj.refreshOperationValid(sheet);
|
|
self.obj.modal('hide');
|
|
self.obj.modal('hide');
|
|
}, null, true);
|
|
}, null, true);
|