diff --git a/src/pages/TaskPageList/compoment/TaskOperateTableRender.tsx b/src/pages/TaskPageList/compoment/TaskOperateTableRender.tsx index c0c6d5c..ddb02cb 100644 --- a/src/pages/TaskPageList/compoment/TaskOperateTableRender.tsx +++ b/src/pages/TaskPageList/compoment/TaskOperateTableRender.tsx @@ -442,8 +442,8 @@ const PublicAndExecutionOperateRender: FC = ({ // 任务列表 周期任务操作项 const ExecutionOperateRender: FC = ({ record, - localRefrech, - headerGroupValue, + // localRefrech, + // headerGroupValue, }) => { const [open, setOpen] = useSafeState({ action: false, @@ -455,27 +455,28 @@ const ExecutionOperateRender: FC = ({ const onEdit = async () => { if (record?.id) { await getTaskStartEditDispaly(record.id).then(({ data }) => { - const transformModalFormdata = { - ...data, - script_type: '端口与漏洞扫描', - params: { - ...data.params, - 'preset-protes': data?.params?.['preset-protes'] - ? (data?.params['preset-protes']) - .split(', ') - .map((item) => item.trim()) - : [], - timestamp: Array.isArray(data?.params?.timestamp) - ? [ - dayjs.unix(data?.params?.timestamp?.[0]), - dayjs.unix(data?.params?.timestamp?.[0]), - ] - : undefined, - execution_date: data?.params?.execution_date - ? `${dayjs.unix(data?.params?.execution_date)}` - : undefined, - }, - }; + console.log(data); + // const transformModalFormdata = { + // ...data, + // script_type: '端口与漏洞扫描', + // params: { + // ...data.params, + // 'preset-protes': data?.params?.['preset-protes'] + // ? (data?.params['preset-protes']) + // .split(', ') + // .map((item) => item.trim()) + // : [], + // timestamp: Array.isArray(data?.params?.timestamp) + // ? [ + // dayjs.unix(data?.params?.timestamp?.[0]), + // dayjs.unix(data?.params?.timestamp?.[0]), + // ] + // : undefined, + // execution_date: data?.params?.execution_date + // ? `${dayjs.unix(data?.params?.execution_date)}` + // : undefined, + // }, + // }; // itemsRef.current = transformModalFormdata; // runAsyncGroup(); }); diff --git a/src/pages/TaskScript/compoment/StartUpScriptModal.tsx b/src/pages/TaskScript/compoment/StartUpScriptModal.tsx index a3ef0e2..80c8f4a 100644 --- a/src/pages/TaskScript/compoment/StartUpScriptModal.tsx +++ b/src/pages/TaskScript/compoment/StartUpScriptModal.tsx @@ -1,6 +1,6 @@ import { WizardModal } from '@/compoments'; import { UseModalRefType } from '@/compoments/WizardModal/useModal'; -import { Button, Collapse, Form, Input, message } from 'antd'; +import { Button, Collapse, Form, message } from 'antd'; import { forwardRef, useImperativeHandle } from 'react'; import { useRequest, useSafeState } from 'ahooks'; import { randomString } from '@/utils';