Ver código fonte

中间计量,定位问题

MaiXinRong 3 anos atrás
pai
commit
de90a81c3c
2 arquivos alterados com 4 adições e 4 exclusões
  1. 2 2
      app/public/js/sr_detail.js
  2. 2 2
      app/public/js/stage.js

+ 2 - 2
app/public/js/sr_detail.js

@@ -844,7 +844,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;
@@ -854,7 +854,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;

+ 2 - 2
app/public/js/stage.js

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