diff --git a/web/src/components/approval-records.tsx b/web/src/components/approval-records.tsx index d08711f..6c92471 100644 --- a/web/src/components/approval-records.tsx +++ b/web/src/components/approval-records.tsx @@ -17,6 +17,7 @@ import { } from "lucide-react"; import { toast } from "sonner"; +import { DateSelect } from "@/components/date-select"; import { SideQuestionButton, SideQuestionWorkspace } from "@/components/side-question-workspace"; import { TablePagination } from "@/components/table-pagination"; import { Alert, AlertDescription } from "@/components/ui/alert"; @@ -963,21 +964,23 @@ export function ApprovalRecords({ taskId }: { taskId?: string }) { - 申请时间从 - 审批时间从 + changeDate("from", event.target.value)} + onValueChange={(value) => changeDate("from", value)} + optional + placeholder="选择开始日期" + aria-label="审批时间从" /> - 申请时间至 - 审批时间至 + changeDate("to", event.target.value)} + onValueChange={(value) => changeDate("to", value)} + optional + placeholder="选择结束日期" + aria-label="审批时间至" />