xyxie 1 년 전
부모
커밋
76ab4a963b
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      services/data/table/mixed_table.go

+ 6 - 2
services/data/table/mixed_table.go

@@ -1186,8 +1186,12 @@ func handleMixCellShowStyle(showStyleList []string, calculateCellMap map[string]
 				return
 			}
 
-			val = changePointDecimalPlaces(val, styleConf.Pn, styleConf.Nt, isPercent)
-			cell.ShowFormatValue = val
+			if styleConf.Pn != 0 || styleConf.Nt != "" {
+				val = changePointDecimalPlaces(val, styleConf.Pn, styleConf.Nt, isPercent)
+				cell.ShowFormatValue = val
+			} else {
+				cell.ShowFormatValue = cell.ShowStyle
+			}
 			config[cellPosition.Column][cellPosition.Row] = cell
 		}
 	}