Explorar o código

所有表格,控制序号字体大小等

MaiXinRong %!s(int64=5) %!d(string=hai) anos
pai
achega
76375b854b
Modificáronse 2 ficheiros con 7 adicións e 8 borrados
  1. 0 8
      app/lib/stage_im.js
  2. 7 0
      app/public/js/spreadjs_rela/spreadjs_zh.js

+ 0 - 8
app/lib/stage_im.js

@@ -596,14 +596,6 @@ class StageIm {
             delete im.changes;
         }
     }
-
-    // 生成中间计量汇总数据
-    async buildImGatherData () {
-        this._loadMainData();
-        if (stage.im_gather) {
-            this._checkGather();
-        }
-    }
 }
 
 module.exports = StageIm;

+ 7 - 0
app/public/js/spreadjs_rela/spreadjs_zh.js

@@ -272,6 +272,13 @@ const SpreadJsObj = {
         if (sheet.zh_setting.font) {
             const vStyle = new spreadNS.Style();
             vStyle.font = sheet.zh_setting.font;
+            vStyle.hAlign = 1;
+            vStyle.locked = false;
+            sheet.setDefaultStyle(vStyle, spreadNS.SheetArea.rowHeader);
+        }
+        if (sheet.zh_setting.font) {
+            const vStyle = new spreadNS.Style();
+            vStyle.font = sheet.zh_setting.font;
             vStyle.locked = false;
             sheet.setDefaultStyle(vStyle, spreadNS.SheetArea.viewport);
         }