feat(ui): 统一面板空状态引导

This commit is contained in:
2026-07-30 14:34:43 +08:00
parent 8836549697
commit 04557b9363
21 changed files with 400 additions and 435 deletions
@@ -35,6 +35,7 @@ import {
type PipeDiameterMap,
} from "./schemePipeDiameters";
import { SchemeRecord, ValveIsolationResult } from "./types";
import PanelEmptyState from "@components/olmap/common/PanelEmptyState";
interface AnalysisReportProps {
scheme: SchemeRecord | null;
@@ -516,15 +517,11 @@ const AnalysisReport: React.FC<AnalysisReportProps> = ({
if (!scheme) {
return (
<Box className="flex h-full flex-col items-center justify-center px-6 text-center">
<DescriptionOutlined sx={{ mb: 2, fontSize: 52, color: "#94a3b8" }} />
<Typography variant="h6" className="font-bold text-gray-700">
</Typography>
<Typography variant="body2" className="mt-2 text-gray-500">
</Typography>
</Box>
<PanelEmptyState
icon={<DescriptionOutlined />}
title="尚未选择分析方案"
description="请在“方案查询”中打开一个方案,再查看分析报告。"
/>
);
}