diff --git a/src/pages/crontab/detail.tsx b/src/pages/crontab/detail.tsx new file mode 100644 index 00000000..c99e30d8 --- /dev/null +++ b/src/pages/crontab/detail.tsx @@ -0,0 +1,165 @@ +import React, { useEffect, useState } from 'react'; +import { + Modal, + message, + Input, + Form, + Button, + Card, + Tag, + Popover, + Divider, +} from 'antd'; +import { + ClockCircleOutlined, + CloseCircleOutlined, + FieldTimeOutlined, + Loading3QuartersOutlined, +} from '@ant-design/icons'; +import { CrontabStatus } from './index'; +import { diffTime } from '@/utils/date'; + +const contentList: any = { + log:
log content
, + script:script content
, +}; + +const tabList = [ + { + key: 'log', + tab: '日志', + }, + { + key: 'script', + tab: '脚本', + }, +]; + +const language = navigator.language || navigator.languages[0]; + +const CronDetailModal = ({ + cron = {}, + handleCancel, + visible, +}: { + cron?: any; + visible: boolean; + handleCancel: (needUpdate?: boolean) => void; +}) => { + const [activeTabKey, setActiveTabKey] = useState('log'); + + const onTabChange = (key: string) => { + setActiveTabKey(key); + }; + + return ( +