浏览代码

fix:背景色

Roc 1 年之前
父节点
当前提交
03b72c6b1b
共有 1 个文件被更改,包括 22 次插入16 次删除
  1. 22 16
      services/excel/lucky_sheet.go

+ 22 - 16
services/excel/lucky_sheet.go

@@ -944,8 +944,9 @@ func GetTableDataByCustomData(excelType int, data request.TableDataReq) (selfTab
 		{
 			firstCol := make([]LuckySheetDataValue, 0)
 			firstCol = append(firstCol, LuckySheetDataValue{
-				Value:   "日期",
-				Monitor: "日期",
+				Value:      "日期",
+				Monitor:    "日期",
+				Background: "#505b78",
 				MergeCell: LuckySheetDataConfigMerge{
 					Row:    0, //行数
 					Column: 0, //列数
@@ -960,9 +961,10 @@ func GetTableDataByCustomData(excelType int, data request.TableDataReq) (selfTab
 					edbName = v.EdbAliasName
 				}
 				firstCol = append(firstCol, LuckySheetDataValue{
-					Value:     edbName,
-					Monitor:   edbName,
-					MergeCell: LuckySheetDataConfigMerge{},
+					Value:      edbName,
+					Monitor:    edbName,
+					Background: "#505b78",
+					MergeCell:  LuckySheetDataConfigMerge{},
 				})
 			}
 
@@ -977,9 +979,10 @@ func GetTableDataByCustomData(excelType int, data request.TableDataReq) (selfTab
 			for _, v := range data.Data {
 				name := v.Unit + " / " + v.Frequency
 				secondCol = append(secondCol, LuckySheetDataValue{
-					Value:     name,
-					Monitor:   name,
-					MergeCell: LuckySheetDataConfigMerge{},
+					Value:      name,
+					Monitor:    name,
+					Background: "#505b78",
+					MergeCell:  LuckySheetDataConfigMerge{},
 				})
 			}
 
@@ -1032,8 +1035,9 @@ func GetTableDataByCustomData(excelType int, data request.TableDataReq) (selfTab
 		{
 			firstCol := make([]LuckySheetDataValue, 0)
 			firstCol = append(firstCol, LuckySheetDataValue{
-				Value:   "日期",
-				Monitor: "日期",
+				Value:      "日期",
+				Monitor:    "日期",
+				Background: "#505b78",
 				MergeCell: LuckySheetDataConfigMerge{
 					Row:    0, //行数
 					Column: 0, //列数
@@ -1078,9 +1082,10 @@ func GetTableDataByCustomData(excelType int, data request.TableDataReq) (selfTab
 					edbName = tmpEdbInfo.EdbAliasName
 				}
 				dataCol = append(dataCol, LuckySheetDataValue{
-					Value:     edbName,
-					Monitor:   edbName,
-					MergeCell: LuckySheetDataConfigMerge{},
+					Value:      edbName,
+					Monitor:    edbName,
+					Background: "#505b78",
+					MergeCell:  LuckySheetDataConfigMerge{},
 				})
 			}
 
@@ -1088,9 +1093,10 @@ func GetTableDataByCustomData(excelType int, data request.TableDataReq) (selfTab
 			{
 				name := tmpEdbInfo.Unit + " / " + tmpEdbInfo.Frequency
 				dataCol = append(dataCol, LuckySheetDataValue{
-					Value:     name,
-					Monitor:   name,
-					MergeCell: LuckySheetDataConfigMerge{},
+					Value:      name,
+					Monitor:    name,
+					Background: "#505b78",
+					MergeCell:  LuckySheetDataConfigMerge{},
 				})
 			}