Browse Source

部位台账,冻结列

MaiXinRong 3 tuần trước cách đây
mục cha
commit
f7f88ae496
2 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 0 4
      app/public/js/stage_bwtz.js
  2. 4 0
      app/view/stage/bwtz.ejs

+ 0 - 4
app/public/js/stage_bwtz.js

@@ -19,15 +19,11 @@ $(document).ready(() => {
     sjsSettingObj.setFxTreeStyle(xmjSpreadSetting, sjsSettingObj.FxTreeStyle.jz);
     if (thousandth) sjsSettingObj.setTpThousandthFormat(xmjSpreadSetting);
     SpreadJsObj.initSheet(xmjSheet, xmjSpreadSetting);
-    xmjSheet.frozenColumnCount(3);
-    xmjSheet.options.frozenlineColor = '#93b5e4';
 
     const unitSpread = SpreadJsObj.createNewSpread($('#unit-spread')[0]);
     const unitSheet = unitSpread.getActiveSheet();
     if (thousandth) sjsSettingObj.setTpThousandthFormat(xmjSpreadSetting);
     SpreadJsObj.initSheet(unitSheet, unitSpreadSetting);
-    unitSheet.frozenColumnCount(5);
-    unitSheet.options.frozenlineColor = '#93b5e4';
 
     const filterUnitTree = createNewPathTree('filter', {
         id: 'ledger_id',

+ 4 - 0
app/view/stage/bwtz.ejs

@@ -206,6 +206,8 @@
             key: 'stage-bwtz-xmj',
             colWidth: true,
         },
+        frozenColCount: 3,
+        frozenLineColor: '#93b5e4',
         getColor,
         imageClick,
     };
@@ -287,6 +289,8 @@
             key: 'stage-bwtz-unit',
             colWidth: true,
         },
+        frozenColCount: 5,
+        frozenLineColor: '#93b5e4',
         getColor,
         imageClick,
     };