Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/shared/lib/api/sqle/service/task/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ export interface IDownloadAuditTaskSQLReportV1Params {
task_id: string;

no_duplicate?: boolean;

export_format?: string;
}

export interface IGetAuditTaskSQLsV1Params {
Expand Down
9 changes: 9 additions & 0 deletions packages/sqle/src/locale/en-US/execWorkflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,15 @@ export default {
duplicate: 'Deduplication',
downloadSql: 'Download SQL statement',
downloadReport: 'Download audit report',
exportFormat: {
html: 'HTML Format',
pdf: 'PDF Format',
csv: 'CSV Format',
word: 'WORD Format (.docx)'
},
exportFormatNotSupported: 'This export format is only available in Enterprise Edition',
downloadFailed: 'Download failed, please check your network and try again',
downloadDisabledTip: 'Please wait for the audit to complete before downloading',
table: {
number: 'Serial number',
auditLevel: 'Rule level',
Expand Down
9 changes: 9 additions & 0 deletions packages/sqle/src/locale/zh-CN/execWorkflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,15 @@ export default {
downloadSql: '下载SQL语句',
downloadReport: '下载审核报告',
downloadRollbackSql: '下载回滚语句',
exportFormat: {
html: 'HTML 格式',
pdf: 'PDF 格式',
csv: 'CSV 格式',
word: 'WORD 格式 (.docx)'
},
exportFormatNotSupported: '该导出格式仅企业版支持',
downloadFailed: '下载失败,请检查网络后重试',
downloadDisabledTip: '请等待审核完成后再下载',
table: {
number: '序号',
auditLevel: '规则等级',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,13 @@ const AuditResultList: React.FC<AuditResultListProps> = ({
}}
/>
<EmptyBox if={!!currentTaskID}>
<DownloadRecord noDuplicate={noDuplicate} taskId={currentTaskID!} />
<DownloadRecord
noDuplicate={noDuplicate}
taskId={currentTaskID!}
auditStatusFinished={
currentTask?.status !== 'initialized'
}
/>
</EmptyBox>
</Space>
</SegmentedRowStyleWrapper>
Expand Down

This file was deleted.

Loading
Loading