|
@@ -1192,6 +1192,14 @@ func handleMixCellShowStyle(showStyleList []string, calculateCellMap map[string]
|
|
|
// isPercent = true
|
|
|
// val = strings.Trim(val, "%")
|
|
|
// }
|
|
|
+ // 如果没有showValue, 则使用value
|
|
|
+ if cell.ShowValue == "" {
|
|
|
+ _, err := strconv.ParseFloat(cell.Value, 64)
|
|
|
+ if err == nil {
|
|
|
+ val = cell.Value
|
|
|
+ cell.ShowValue = cell.Value
|
|
|
+ }
|
|
|
+ }
|
|
|
_, e := strconv.ParseFloat(val, 64) // 将字符串转换成float类型
|
|
|
if e != nil { // 如果没有错误发生则返回true,说明该字符串是一个合法的数字
|
|
|
var styleConf request.MixCellShowStyle
|