Browse Source

造价书清单规则搜素结果调整

zhongzewei 6 năm trước cách đây
mục cha
commit
c81a3cc85d
1 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 5 5
      web/building_saas/main/js/views/std_billsGuidance_lib.js

+ 5 - 5
web/building_saas/main/js/views/std_billsGuidance_lib.js

@@ -793,7 +793,7 @@ const billsGuidance = (function () {
                     }
                 });
                 //搜索初始定位
-                billsSheet.showRow(result[0].serialNo(), GC.Spread.Sheets.VerticalPosition.bottom);
+                billsSheet.showRow(result[0].serialNo(), GC.Spread.Sheets.VerticalPosition.center);
                 //查找下一条
                 $('#nextBillsGuidance').show();
                 $('#nextBillsGuidance').unbind('click');
@@ -802,11 +802,11 @@ const billsGuidance = (function () {
                     if (resultIndex === result.length - 1) {
                         bills.controller.setTreeSelected(result[0]);
                         billsSheet.setSelection(result[0].serialNo(), sel[0].col, 1, 1);
-                        billsSheet.showRow(result[0].serialNo(), GC.Spread.Sheets.VerticalPosition.bottom);
+                        billsSheet.showRow(result[0].serialNo(), GC.Spread.Sheets.VerticalPosition.center);
                     } else {
                         bills.controller.setTreeSelected(result[resultIndex + 1]);
                         billsSheet.setSelection(result[resultIndex + 1].serialNo(), sel[0].col, 1, 1);
-                        billsSheet.showRow(result[resultIndex + 1].serialNo(), GC.Spread.Sheets.VerticalPosition.bottom);
+                        billsSheet.showRow(result[resultIndex + 1].serialNo(), GC.Spread.Sheets.VerticalPosition.center);
                     }
                 });
                 //查找上一条
@@ -817,11 +817,11 @@ const billsGuidance = (function () {
                     if (resultIndex === 0) {
                         bills.controller.setTreeSelected(result[result.length - 1]);
                         billsSheet.setSelection(result[result.length - 1].serialNo(), sel[0].col, 1, 1);
-                        billsSheet.showRow(result[result.length - 1].serialNo(), GC.Spread.Sheets.VerticalPosition.bottom);
+                        billsSheet.showRow(result[result.length - 1].serialNo(), GC.Spread.Sheets.VerticalPosition.center);
                     } else {
                         bills.controller.setTreeSelected(result[resultIndex - 1]);
                         billsSheet.setSelection(result[resultIndex - 1].serialNo(), sel[0].col, 1, 1);
-                        billsSheet.showRow(result[resultIndex - 1].serialNo(), GC.Spread.Sheets.VerticalPosition.bottom);
+                        billsSheet.showRow(result[resultIndex - 1].serialNo(), GC.Spread.Sheets.VerticalPosition.center);
                     }
                 });
             } else {