瀏覽代碼

定额搜索,章节树定位跳转

zhongzewei 6 年之前
父節點
當前提交
55014478cb
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      web/maintain/ration_repository/js/section_tree.js

+ 3 - 1
web/maintain/ration_repository/js/section_tree.js

@@ -692,7 +692,9 @@ let sectionTreeObj = {
             if (!sectionNode) {
                 return;
             }
-            me.sheet.setActiveCell(sectionNode.serialNo(), 1);
+            let sectionRow = sectionNode.serialNo();
+            me.sheet.setActiveCell(sectionRow, 1);
+            me.sheet.showRow(sectionRow, GC.Spread.Sheets.VerticalPosition.top);
             let doAfterGetRation = function (rations) {
                 let findRation = _.find(rations, {code: rationCode}),
                     rIdx = rations.indexOf(findRation),