瀏覽代碼

update

add_mode
DengBiao 1 年之前
父節點
當前提交
d7412b8982
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. +1
    -3
      app/admin/svc/svc_data_statisstics.go

+ 1
- 3
app/admin/svc/svc_data_statisstics.go 查看文件

@@ -678,15 +678,13 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD
titleList = []string{"年级", "班级", "早餐", "午餐", "晚餐"}
xlsx.SetSheetRow("Sheet1", "A2", &titleList)
xlsx.MergeCell("Sheet1", "A1", "E1") //合并单元格
style, err := xlsx.NewStyle(`{"fill":{"type":"pattern","color":["FFFF00"],"pattern":1}}`)
style, err := xlsx.NewStyle(`{"fill":{"type":"pattern","color":["FFFF00"],"pattern":1}, "alignment":{"horizontal":"center"}}`)
if err != nil {
logx.Error(err)
println("<<<<CentralKitchenForSchoolDataStatisticsExport3>>>>>Error:::", err.Error())
panic(err)
}
xlsx.SetCellStyle("Sheet1", "A1", "E1", style)
style, err = xlsx.NewStyle(`{"alignment":{"horizontal":"center"}}`)
xlsx.SetCellStyle("Sheet1", "A1", "E1", style)

xlsx.SetColWidth("Sheet1", "A", "E", 20)



Loading…
取消
儲存