diff --git a/web/app/dashboard/agent-team-schedules/page.tsx b/web/app/dashboard/agent-team-schedules/page.tsx index 7ad5440..17d7c3f 100644 --- a/web/app/dashboard/agent-team-schedules/page.tsx +++ b/web/app/dashboard/agent-team-schedules/page.tsx @@ -8,6 +8,7 @@ import { CalendarSearchIcon, ChevronLeftIcon, ChevronRightIcon, + LayersIcon, ListIcon, MoreHorizontalIcon, PlusIcon, @@ -49,6 +50,7 @@ import { type UpdateAdminAgentTeamSchedulePayload, } from "@/lib/api/admin" import { formatDateTime } from "@/lib/utils" +import { BatchScheduleDialog } from "./_components/batch-schedule-dialog" import { ScheduleCalendar } from "./_components/calendar" import { addDays, @@ -89,6 +91,7 @@ export default function DashboardAgentTeamSchedulesPage() { const [saving, setSaving] = useState(false) const [actionLoadingId, setActionLoadingId] = useState(null) const [dialogOpen, setDialogOpen] = useState(false) + const [batchDialogOpen, setBatchDialogOpen] = useState(false) const [editingItem, setEditingItem] = useState(null) const [dialogDefaults, setDialogDefaults] = useState | null>(null) const [teams, setTeams] = useState([]) @@ -232,6 +235,10 @@ export default function DashboardAgentTeamSchedulesPage() { } } + async function handleBatchSuccess() { + await refreshActiveView() + } + async function handleDeleteById(id: number) { setActionLoadingId(id) try { @@ -374,6 +381,10 @@ export default function DashboardAgentTeamSchedulesPage() { 刷新 +