From 74abde5f9edcfe9a2eb040147782920b11f62dba Mon Sep 17 00:00:00 2001 From: whale_yan <1745132665@qq.com> Date: Mon, 25 Nov 2024 17:22:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20eslint=20=E6=A0=A1=E9=AA=8C=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/task/index.ts | 2 +- .../VulnerabilityTypePie/VulnerabilityTypePie.tsx | 2 +- src/pages/TaskDetail/compoments/ViewReportDrawer.tsx | 8 ++++++-- src/pages/TaskPageList/compoment/Columns.tsx | 4 ++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/apis/task/index.ts b/src/apis/task/index.ts index d2480ce..728a3c7 100644 --- a/src/apis/task/index.ts +++ b/src/apis/task/index.ts @@ -3,7 +3,7 @@ import type { ResponseData, TableRequestParam, TableResponseData, - TGetTimeLineRuntimeMessage, + // TGetTimeLineRuntimeMessage, } from '@/utils/commonTypes'; import type { StopOnRunTsakResponse, diff --git a/src/compoments/AntdCharts/VulnerabilityTypePie/VulnerabilityTypePie.tsx b/src/compoments/AntdCharts/VulnerabilityTypePie/VulnerabilityTypePie.tsx index ede60e9..7a89f51 100644 --- a/src/compoments/AntdCharts/VulnerabilityTypePie/VulnerabilityTypePie.tsx +++ b/src/compoments/AntdCharts/VulnerabilityTypePie/VulnerabilityTypePie.tsx @@ -303,7 +303,7 @@ export const VulnerabilityTypePie: React.FC = ]]: isSelect, }, )} - onClick={(e) => + onClick={() => onSelectList(isSelect, index) } key={ele.Verbose} diff --git a/src/pages/TaskDetail/compoments/ViewReportDrawer.tsx b/src/pages/TaskDetail/compoments/ViewReportDrawer.tsx index 4a1dc1d..adac81b 100644 --- a/src/pages/TaskDetail/compoments/ViewReportDrawer.tsx +++ b/src/pages/TaskDetail/compoments/ViewReportDrawer.tsx @@ -1,7 +1,10 @@ import { FC, useRef } from 'react'; -import { Button, message } from 'antd'; +import { + Button, + // message +} from 'antd'; -import { useRequest } from 'ahooks'; +// import { useRequest } from 'ahooks'; // import { getTimeLineRuntimeMessage } from '@/apis/task'; import { UseDrawerRefType } from '@/compoments/WizardDrawer/useDrawer'; @@ -159,6 +162,7 @@ const items = { }; const ViewReportDrawer: FC<{ runtime_id: string }> = ({ runtime_id }) => { + console.log(runtime_id, 'runtime_id'); const scriptDetailDrawerRef = useRef(null); // const { run, loading } = useRequest(getTimeLineRuntimeMessage, { diff --git a/src/pages/TaskPageList/compoment/Columns.tsx b/src/pages/TaskPageList/compoment/Columns.tsx index 4cbd6e4..b59eebe 100644 --- a/src/pages/TaskPageList/compoment/Columns.tsx +++ b/src/pages/TaskPageList/compoment/Columns.tsx @@ -22,8 +22,8 @@ type TColumns = { const CommonTasksColumns = ( headerGroupValue: 1 | 2 | 3, page: UsePageRef, - deleteValues: Record, - setDeleteValues: React.Dispatch< + deleteValues?: Record, + setDeleteValues?: React.Dispatch< React.SetStateAction> >, ): CreateTableProps['columns'] => {