修改
This commit is contained in:
@@ -401,6 +401,7 @@ const CesiumMap = React.forwardRef(({ ifClear, ifClearPlanLine, ifClearNavLine,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
console.log('已发布的图层:', publishedLayers);
|
||||||
displayPublishedLayers(publishedLayers, baseUrl);
|
displayPublishedLayers(publishedLayers, baseUrl);
|
||||||
})
|
})
|
||||||
.catch(error => console.error('获取图层失败:', error));
|
.catch(error => console.error('获取图层失败:', error));
|
||||||
|
|||||||
@@ -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 { Card, Row, Col, Statistic, Button, Space, Tag, Typography, Table, message } from 'antd';
|
||||||
import {
|
import {
|
||||||
CloudOutlined, ThunderboltOutlined, BarChartOutlined,
|
CloudOutlined, ThunderboltOutlined, BarChartOutlined,
|
||||||
@@ -363,15 +363,15 @@ export default function StationDashboard() {
|
|||||||
bodyStyle={{ padding: 0, position: 'relative', overflow: 'hidden', height: 500 }}
|
bodyStyle={{ padding: 0, position: 'relative', overflow: 'hidden', height: 500 }}
|
||||||
>
|
>
|
||||||
<div style={{ height: "100%", background: '#111827', borderRadius: 8, width: '100%', overflow: 'hidden', position: "relative" }}>
|
<div style={{ height: "100%", background: '#111827', borderRadius: 8, width: '100%', overflow: 'hidden', position: "relative" }}>
|
||||||
{/*<iframe
|
<iframe
|
||||||
src="https://pvs.satabot.com/?platform=web"
|
src="https://pvs.satabot.com/?platform=web"
|
||||||
style={{ width: '100%', height: '100%', border: 'none', borderRadius: '8px', position: "absolute" }}
|
style={{ width: '100%', height: '100%', border: 'none', borderRadius: '8px', position: "absolute" }}
|
||||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||||
allowFullScreen
|
allowFullScreen
|
||||||
title={t('home.s20')}
|
title={t('home.s20')}
|
||||||
/>*/}
|
/>
|
||||||
|
|
||||||
<CesiumMap from="other" />
|
{/*<CesiumMap from="other" />*/}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
@@ -471,7 +471,7 @@ export default function StationDashboard() {
|
|||||||
{ name: t('home.solarPanel'), count: '320/320', icon: <AppstoreOutlined /> },
|
{ name: t('home.solarPanel'), count: '320/320', icon: <AppstoreOutlined /> },
|
||||||
{ name: t('home.inverter'), count: '5/5', icon: <ThunderboltOutlined /> },
|
{ name: t('home.inverter'), count: '5/5', icon: <ThunderboltOutlined /> },
|
||||||
{ name: t('home.combinerBox'), count: '20/20', icon: <BranchesOutlined /> },
|
{ 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('devices.camera'), count: '12/12', icon: <VideoCameraOutlined /> },
|
||||||
{ name: t('home.environmentalSensor'), count: '8/8', icon: <ExperimentOutlined /> },
|
{ name: t('home.environmentalSensor'), count: '8/8', icon: <ExperimentOutlined /> },
|
||||||
{ name: t('constants.uav'), count: '1/1', icon: <RocketOutlined /> },
|
{ name: t('constants.uav'), count: '1/1', icon: <RocketOutlined /> },
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import {
|
import {
|
||||||
Card, Row, Col, Table, Select, Input, Tag,
|
Card, Row, Col, Table, Select, Input, Tag,
|
||||||
Typography, Button, Space, Avatar, Pagination
|
Typography, Button, Space, Avatar, Pagination
|
||||||
@@ -126,7 +126,7 @@ const RealTimeMonitorPage = () => {
|
|||||||
bodyStyle={{ padding: 0, position: 'relative', height: 400, overflow: 'hidden' }}
|
bodyStyle={{ padding: 0, position: 'relative', height: 400, overflow: 'hidden' }}
|
||||||
>
|
>
|
||||||
<div style={{ height: "100%", background: '#111827', borderRadius: 8, width: '100%', overflow: 'hidden', position: "relative" }}>
|
<div style={{ height: "100%", background: '#111827', borderRadius: 8, width: '100%', overflow: 'hidden', position: "relative" }}>
|
||||||
{/*<iframe
|
<iframe
|
||||||
src="https://pvs.satabot.com/?platform=web"
|
src="https://pvs.satabot.com/?platform=web"
|
||||||
style={{
|
style={{
|
||||||
width: '100%',
|
width: '100%',
|
||||||
@@ -138,10 +138,10 @@ const RealTimeMonitorPage = () => {
|
|||||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||||
allowFullScreen
|
allowFullScreen
|
||||||
title={t('home.s20')}
|
title={t('home.s20')}
|
||||||
/>*/}
|
/>
|
||||||
|
|
||||||
|
|
||||||
<CesiumMap from="other" />
|
{/*<CesiumMap from="other" />*/}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
Reference in New Issue
Block a user