|
@@ -1114,6 +1114,7 @@ $(document).ready(() => {
|
|
|
*/
|
|
|
loadCurPosData: function () {
|
|
|
const node = SpreadJsObj.getSelectObject(slSpread.getActiveSheet());
|
|
|
+ SpreadJsObj.resetTopAndSelect(spSpread.getActiveSheet());
|
|
|
if (node) {
|
|
|
const posData = stagePos.ledgerPos[itemsPre + node.id] || [];
|
|
|
SpreadJsObj.loadSheetData(spSpread.getActiveSheet(), 'data', posData);
|
|
@@ -1730,6 +1731,7 @@ $(document).ready(() => {
|
|
|
if (pos.index !== curRow) {
|
|
|
sheet.setSelection(pos.index, sel ? sel.col : 0, 1, 1);
|
|
|
sheet.showRow(pos.index, spreadNS.VerticalPosition.center);
|
|
|
+ SpreadJsObj.reloadRowsBackColor(sheet, [pos.index, curRow]);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
@@ -1745,6 +1747,7 @@ $(document).ready(() => {
|
|
|
if (next.index !== curRow) {
|
|
|
sheet.setSelection(next.index, sel ? sel.col : 0, 1, 1);
|
|
|
sheet.showRow(next.index, spreadNS.VerticalPosition.center);
|
|
|
+ SpreadJsObj.reloadRowsBackColor(sheet, [next.index, curRow]);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
@@ -1760,6 +1763,7 @@ $(document).ready(() => {
|
|
|
if (next.index !== curRow) {
|
|
|
sheet.setSelection(next.index, sel ? sel.col : 0, 1, 1);
|
|
|
sheet.showRow(next.index, spreadNS.VerticalPosition.center);
|
|
|
+ SpreadJsObj.reloadRowsBackColor(sheet, [next.index, curRow]);
|
|
|
}
|
|
|
}
|
|
|
};
|