import { type Schedule, type CronPreview } from "../../services/api"; import { Settings } from "lucide-react"; import { formatTime } from "./utils"; type ScheduleForm = { scheduleName: string; description: string; triggerType: "manual" | "cron" | "api"; cronExpression: string; timezone: string; enabled: boolean; maxConcurrency: string; failurePolicy: "stop" | "continue"; }; export function ScheduleInspector({ schedule, form, cronResult, busy, onChange, onPreview, onSave, }: { schedule: Schedule | null; form: ScheduleForm; cronResult: CronPreview | null; busy: boolean; onChange: (form: ScheduleForm) => void; onPreview: () => void; onSave: () => void; }) { if (!schedule) { return (
调度属性

选中调度方案后可配置触发方式、Cron 和执行策略。

); } return (

基本信息