Skip to content

Commit bc4008e

Browse files
committed
[feature]: Add immediate audit and audit details drawer analysis
1 parent 586a0d9 commit bc4008e

File tree

24 files changed

+188
-6703
lines changed

24 files changed

+188
-6703
lines changed

packages/shared/lib/components/ActiontechTable/hooks/useTableSettings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const useTableSettings = <
3131

3232
const catchDefaultColumnsInfo = useCallback(
3333
(defaultColumns: ActiontechTableColumn<T, F, OtherColumnKeys>) => {
34-
if (tableName && username) {
34+
if (tableName && username && !!defaultColumns.length) {
3535
try {
3636
const localStr = LocalStorageWrapper.get(tableName);
3737
const localData = localStr ? JSON.parse(localStr) : undefined;

packages/sqle/src/components/ReportDrawer/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ const ReportDrawer = ({
2323
onClose,
2424
showAnnotation,
2525
showSourceFile,
26-
loading
26+
loading,
27+
extra
2728
}: DetailReportDrawerProps) => {
2829
const { t } = useTranslation();
2930

@@ -50,6 +51,7 @@ const ReportDrawer = ({
5051
noBodyPadding
5152
size="large"
5253
maskClosable
54+
extra={extra}
5355
>
5456
<AuditReportStyleWrapper className="audit-report-wrapper">
5557
<Spin spinning={loading}>

packages/sqle/src/components/ReportDrawer/index.type.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ export interface DetailReportDrawerProps {
2121
showAnnotation?: boolean;
2222
showSourceFile?: boolean;
2323
loading?: boolean;
24+
extra?: ReactNode;
2425
}

packages/sqle/src/locale/zh-CN/managementConf.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ export default {
9898
title: '{{instanceName}} 智能扫描详情',
9999
staticScanTypes: '静态扫描',
100100
export: '导出',
101+
auditImmediately: '立即审核',
102+
auditImmediatelySuccessTips: '审核成功',
101103
exportTips: '正在导出扫描任务详情',
102104
overview: {
103105
title: '概览',

0 commit comments

Comments
 (0)