This commit is contained in:
mmc
2026-09-02 09:34:59 +08:00
parent 93d9bc648f
commit c2bf8adbec
3 changed files with 11 additions and 10 deletions

View File

@@ -401,6 +401,7 @@ const CesiumMap = React.forwardRef(({ ifClear, ifClearPlanLine, ifClearNavLine,
}
}
}
console.log('已发布的图层:', publishedLayers);
displayPublishedLayers(publishedLayers, baseUrl);
})
.catch(error => console.error('获取图层失败:', error));
@@ -1096,7 +1097,7 @@ const CesiumMap = React.forwardRef(({ ifClear, ifClearPlanLine, ifClearNavLine,
planLineRef.current = null;
}
viewer.scene.requestRender();
}
prevIfClearPlanLine.current = ifClearPlanLine;

View File

@@ -1,4 +1,4 @@
import React, { useState, useEffect, useRef } from 'react';
import React, { useState, useEffect, useRef } from 'react';
import { Card, Row, Col, Statistic, Button, Space, Tag, Typography, Table, message } from 'antd';
import {
CloudOutlined, ThunderboltOutlined, BarChartOutlined,
@@ -363,15 +363,15 @@ export default function StationDashboard() {
bodyStyle={{ padding: 0, position: 'relative', overflow: 'hidden', height: 500 }}
>
<div style={{ height: "100%", background: '#111827', borderRadius: 8, width: '100%', overflow: 'hidden', position: "relative" }}>
{/*<iframe
<iframe
src="https://pvs.satabot.com/?platform=web"
style={{ width: '100%', height: '100%', border: 'none', borderRadius: '8px', position: "absolute" }}
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
title={t('home.s20')}
/>*/}
/>
<CesiumMap from="other" />
{/*<CesiumMap from="other" />*/}
</div>
</Card>
@@ -471,7 +471,7 @@ export default function StationDashboard() {
{ name: t('home.solarPanel'), count: '320/320', icon: <AppstoreOutlined /> },
{ name: t('home.inverter'), count: '5/5', icon: <ThunderboltOutlined /> },
{ name: t('home.combinerBox'), count: '20/20', icon: <BranchesOutlined /> },
{ name: t('home.weatherStation'), count: '1/1', icon: <CloudOutlined /> },
{ name: t('home.WeatherStation'), count: '1/1', icon: <CloudOutlined /> },
{ name: t('devices.camera'), count: '12/12', icon: <VideoCameraOutlined /> },
{ name: t('home.environmentalSensor'), count: '8/8', icon: <ExperimentOutlined /> },
{ name: t('constants.uav'), count: '1/1', icon: <RocketOutlined /> },

View File

@@ -1,4 +1,4 @@
import React, { useState } from 'react';
import React, { useState } from 'react';
import {
Card, Row, Col, Table, Select, Input, Tag,
Typography, Button, Space, Avatar, Pagination
@@ -126,7 +126,7 @@ const RealTimeMonitorPage = () => {
bodyStyle={{ padding: 0, position: 'relative', height: 400, overflow: 'hidden' }}
>
<div style={{ height: "100%", background: '#111827', borderRadius: 8, width: '100%', overflow: 'hidden', position: "relative" }}>
{/*<iframe
<iframe
src="https://pvs.satabot.com/?platform=web"
style={{
width: '100%',
@@ -138,10 +138,10 @@ const RealTimeMonitorPage = () => {
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
title={t('home.s20')}
/>*/}
/>
<CesiumMap from="other" />
{/*<CesiumMap from="other" />*/}
</div>
</Card>