映射地图 切换到 场站
This commit is contained in:
@@ -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,
|
||||
@@ -371,7 +371,7 @@ export default function StationDashboard() {
|
||||
title={t('home.s20')}
|
||||
/>*/}
|
||||
|
||||
<CesiumMap from="other" />
|
||||
<CesiumMap from="other" mapLayer={currentStation?.siteMapName} />
|
||||
|
||||
</div>
|
||||
</Card>
|
||||
|
||||
@@ -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
|
||||
@@ -17,6 +17,7 @@ import bgMain from '../assets/images/bgmain.jpg';
|
||||
import { UniversalBarChart, UniversalLineChart, UniversalPieChart } from '../components/recharts';
|
||||
import CesiumMap from '../components/Map';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useSelector } from 'react-redux';
|
||||
|
||||
const { Option } = Select;
|
||||
const { Search } = Input;
|
||||
@@ -47,6 +48,7 @@ const heatmapColors = ['#52c41a', '#1890ff', '#faad14', '#1890ff', '#52c41a'];
|
||||
|
||||
const RealTimeMonitorPage = () => {
|
||||
const { t } = useTranslation();
|
||||
const { currentStation } = useSelector((state: any) => state.station);
|
||||
const [filterStatus, setFilterStatus] = useState('all');
|
||||
const [filterType, setFilterType] = useState(undefined);
|
||||
const [searchName, setSearchName] = useState('');
|
||||
@@ -141,7 +143,7 @@ const RealTimeMonitorPage = () => {
|
||||
/>*/}
|
||||
|
||||
|
||||
<CesiumMap from="other" />
|
||||
<CesiumMap from="other" mapLayer={currentStation?.siteMapName} />
|
||||
|
||||
</div>
|
||||
</Card>
|
||||
|
||||
Reference in New Issue
Block a user