|
@@ -2962,7 +2962,7 @@ $(document).ready(() => {
|
|
|
const curIndex = parseInt($('#im-locate-info')[0].innerText.split('/')[0]);
|
|
|
const select = SpreadJsObj.getSelectObject(self.spread.getActiveSheet());
|
|
|
if (select && select.source) {
|
|
|
- const targetIndex = math.max(curIndex-1, 1);
|
|
|
+ const targetIndex = Math.max(curIndex-1, 1);
|
|
|
SpreadJsObj.locateTreeNode(slSpread.getActiveSheet(), select.source[targetIndex-1].id, true);
|
|
|
stagePosSpreadObj.loadCurPosData();
|
|
|
$('#im-locate-info')[0].innerText = targetIndex + '/' + select.source.length;
|
|
@@ -2972,7 +2972,7 @@ $(document).ready(() => {
|
|
|
const curIndex = parseInt($('#im-locate-info')[0].innerText.split('/')[0]);
|
|
|
const select = SpreadJsObj.getSelectObject(self.spread.getActiveSheet());
|
|
|
if (select && select.source) {
|
|
|
- const targetIndex = math.min(curIndex+1, select.source.length);
|
|
|
+ const targetIndex = Math.min(curIndex+1, select.source.length);
|
|
|
SpreadJsObj.locateTreeNode(slSpread.getActiveSheet(), select.source[targetIndex-1].id, true);
|
|
|
stagePosSpreadObj.loadCurPosData();
|
|
|
$('#im-locate-info')[0].innerText = targetIndex + '/' + select.source.length;
|