fix(admin,server): 修复 Dashboard 甘特图时间线与数据校验
Some checks failed
CI / check (pull_request) Failing after 1m54s

This commit is contained in:
2026-08-07 16:38:16 +08:00
parent 5f9566e26d
commit 8d4ebcf9c0
9 changed files with 160 additions and 19 deletions

View File

@@ -61,10 +61,11 @@ export const ClassroomHeatmapCard: React.FC<{
);
};
export const GanttCard: React.FC<{ data: GanttRoom[]; isMobile: boolean }> = ({
data,
isMobile,
}) => {
export const GanttCard: React.FC<{
data: GanttRoom[];
isMobile: boolean;
periodEnd?: string;
}> = ({ data, isMobile, periodEnd }) => {
const vp = useInViewport('200px');
return (
<LazySection
@@ -74,7 +75,7 @@ export const GanttCard: React.FC<{ data: GanttRoom[]; isMobile: boolean }> = ({
>
{data.length > 0 ? (
<ReactECharts
option={buildGanttOption(data)}
option={buildGanttOption(data, { periodEnd })}
style={{ width: '100%', height: isMobile ? 300 : 450 }}
/>
) : (