Browse Source

初始化模板修改

wangming 1 year ago
parent
commit
d1112d2246

+ 3 - 1
luckysheet/src/main/java/com/xc/luckysheet/db/server/JfGridUpdateService.java

@@ -104,7 +104,7 @@ public class JfGridUpdateService {
                 .index("1")
                 .sheetName("Sheet1")
                 .order(0)
-                .row(rowSize)
+                .rowSize(rowSize)
                 .build();
         JSONObject sheet = LuckySheet4SummaryHelp.getEmptySheet(sheet1);
 
@@ -271,6 +271,7 @@ public class JfGridUpdateService {
             JSONObject positionCellV = new JSONObject();
             positionCellV.put("tb", 2);
             positionCell.put("v", positionCellV);
+            celldata.add(positionCell);
 
             //内容
             JSONObject contentCell = new JSONObject();
@@ -280,6 +281,7 @@ public class JfGridUpdateService {
             JSONObject contentCellV = new JSONObject();
             contentCellV.put("tb", 2); //自动换行
             contentCell.put("v", contentCellV);
+            celldata.add(contentCell);
 
         }
 

+ 1 - 1
luckysheet/src/main/java/com/xc/luckysheet/entity/project/SheetInfoParam.java

@@ -21,5 +21,5 @@ public class SheetInfoParam {
      */
     private Integer order;
 
-    private Integer row;
+    private Integer rowSize;
 }

+ 1 - 1
luckysheet/src/main/java/com/xc/luckysheet/utils/LuckySheet4SummaryHelp.java

@@ -486,7 +486,7 @@ public class LuckySheet4SummaryHelp {
      */
     public static JSONObject getEmptySheet(SheetInfoParam param) {
         JSONObject obj = new JSONObject();
-        obj.put("row", 84);
+        obj.put("row", param.getRowSize());
         obj.put("name", param.getSheetName());
         obj.put("chart", new JSONArray());
         obj.put("color", "");