Skip to content

Commit 073e83a

Browse files
pythonHuangclaude
andcommitted
feat: 报表行类型模型完整接通-数据行绑定数据集自动扩展/汇总行聚合${字段:SUM|AVG|MIN|MAX|COUNT}/数据集前缀占位符${数据集.字段}/标题表头汇总行语义持久化/HTML+Excel共享渲染+设计器绑定数据集选择器与提示
Co-Authored-By: Claude Code <noreply@anthropic.com>
1 parent 194cc65 commit 073e83a

3 files changed

Lines changed: 349 additions & 166 deletions

File tree

‎Juggle.Api/Controllers/Api/ReportController.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public async Task<IActionResult> ExportPdf([FromBody] ReportPreviewRequest req)
8585
{
8686
var rpt = await _db.Set<ReportEntity>().FindAsync(req.Id);
8787
if (rpt == null) return NotFound();
88-
var data = _reportExec.ExportPdf(rpt.LayoutJson!, req.Params);
88+
var data = await _reportExec.ExportPdfAsync(rpt.LayoutJson!, req.Params);
8989
return File(data, "text/html", $"{rpt.Name}.html");
9090
}
9191

@@ -94,7 +94,7 @@ public async Task<IActionResult> ExportExcel([FromBody] ReportPreviewRequest req
9494
{
9595
var rpt = await _db.Set<ReportEntity>().FindAsync(req.Id);
9696
if (rpt == null) return NotFound();
97-
var data = _reportExec.ExportExcel(rpt.LayoutJson!, req.Params);
97+
var data = await _reportExec.ExportExcelAsync(rpt.LayoutJson!, req.Params);
9898
return File(data, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", $"{rpt.Name}.xlsx");
9999
}
100100
}

0 commit comments

Comments
 (0)