From dedb4e64b12e5862fd4249f4f2fb66e99912b67d Mon Sep 17 00:00:00 2001 From: mlogclub Date: Wed, 29 Apr 2026 20:16:17 +0800 Subject: [PATCH] feat: integrate batch schedule dialog --- web/app/dashboard/agent-team-schedules/page.tsx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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() { 刷新 +