新增健康风险分析页面(模板)
This commit is contained in:
5
src/app/(main)/health-risk-analysis/loading.tsx
Normal file
5
src/app/(main)/health-risk-analysis/loading.tsx
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import { MapSkeleton } from "@components/loading/MapSkeleton";
|
||||||
|
|
||||||
|
export default function Loading() {
|
||||||
|
return <MapSkeleton />;
|
||||||
|
}
|
||||||
16
src/app/(main)/health-risk-analysis/page.tsx
Normal file
16
src/app/(main)/health-risk-analysis/page.tsx
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import MapComponent from "@app/OlMap/MapComponent";
|
||||||
|
import Timeline from "@app/OlMap/Controls/Timeline";
|
||||||
|
import MapToolbar from "@app/OlMap/Controls/Toolbar";
|
||||||
|
|
||||||
|
export default function Home() {
|
||||||
|
return (
|
||||||
|
<div className="relative w-full h-full overflow-hidden">
|
||||||
|
<MapComponent>
|
||||||
|
<MapToolbar queryType="realtime" />
|
||||||
|
<Timeline />
|
||||||
|
</MapComponent>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -489,7 +489,7 @@ const SCADADataPanel: React.FC<SCADADataPanelProps> = ({
|
|||||||
{ key: "clean", name: "清洗值" },
|
{ key: "clean", name: "清洗值" },
|
||||||
{ key: "raw", name: "监测值" },
|
{ key: "raw", name: "监测值" },
|
||||||
{ key: "sim", name: "模拟值" },
|
{ key: "sim", name: "模拟值" },
|
||||||
{ key: "scheme_sim", name: "策略模拟值" },
|
{ key: "scheme_sim", name: "方案模拟值" },
|
||||||
];
|
];
|
||||||
|
|
||||||
suffixes.forEach(({ key, name }) => {
|
suffixes.forEach(({ key, name }) => {
|
||||||
@@ -595,7 +595,7 @@ const SCADADataPanel: React.FC<SCADADataPanelProps> = ({
|
|||||||
? "监测值"
|
? "监测值"
|
||||||
: suffix === "sim"
|
: suffix === "sim"
|
||||||
? "模拟"
|
? "模拟"
|
||||||
: "策略模拟";
|
: "方案模拟";
|
||||||
|
|
||||||
series.push({
|
series.push({
|
||||||
name: `${id} (${displayName})`,
|
name: `${id} (${displayName})`,
|
||||||
|
|||||||
Reference in New Issue
Block a user