Parcourir la source

fix: 定额库搜索,延时加载后已拖动的列宽恢复成默认宽度问题

zhangweicheng il y a 3 ans
Parent
commit
ad37606329
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      web/building_saas/main/js/views/std_ration_lib.js

+ 2 - 1
web/building_saas/main/js/views/std_ration_lib.js

@@ -837,10 +837,11 @@ function seachRation(){
                 resultSpread.bind(GC.Spread.Sheets.Events.CellDoubleClick, rationLibObj.onRationSpreadCellDoubleClick);
             }
             resultSpread.bind(GC.Spread.Sheets.Events.TopRowChanged, rationLibObj.onRationSpreadTopRowChanged);
+            SheetDataHelper.loadSheetHeader(rationSetting, rationLibObj.resultSpread.getActiveSheet());
         }else {
             rationLibObj.resultSpread.refresh();
         }
-        SheetDataHelper.loadSheetHeader(rationSetting, rationLibObj.resultSpread.getActiveSheet());
+        
         SheetDataHelper.loadSheetData(rationSetting, rationLibObj.resultSpread.getActiveSheet(), result);
         rationLibObj.setTagForHint(rationLibObj.resultSpread.getActiveSheet(), result);
         rationLibObj.resultCache = result;