|
@@ -1211,7 +1211,17 @@ func GetTableDataByMixedTableData(config [][]request.MixedTableCellDataReq, hide
|
|
|
tmp.MergeCell.Column = cell.MerData.Mer.Col
|
|
|
}
|
|
|
if cell.ShowStyle != "" {
|
|
|
+ var styleConfig request.MixCellShowStyle
|
|
|
+ if err := json.Unmarshal([]byte(cell.ShowStyle), &styleConfig); err != nil {
|
|
|
+ utils.FileLog.Info("表格样式showStyle解析失败", err.Error())
|
|
|
+ }
|
|
|
tmp.Monitor = cell.ShowFormatValue
|
|
|
+ if styleConfig.BackgroundColor != "" {
|
|
|
+ tmp.Background = styleConfig.BackgroundColor
|
|
|
+ }
|
|
|
+ if styleConfig.Color != "" {
|
|
|
+ tmp.FontColor = styleConfig.Color
|
|
|
+ }
|
|
|
}
|
|
|
dataCol = append(dataCol, tmp)
|
|
|
}
|