Ver código fonte

fix:背景色(预测值)

Roc 1 ano atrás
pai
commit
46843e758d
1 arquivos alterados com 8 adições e 3 exclusões
  1. 8 3
      services/excel/lucky_sheet.go

+ 8 - 3
services/excel/lucky_sheet.go

@@ -1652,10 +1652,15 @@ func GetTableDataByCustomData(excelType int, data request.TableDataReq) (selfTab
 
 			// 指标数据列
 			for _, tmpData := range tmpEdbInfo.Data {
+				background := ``
+				if tmpData.DataType == 5 {
+					background = "#ffefdd"
+				}
 				dataCol = append(dataCol, LuckySheetDataValue{
-					Value:     tmpData.Value,
-					Monitor:   tmpData.ShowValue,
-					MergeCell: LuckySheetDataConfigMerge{},
+					Value:      tmpData.Value,
+					Monitor:    tmpData.ShowValue,
+					MergeCell:  LuckySheetDataConfigMerge{},
+					Background: background,
 				})
 			}