Browse Source

fix:ppt显示空值不为-

zqbao 4 months ago
parent
commit
aac4a2e7a9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      services/excel/lucky_sheet.go

+ 4 - 0
services/excel/lucky_sheet.go

@@ -1733,6 +1733,10 @@ func GetTableDataByMixedTableData(config [][]request.MixedTableCellDataReq, hide
 					Monitor:   cell.ShowValue,
 					MergeCell: LuckySheetDataConfigMerge{},
 				}
+				if cell.DataType != request.CustomTextDT && tmp.Monitor == `` {
+					tmp.Monitor = "-"
+					cell.ShowFormatValue = "-"
+				}
 				// TODO: 混合表格/平衡表-合并单元格
 				// 前端需要隐藏被合并的单元格, 混合表格/平衡表通过这个字段判断, 不通过HandleTableCell方法隐藏
 				if cell.MerData != nil {