Skip to content

Commit

Permalink
fix: 构建问题修复
Browse files Browse the repository at this point in the history
  • Loading branch information
EmbraceAn authored and Go0p committed Nov 14, 2024
1 parent 13de6e6 commit 07fafe8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
47 changes: 24 additions & 23 deletions src/pages/TaskPageList/compoment/TaskOperateTableRender.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@ const PublicAndExecutionOperateRender: FC<TCommonTasksColumnsRenderProps> = ({
// 任务列表 周期任务操作项
const ExecutionOperateRender: FC<TCommonTasksColumnsRenderProps> = ({
record,
localRefrech,
headerGroupValue,
// localRefrech,
// headerGroupValue,
}) => {
const [open, setOpen] = useSafeState({
action: false,
Expand All @@ -455,27 +455,28 @@ const ExecutionOperateRender: FC<TCommonTasksColumnsRenderProps> = ({
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();
});
Expand Down
2 changes: 1 addition & 1 deletion src/pages/TaskScript/compoment/StartUpScriptModal.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit 07fafe8

Please sign in to comment.