|
@@ -6,13 +6,14 @@ import (
|
|
|
"eta/eta_api/models/data_manage/excel/request"
|
|
|
"eta/eta_api/utils"
|
|
|
"fmt"
|
|
|
- "github.com/tealeg/xlsx"
|
|
|
- "github.com/xuri/excelize/v2"
|
|
|
"os"
|
|
|
"reflect"
|
|
|
"strconv"
|
|
|
"strings"
|
|
|
"time"
|
|
|
+
|
|
|
+ "github.com/tealeg/xlsx"
|
|
|
+ "github.com/xuri/excelize/v2"
|
|
|
)
|
|
|
|
|
|
type LuckySheetDataBak struct {
|
|
@@ -1743,8 +1744,18 @@ 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())
|
|
|
+ }
|
|
|
showFormatValue := fmt.Sprintf("%v", cell.ShowFormatValue)
|
|
|
tmp.Monitor = showFormatValue
|
|
|
+ if styleConfig.BackgroundColor != "" {
|
|
|
+ tmp.Background = styleConfig.BackgroundColor
|
|
|
+ }
|
|
|
+ if styleConfig.Color != "" {
|
|
|
+ tmp.FontColor = styleConfig.Color
|
|
|
+ }
|
|
|
}
|
|
|
dataCol = append(dataCol, tmp)
|
|
|
}
|