BS-新115/116 固化: 表名冲突 precheck + report release 子命令 (jyzs 2026-07-02 testspace 验证 4 PASS)

This commit is contained in:
ssw committed 2026-07-02 08:13:11 +08:00
1 parent ee6257d411
commit 2ef716bf30
4 files changed
+173

No files matched your search

+12
View File
@@ -71,3 +71,15 @@ export async function updateReport(params: Record<string, unknown> & { id: strin
export async function delReport(id: string): Promise<unknown> {
return loadReport.delReport(id)
}
/**
* 保存报表设计 (镜像 web report.ts:49 saveVersion)
* 端点: POST /api/Report/Save
* body: { id, versionId, type, cells, snapshot, columnList, dataSetList ... }
* - type=0 = 保存设计 (不发布, versionId 留空或当前 version)
* - type=1 = 发布 (走 saveOrRelease, 真正上线, 需要完整 columnList + dataSetList)
* BS-新116 (jyzs 2026-07-02): 之前 dacli report 无 release 子命令, 现补
*/
export async function saveReport(data: Record<string, unknown>): Promise<unknown> {
return loadReport.saveVersion(data)
}