feat(aireport): 优化多模板报告任务、报告任务管理功能
- 在多个对话框组件中禁用点击遮罩关闭功能 - 将报告任务编号设为可选字段,支持系统自动生成 - 添加报告任务下载功能按钮和相关API接口 - 重构多模板批任务的子任务显示逻辑,统一使用任务概念 - 优化报告任务分组对话框的界面布局和样式 - 添加分组报告详情查看功能 - 更新测试报告多模板创建对话框的表单结构 - 调整报告任务相关API接口参数类型定义
This commit is contained in:
@@ -62,6 +62,11 @@ export const generateReportTaskGroupReportsApi = (id: string) => {
|
||||
return http.post<boolean>(`${REPORT_TASK_BASE_URL}/${id}/generate`)
|
||||
}
|
||||
|
||||
export const downloadReportTaskApi = (id: string): Promise<AxiosResponse<Blob>> =>
|
||||
http.get(`${REPORT_TASK_BASE_URL}/${id}/download`, undefined, {
|
||||
responseType: 'blob'
|
||||
}) as unknown as Promise<AxiosResponse<Blob>>
|
||||
|
||||
export const downloadReportTaskGroupReportApi = (groupReportId: string): Promise<AxiosResponse<Blob>> =>
|
||||
http.get(`${REPORT_TASK_BASE_URL}/group-report/${groupReportId}/download`, undefined, {
|
||||
responseType: 'blob'
|
||||
|
||||
@@ -50,7 +50,7 @@ export namespace ReportTask {
|
||||
|
||||
export interface ReportTaskAddParam {
|
||||
id?: string
|
||||
no: string
|
||||
no?: string
|
||||
reportModelId: string
|
||||
data: Record<string, unknown> | unknown[]
|
||||
batchId?: string
|
||||
|
||||
@@ -22,8 +22,8 @@ export const getReportTaskMultiDetailApi = (id: string) => {
|
||||
return http.get<ReportTaskMulti.ReportTaskMultiRecord>(`${REPORT_TASK_MULTI_BASE_URL}/${id}`)
|
||||
}
|
||||
|
||||
export const listReportTaskMultiChildReportsApi = (id: string) => {
|
||||
return http.get(`${REPORT_TASK_MULTI_BASE_URL}/${id}/child-report/list`)
|
||||
export const listReportTaskMultiChildTasksApi = (id: string) => {
|
||||
return http.get(`${REPORT_TASK_MULTI_BASE_URL}/${id}/child-task/list`)
|
||||
}
|
||||
|
||||
export const downloadReportTaskMultiApi = (id: string): Promise<AxiosResponse<Blob>> =>
|
||||
|
||||
@@ -55,12 +55,12 @@ export namespace ReportTaskMulti {
|
||||
export interface ReportTaskMultiChildConfig {
|
||||
templateDirName: string
|
||||
templateDirPath: string
|
||||
no: string
|
||||
no?: string
|
||||
reportModelId: string
|
||||
}
|
||||
|
||||
export interface ReportTaskMultiCreateParam {
|
||||
no: string
|
||||
no?: string
|
||||
sessionId: string
|
||||
childReports: ReportTaskMultiChildConfig[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user