diff --git a/public/assets/sp1.png b/public/assets/sp1.png
new file mode 100644
index 0000000..da554fe
Binary files /dev/null and b/public/assets/sp1.png differ
diff --git a/public/assets/sp2.png b/public/assets/sp2.png
new file mode 100644
index 0000000..b5b9879
Binary files /dev/null and b/public/assets/sp2.png differ
diff --git a/public/assets/ssflow.png b/public/assets/ssflow.png
new file mode 100644
index 0000000..4d4fd60
Binary files /dev/null and b/public/assets/ssflow.png differ
diff --git a/public/assets/zhdbl.jpg b/public/assets/zhdbl.jpg
new file mode 100644
index 0000000..faa3558
Binary files /dev/null and b/public/assets/zhdbl.jpg differ
diff --git a/public/mapbox/sprite@2x.json b/public/mapbox/sprite@2x.json
index c88673f..75de298 100644
--- a/public/mapbox/sprite@2x.json
+++ b/public/mapbox/sprite@2x.json
@@ -394,7 +394,15 @@
"水厂": {
"width": 32,
"height": 32,
- "x": 0,
+ "x": -3,
+ "y": 315,
+ "pixelRatio": 0.6,
+ "visible": true
+ },
+ "水厂q": {
+ "width": 32,
+ "height": 32,
+ "x": 28,
"y": 315,
"pixelRatio": 0.6,
"visible": true
@@ -406,5 +414,13 @@
"y": 0,
"pixelRatio": 0.6,
"visible": true
- }
+ } ,
+ "水源地q": {
+ "width": 32,
+ "height": 32,
+ "x": 59,
+ "y": 315,
+ "pixelRatio": 0.6,
+ "visible": true
+ }
}
\ No newline at end of file
diff --git a/public/mapbox/sprite@2x.png b/public/mapbox/sprite@2x.png
index 5384240..96e20c7 100644
Binary files a/public/mapbox/sprite@2x.png and b/public/mapbox/sprite@2x.png differ
diff --git a/src/models/map/index.js b/src/models/map/index.js
index d33fbf5..5425cf3 100644
--- a/src/models/map/index.js
+++ b/src/models/map/index.js
@@ -413,7 +413,11 @@ const map = {
RoadLayer: true,
RivlLayer: true,
ShuichangLayer:true,
+ ShuichangQLayer: true,
+ ShuiyuandiQLayer:true,
ShuizhiLayer:true,
+ ShuiyuandiLayer: true,
+
};
Object.keys(DCPJ_TYPES).forEach(key => {
layerVisible['Dcpj_' + key + 'Layer'] = false;
@@ -449,6 +453,21 @@ const map = {
Object.keys(DCPJ_TYPES).forEach(key => {
layerVisible['Dcpj_' + key + 'Layer'] = false;
});
+ }else if ( id === 307) {
+ layerVisible = {
+ RealDrpLayer: false,
+ RealHDLayer: true,
+ RealSkLayer: true,
+ BxSkLayer: false,
+ FzdxLayer: false,
+ WataLayer: false,
+ AdcdLayer: true,
+ RoadLayer: true,
+ RivlLayer: true,
+ };
+ Object.keys(DCPJ_TYPES).forEach(key => {
+ layerVisible['Dcpj_' + key + 'Layer'] = false;
+ });
} else if (id == 501) {
layerVisible = {
RealDrpLayer: true,
diff --git a/src/models/map/layout.js b/src/models/map/layout.js
index 82bd374..4245c64 100644
--- a/src/models/map/layout.js
+++ b/src/models/map/layout.js
@@ -124,8 +124,8 @@ export default function calcLayout(view, rightStack, hidePanels) {
} else if (view === 302) {
left = [
{ key: '天气' },
- { key: '进水监测',style: { height: '13rem'} },
- { key: '出水监测',style: { height: '16rem'} },
+ { key: '水厂水质监测',style: { height: '16rem'} },
+ { key: '报警分析',style: { height: '28rem'} },
];
} else if (view === 303) {
left = [
@@ -151,7 +151,8 @@ export default function calcLayout(view, rightStack, hidePanels) {
}
else if (view === 307) {
left = [
- { key: '预案库管理', style: { height: '50rem' } },
+ { key: '应急事件', style: { height: '20rem'} },
+ { key: '应急指挥调度', style: { height: '30rem'} },
];
// leftFullHeight = true;
}else if (view === 501) {
@@ -334,8 +335,10 @@ export default function calcLayout(view, rightStack, hidePanels) {
} else if (view === 302) {
right = [
// { key: '警报' },
- { key: '水厂水质监测',style: { height: '16rem'} },
- { key: '报警分析',style: { height: '18rem'} },
+ { key: '预警列表',style: { height: '20rem'} },
+ // { key: '进水监测',style: { height: '13rem'} },
+ // { key: '出水监测',style: { height: '16rem'} },
+
];
} else if (view === 303) {
right = [
@@ -359,8 +362,8 @@ export default function calcLayout(view, rightStack, hidePanels) {
];
rightFullHeight = true;
}else if(view === 307) {
- right = [
- { key: '应急指挥调度', style: { height: '40rem'} },
+ right = [
+ { key: '预案库管理', style: { height: '47rem' } },
];
// rightFullHeight = true;
}
diff --git a/src/views/Home/InfoDlg/HDStDlg/index.js b/src/views/Home/InfoDlg/HDStDlg/index.js
index 77c26f6..971e4e3 100644
--- a/src/views/Home/InfoDlg/HDStDlg/index.js
+++ b/src/views/Home/InfoDlg/HDStDlg/index.js
@@ -12,6 +12,7 @@ import DpCloseButton from '../../../../layouts/mui/DpCloseButton';
import DrpSearch from '../../components/DrpSearch';
import DrpStAround from '../../components/DrpStAround';
import ZrrPlan from './zrrPlan'
+import Sjjg from '../../components/Sksjjg';
function HDStDlg({ record, onClose }) {
@@ -34,6 +35,7 @@ function HDStDlg({ record, onClose }) {
+ {record.events && }
@@ -42,6 +44,8 @@ function HDStDlg({ record, onClose }) {
{value === 1 && }
{value === 2 && }
{value === 3 && }
+ {value === 4 && }
+
diff --git a/src/views/Home/InfoDlg/ShuiChangDlg/Shuizhijc.js b/src/views/Home/InfoDlg/ShuiChangDlg/Shuizhijc.js
new file mode 100644
index 0000000..82d37e4
--- /dev/null
+++ b/src/views/Home/InfoDlg/ShuiChangDlg/Shuizhijc.js
@@ -0,0 +1,280 @@
+import { Grid, withStyles, TableCell } from '@material-ui/core';
+import React from 'react';
+import useRequest from '../../../../utils/useRequest';
+import { skInfo } from '../../../../models/_/search';
+import { adnmCun, adnmZhen } from '../../../../models/_/adcd';
+import { Person } from '@material-ui/icons';
+import PanelBox from '../../components/PanelBox';
+import { makeStyles } from '@material-ui/core/styles';
+import Table from '@material-ui/core/Table';
+import TableContainer from '@material-ui/core/TableContainer';
+import TableBody from '@material-ui/core/TableBody';
+import TableHead from '@material-ui/core/TableHead';
+import TableRow from '@material-ui/core/TableRow';
+// import DpTableCell from '../../../../layouts/mui/DpTableCell';
+import DpTableRow from '../../../../layouts/mui/DpTableRow';
+import { DatePicker } from 'antd';
+import moment from 'moment';
+import ReactECharts from 'echarts-for-react';
+
+
+const { RangePicker } = DatePicker;
+const useStyles = makeStyles({
+ tableContainer: {
+ background: '#182d42', // 设置表格容器的背景颜色
+ },
+ item: {
+ '& .MuiGrid-item': {
+ '& [class*="makeStyles-title"]': {
+ color: '#fff',
+ backgroundColor: '#104175',
+ },
+ },
+ },
+});
+const DpTableCell = withStyles({
+ head: {
+ backgroundColor: '#104175',
+ color: '#fff',
+ fontSize: '1rem',
+ padding: '0.5rem 0.3rem !important',
+ },
+ body: {
+ color: '#fff',
+ fontSize: '0.9rem',
+ padding: '0.7rem 0.3rem !important',
+ borderBottom: 'none',
+ position: "relative"
+ },
+})(TableCell);
+function SkInfo() {
+ const classes = useStyles();
+ const data = [
+ { time: '06-08 12:00', turbidity: 0.3, chlorine: 0.5, ph: 7.2 },
+ { time: '06-08 11:00', turbidity: 0.2, chlorine: 0.4, ph: 7.1 },
+ { time: '06-08 10:00', turbidity: 0.4, chlorine: 0.6, ph: 7.3 },
+ { time: '06-08 09:00', turbidity: 0.3, chlorine: 0.5, ph: 7.2 },
+ { time: '06-08 08:00', turbidity: 0.2, chlorine: 0.4, ph: 7.0 },
+ { time: '06-08 07:00', turbidity: 0.4, chlorine: 0.5, ph: 7.4 },
+ { time: '06-08 06:00', turbidity: 0.3, chlorine: 0.6, ph: 7.2 },
+ { time: '06-08 05:00', turbidity: 0.2, chlorine: 0.5, ph: 7.1 },
+ { time: '06-08 04:00', turbidity: 0.3, chlorine: 0.4, ph: 7.3 },
+ { time: '06-08 03:00', turbidity: 0.4, chlorine: 0.5, ph: 7.2 },
+ { time: '06-08 02:00', turbidity: 0.3, chlorine: 0.6, ph: 7.1 },
+ { time: '06-08 01:00', turbidity: 0.2, chlorine: 0.5, ph: 7.3 },
+ { time: '06-08 00:00', turbidity: 0.3, chlorine: 0.4, ph: 7.2 },
+ { time: '06-07 23:00', turbidity: 0.4, chlorine: 0.5, ph: 7.1 },
+ { time: '06-07 22:00', turbidity: 0.3, chlorine: 0.6, ph: 7.3 },
+ { time: '06-07 21:00', turbidity: 0.2, chlorine: 0.5, ph: 7.2 },
+ { time: '06-07 20:00', turbidity: 0.3, chlorine: 0.4, ph: 7.1 },
+ { time: '06-07 19:00', turbidity: 0.4, chlorine: 0.5, ph: 7.3 },
+ { time: '06-07 18:00', turbidity: 0.3, chlorine: 0.6, ph: 7.2 },
+ { time: '06-07 17:00', turbidity: 0.2, chlorine: 0.5, ph: 7.1 },
+ { time: '06-07 16:00', turbidity: 0.3, chlorine: 0.4, ph: 7.3 },
+ { time: '06-07 15:00', turbidity: 0.4, chlorine: 0.5, ph: 7.2 },
+ { time: '06-07 14:00', turbidity: 0.3, chlorine: 0.6, ph: 7.1 },
+ { time: '06-07 13:00', turbidity: 0.2, chlorine: 0.5, ph: 7.3 },
+ { time: '06-07 12:00', turbidity: 0.3, chlorine: 0.4, ph: 7.2 }
+ ];
+const option = {
+
+ tooltip: {
+ trigger: 'axis',
+ axisPointer: {
+ type: 'line'
+ }
+ },
+ legend: {
+ data: ['PH值', '浊度(NTU)', '余氯(mg/L)'],
+ textStyle: {
+ color: '#fff'
+ }
+ },
+ grid: {
+ left: '10%',
+ right: '10%',
+ bottom: '0%',
+ containLabel: true
+ },
+ xAxis: {
+ type: 'category',
+ boundaryGap: false,
+ data: data.map(item => item.time),
+ axisLabel: {
+ color: '#fff',
+ rotate: 45,
+ interval: 1,
+ fontSize: 14
+ },
+ axisLine: {
+ lineStyle: {
+ color: '#fff'
+ }
+ },
+ splitLine: {
+ show: true,
+ lineStyle: {
+ color: 'rgba(255, 255, 255, 0.1)',
+ type: 'dashed'
+ }
+ }
+ },
+ yAxis: [
+ {
+ name: 'PH值',
+ type: 'value',
+ position: 'left',
+ offset: 0,
+ nameTextStyle: {
+ color: '#fac858'
+ },
+ axisLabel: {
+ color: '#fac858'
+ },
+ axisLine: {
+ lineStyle: {
+ color: '#fac858'
+ }
+ },
+ splitLine: {
+ lineStyle: {
+ color: 'rgba(255, 255, 255, 0.1)',
+ type: 'dashed'
+ }
+ }
+ },
+ {
+ name: '浊度(NTU)',
+ type: 'value',
+ position: 'right',
+ offset: 60,
+ nameTextStyle: {
+ color: '#ee6666'
+ },
+ axisLabel: {
+ color: '#ee6666'
+ },
+ axisLine: {
+ lineStyle: {
+ color: '#ee6666'
+ }
+ },
+ splitLine: {
+ show: false
+ }
+ },
+ {
+ name: '余氯(mg/L)',
+ type: 'value',
+ position: 'right',
+ offset: 0,
+ nameTextStyle: {
+ color: '#73c0de'
+ },
+ axisLabel: {
+ color: '#73c0de'
+ },
+ axisLine: {
+ lineStyle: {
+ color: '#73c0de'
+ }
+ },
+ splitLine: {
+ show: false
+ }
+ }
+ ],
+ series: [
+ {
+ name: 'PH值',
+ type: 'line',
+ smooth: true,
+ yAxisIndex: 0,
+ data: data.map(item => item.ph),
+ itemStyle: {
+ color: '#fac858'
+ }
+ },
+ {
+ name: '浊度(NTU)',
+ type: 'line',
+ smooth: true,
+ yAxisIndex: 1,
+ data: data.map(item => item.turbidity),
+ itemStyle: {
+ color: '#ee6666'
+ }
+ },
+ {
+ name: '余氯(mg/L)',
+ type: 'line',
+ smooth: true,
+ yAxisIndex: 2,
+ data: data.map(item => item.chlorine),
+ itemStyle: {
+ color: '#73c0de'
+ }
+ }
+ ]
+ };
+ return (
+
diff --git a/src/views/Home/panels/Bjfx/chart.js b/src/views/Home/panels/Bjfx/chart.js
index 53e0088..8780fc4 100644
--- a/src/views/Home/panels/Bjfx/chart.js
+++ b/src/views/Home/panels/Bjfx/chart.js
@@ -1,171 +1,137 @@
-import React, { useMemo } from 'react';
-import echarts from 'echarts/lib/echarts';
-import ReactEcharts from 'echarts-for-react';
+import React from 'react';
+import ReactECharts from 'echarts-for-react';
+import { makeStyles } from '@material-ui/core/styles';
+const useStyles = makeStyles({
+ chartContainer: {
+ width: '100%',
+ height: '400px',
+ // backgroundColor: '#0d1117',
+ }
+});
-const pallete = [
- ['#177ab3', '#51c3e7'],
- ['#9976dc', '#c792ee'],
- ['#94a1eb', '#a7caf8'],
- ['#7ae5c3', '#c9f4ea'],
- ['#c7dca5', '#f5fcd5'],
- ['#7988d9', '#9dc6f1'],
- ['#d9ed8f', '#d3f89b'],
-];
-
-const palleteLen = pallete.length;
-
-
-const AreaDrpChart = () => {
- const x = ['清泉水厂','南湖水厂','东郊水厂','西山水厂']
- const y1 = [612, 601, 630, 640]
- const y2 = [624, 645, 665, 656]
-
-
-
- var option = {
+const WaterSourceChart = () => {
+ const classes = useStyles();
+ const option = {
+ // backgroundColor: '#0d1117',
tooltip: {
trigger: 'axis',
axisPointer: {
- type: 'shadow',
- label: {
- show: false
- }
+ type: 'shadow'
},
- valueFormatter: (value) => value + ' 万m³'
- },
- grid: {
- top: 42,
- left: 50,
- right: 0,
- bottom: 27,
+ formatter: function (params) {
+ let total = 0;
+ let result = `${params[0].axisValue}
`;
+
+ // 按数值从大到小排序并只显示有预警的水源地
+ const sortedParams = params
+ .filter(param => param.value > 0)
+ .sort((a, b) => b.value - a.value);
+
+ sortedParams.forEach(param => {
+ total += param.value;
+ result += `${param.seriesName}: ${param.value}
`;
+ });
+
+ result += `总计: ${total}`;
+ return result;
+ }
},
legend: {
- data: ['设计产能', '实际产水'],
- top: '8',
- left: 'center',
- itemWidth: 11,//11,
- itemHeight: 11,//11,
+ data: ['浮桥河水厂', '三河口水厂', '刘集水厂', '杉林河水厂', ],
textStyle: {
- color: '#B9BFC9',
- fontSize: 12,//12
- }
+ color: '#c9d1d9'
+ },
+ top: 10
},
- xAxis: [
- {
- type: 'category',
- data: x,
- splitLine: {
- show: true, //隐藏X轴轴线
- lineStyle: {
- color: 'rgba(255,255,255,0.2)',
- width: 0
- }
- },
- axisLabel: {
- show: true,
- textStyle: {
- color: '#B9BFC9' //X轴文字颜色
- },
- // rotate: 20, // 角度值:Number
- fontSize: 10,//10
- },
- axisLine: {
- show: true, //隐藏X轴轴线
- lineStyle: {
- color: 'rgba(255,255,255,0.2)',
- width: 0
- }
- },
- axisTick: {
- show: true,
+ grid: {
+ left: '3%',
+ right: '4%',
+ bottom: '3%',
+ top: '15%',
+ containLabel: true
+ },
+ xAxis: {
+ type: 'category',
+ data: ['2025-06-01', '2025-06-02', '2025-06-03', '2025-06-04', '2025-06-05', '2025-06-06'],
+ axisLabel: {
+ color: '#fff',
+ rotate: 45
+ },
+ axisLine: {
+ lineStyle: {
+ color: '#c9d1d9'
}
}
- ],
- yAxis: [
- {
- type: 'value',
- position: 'left',
- name: '产水量m³',
- nameTextStyle: {
- color: '#B9BFC9',
- fontSize: 10,//10,
- padding: [0, 0, 0, -30],//[0, 0, 0, -30]//控制y轴标题位置
- },
- nameGap: 17,
-
- splitLine: {
- show: true,
- lineStyle: {
- width: 1,
- color: 'rgba(255,255,255,0.2)'
- }
- },
- axisLabel: {
- show: true,
- textStyle: {
- color: '#B9BFC9',
- fontSize: 11,//11
- }
- },
- axisLine: {
- show: false
- },
- axisTick: {
- show: false,
- },
- min: 200,
- max: 800,
+ },
+ yAxis: {
+ type: 'value',
+ name: '预警数量',
+ nameTextStyle: {
+ color: '#fff'
+ },
+ axisLabel: {
+ color: '#fff'
+ },
+ axisLine: {
+ lineStyle: {
+ color: '#c9d1d9'
+ }
+ },
+ splitLine: {
+ lineStyle: {
+ color: '#30363d',
+ type: 'dashed'
+ }
}
- ],
+ },
series: [
{
- name: '设计产能',
+ name: '浮桥河水厂',
type: 'bar',
- barWidth: 10,
- data: y1,
- itemStyle: {
- normal: {
- color: '#56b38b'
- },
- },
- // label: {
- // show: true,
- // position: 'top',
- // color: '#bbb',
- // fontSize: 12,
- // textShadowBlur: 4,
- // textShadowColor: '#6ab',
- // },
+ barWidth: 30,
+ stack: 'total',
+
+ data: [45, 52, 65, 70, 75, 79]
},
{
- name: '实际产水',
+ name: '三河口水厂',
type: 'bar',
- barWidth: 10,
- data: y2,
- itemStyle: {
- normal: {
- color: '#3860d0'
- },
- },
- // label: {
- // show: true,
- // position: 'top',
- // color: '#bbb',
- // fontSize: 12,
- // textShadowBlur: 4,
- // textShadowColor: '#6ab',
- // },
- }
- ]
+ barWidth: 30,
+ stack: 'total',
+
+ data: [15, 18, 20, 22, 23, 24]
+ },
+ {
+ name: '刘集水厂',
+ type: 'bar',
+ barWidth: 30,
+ stack: 'total',
+
+ data: [10, 12, 14, 16, 17, 19]
+ },
+ {
+ name: '杉林河水厂',
+ type: 'bar',
+ barWidth: 30,
+ stack: 'total',
+
+ data: [8, 10, 12, 14, 15, 17]
+ },
+ ],
+ color: ['#fac858', '#ee6666', '#73c0de', '#3ba272']
+
};
return (
-
- )
-}
+
+
+
+ );
+};
-export default React.memo(AreaDrpChart);
+export default WaterSourceChart;
\ No newline at end of file
diff --git a/src/views/Home/panels/Bjfx/chart1.js b/src/views/Home/panels/Bjfx/chart1.js
new file mode 100644
index 0000000..548542d
--- /dev/null
+++ b/src/views/Home/panels/Bjfx/chart1.js
@@ -0,0 +1,140 @@
+import React from 'react';
+import ReactECharts from 'echarts-for-react';
+
+const WaterSourceChart = () => {
+ const dates = ['2025-06-01', '2025-06-02', '2025-06-03', '2025-06-04', '2025-06-05', '2025-06-06'];
+ const waterSources = ['浮桥河水库', '长冲水库', '葡萄冲水库', '二五冲水库'];
+
+ // 使用固定的示例数据
+ const series = [
+ {
+ name: '浮桥河水库',
+ type: 'bar',
+ stack: 'total',
+ barWidth: 30,
+ emphasis: {
+ focus: 'series'
+ },
+ data: [15, 18, 12, 20, 16, 22]
+ },
+ {
+ name: '长冲水库',
+ type: 'bar',
+ stack: 'total',
+ barWidth: 30,
+ emphasis: {
+ focus: 'series'
+ },
+ data: [10, 12, 8, 15, 11, 14]
+ },
+ {
+ name: '葡萄冲水库',
+ type: 'bar',
+ stack: 'total',
+ barWidth: 30,
+ emphasis: {
+ focus: 'series'
+ },
+ data: [8, 10, 6, 12, 9, 11]
+ },
+ {
+ name: '二五冲水库',
+ type: 'bar',
+ stack: 'total',
+ barWidth: 30,
+ emphasis: {
+ focus: 'series'
+ },
+ data: [5, 7, 4, 8, 6, 9]
+ }
+ ];
+
+ const option = {
+
+ tooltip: {
+ trigger: 'axis',
+ axisPointer: {
+ type: 'shadow'
+ },
+ formatter: function (params) {
+ let total = 0;
+ let result = `${params[0].axisValue}
`;
+
+ // 按数值从大到小排序并只显示有预警的水源地
+ const sortedParams = params
+ .filter(param => param.value > 0)
+ .sort((a, b) => b.value - a.value);
+
+ sortedParams.forEach(param => {
+ total += param.value;
+ result += `${param.seriesName}: ${param.value}
`;
+ });
+
+ result += `总计: ${total}`;
+ return result;
+ }
+ },
+ legend: {
+ data: waterSources,
+ top: 10,
+ textStyle: {
+ color: '#fff'
+ }
+ },
+ grid: {
+ left: '3%',
+ right: '4%',
+ bottom: '3%',
+ top: '15%',
+ containLabel: true
+ },
+ xAxis: {
+ type: 'category',
+ data: dates,
+ axisLabel: {
+ color: '#fff',
+ rotate: 45
+ },
+ axisLine: {
+ lineStyle: {
+ color: '#fff'
+ }
+ }
+ },
+ yAxis: {
+ type: 'value',
+ name: '预警数量',
+ nameTextStyle: {
+ color: '#fff'
+ },
+ axisLabel: {
+ color: '#fff'
+ },
+ axisLine: {
+ lineStyle: {
+ color: '#fff'
+ }
+ },
+ splitLine: {
+ lineStyle: {
+ type: 'dashed',
+ color: 'rgba(255, 255, 255, 0.2)'
+ }
+ }
+ },
+ series: series,
+ color: ['#fac858', '#ee6666', '#73c0de', '#3ba272']
+ };
+
+ return (
+
+
+
+ );
+};
+
+export default WaterSourceChart;
\ No newline at end of file
diff --git a/src/views/Home/panels/Bjfx/index.js b/src/views/Home/panels/Bjfx/index.js
index 72d11a5..834cef9 100644
--- a/src/views/Home/panels/Bjfx/index.js
+++ b/src/views/Home/panels/Bjfx/index.js
@@ -2,23 +2,34 @@ import React, { useMemo, useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import PanelBox from '../../components/PanelBox';
import AreaDrpChart from './chart';
-
-
+import ShuiyuandiChart from './chart1'
+import clsx from 'clsx';
function DrpReal({ style }) {
- const dispatch = useDispatch();
-
+const [type, setType] = useState('sc')
+ const dispatch = useDispatch();
+ const toggleStType = (type) => {
+ setType(type)
+
+ }
return (
- dispatch?.runtime.setInfoDlg({ layerId: 'BjLayer', properties: {} })}>更多
+ {/* dispatch?.runtime.setInfoDlg({ layerId: 'BjLayer', properties: {} })}>更多
*/}
+
+ toggleStType('sc')}>水厂
+ toggleStType('syd')}>水源地
+
>
}
- >
-
+ >{
+ type == 'sc' ?:
+ }
+
+ {/*
*/}
)
}
diff --git a/src/views/Home/panels/Scszjc/index.js b/src/views/Home/panels/Scszjc/index.js
index d046c3d..1f61163 100644
--- a/src/views/Home/panels/Scszjc/index.js
+++ b/src/views/Home/panels/Scszjc/index.js
@@ -1,21 +1,416 @@
-import React, { useMemo, useState } from 'react';
+import React, { useMemo, useState,useEffect } from 'react';
import PanelBox from '../../components/PanelBox';
-
+import Table from '@material-ui/core/Table';
+import TableContainer from '@material-ui/core/TableContainer';
+import TableBody from '@material-ui/core/TableBody';
+import TableHead from '@material-ui/core/TableHead';
+import TableRow from '@material-ui/core/TableRow';
+import DpTableCell from '../../../../layouts/mui/DpTableCell';
+import DpTableRow from '../../../../layouts/mui/DpTableRow';
+import { useDispatch, useSelector } from 'react-redux';
+import config from '../../../../config';
+import clsx from 'clsx';
function DrpReal({ style }) {
+const [type, setType] = useState('sc')
+ const dispatch = useDispatch();
+ const toggleStType = (type) => {
+ setType(type)
+
+ }
+ const scData = [
+ {
+ "stcd": "61614200",
+ "type": "sk",
+ "hasRz": true,
+ "stnm": "浮桥河水厂",
+ "adcd": "421181100000",
+ "wscd": null,
+ "importancy": 0,
+ "lgtd": 114.875,
+ "lttd": 31.166667,
+ "elev": 0,
+ "damel": 71.33,
+ "dsflz": 68.04,
+ "fsltdz": 64.89,
+ "ddz": 51.78,
+ "zcxsw": 64.89,
+ "drpTm": "2025-06-03T02:00:00.000Z",
+ "today": 0,
+ "h1": 0,
+ "h3": 0,
+ "h6": 0,
+ "h12": 0,
+ "h24": 0,
+ "h48": 16.5,
+ "drpState": 1,
+ "rz": 60.71,
+ "w": 162.8,
+ "a_fsltdz": -4.18,
+ "rzTm": "2025-06-03T02:00:00.000Z",
+ "rzWarning": 0,
+ "rzState": 1,
+ "aRz": -4.18,
+ percent:98.20
+ },
+ {
+ "stcd": "61612610",
+ "type": "sk",
+ "hasRz": true,
+ "stnm": "三河口水厂",
+ "adcd": "421181109000",
+ "wscd": null,
+ percent:94.29,
+ "importancy": 0,
+ "lgtd": 115.166667,
+ "lttd": 31.333333,
+ "elev": 0,
+ "damel": 156.8,
+ "dsflz": 154.99,
+ "fsltdz": 149,
+ "ddz": 124,
+ "zcxsw": 149,
+ "drpTm": "2025-06-03T02:00:00.000Z",
+ "today": 0,
+ "h1": 0,
+ "h3": 0,
+ "h6": 0,
+ "h12": 0,
+ "h24": 0,
+ "h48": 12.5,
+ "drpState": 1,
+ "rz": 141.45,
+ "w": 77.8,
+ "a_fsltdz": -7.550000000000011,
+ "rzTm": "2025-06-03T01:00:00.000Z",
+ "rzWarning": 0,
+ "rzState": 1,
+ "aRz": -7.55
+ },
+ {
+ "stcd": "7CS000231",
+ "type": "sk",
+ "hasRz": true,
+ "stnm": "刘集水厂",
+ percent:56.98,
+ "adcd": "421181100000",
+ "wscd": null,
+ "importancy": 0,
+ "lgtd": 115.048056,
+ "lttd": 31.335556,
+ "elev": 0,
+ "damel": 79.6,
+ "dsflz": 78.65,
+ "fsltdz": 72.05,
+ "ddz": 69.55,
+ "zcxsw": 72.05,
+ "drpTm": "2023-11-20T01:00:00.000Z",
+ "today": 0,
+ "h1": 0,
+ "h3": 0,
+ "h6": 0,
+ "h12": 0,
+ "h24": 0,
+ "h48": 0,
+ "drpState": 2,
+ "rz": 76.49,
+ "w": 0.049,
+ "a_fsltdz": 4.439999999999998,
+ "rzTm": "2025-04-11T06:00:00.000Z",
+ "rzWarning": 1,
+ "rzState": 2,
+ "pic": [
+ {
+ "stcd": "7CS000231",
+ "tm": "2023-11-20T01:04:18.000Z",
+ "url": "http://223.75.53.106:8891/skjgimages/2023/1120/7CS000231/20231120090418.jpg"
+ },
+ {
+ "stcd": "7CS000231",
+ "tm": "2023-11-20T01:07:54.000Z",
+ "url": "http://223.75.53.106:8891/skjgimages/2023/1120/7CS000232/20231120090754.jpg"
+ }
+ ],
+ "aRz": 4.44
+ },
+ {
+ "stcd": "716460001",
+ "type": "sk",
+ "hasRz": true,
+ "stnm": "杉林河水厂",
+ "adcd": "421181107000",
+ "wscd": null,
+ percent:42.14,
+ "importancy": 0,
+ "lgtd": 115.433056,
+ "lttd": 31.304444,
+ "elev": 0,
+ "damel": 236.2,
+ "dsflz": 233.92,
+ "fsltdz": 231,
+ "ddz": 204,
+ "zcxsw": 231,
+ "drpTm": "2025-04-11T05:00:00.000Z",
+ "today": 0,
+ "h1": 0,
+ "h3": 0,
+ "h6": 0,
+ "h12": 0,
+ "h24": 0,
+ "h48": 0,
+ "drpState": 2,
+ "rz": 224.31,
+ "w": 0,
+ "a_fsltdz": -6.689999999999998,
+ "rzTm": "2025-04-11T05:00:00.000Z",
+ "rzWarning": 0,
+ "rzState": 2,
+ "aRz": -6.69
+ },
+ ]
+ const page1 = [
+ {
+ "stcd": "61614200",
+ "type": "sk",
+ "hasRz": true,
+ "stnm": "浮桥河水库",
+ "adcd": "421181100000",
+ "wscd": null,
+ "importancy": 0,
+ "lgtd": 114.875,
+ "lttd": 31.166667,
+ "elev": 0,
+ "damel": 71.33,
+ "dsflz": 68.04,
+ "fsltdz": 64.89,
+ "ddz": 51.78,
+ "zcxsw": 64.89,
+ "drpTm": "2025-06-03T02:00:00.000Z",
+ "today": 0,
+ "h1": 0,
+ "h3": 0,
+ "h6": 0,
+ "h12": 0,
+ "h24": 0,
+ "h48": 16.5,
+ "drpState": 1,
+ "rz": 60.71,
+ "w": 162.8,
+ "a_fsltdz": -4.18,
+ "rzTm": "2025-06-03T02:00:00.000Z",
+ "rzWarning": 0,
+ "rzState": 1,
+ "aRz": -4.18,
+ percent:98.21
+ },
+ {
+ "stcd": "716115401",
+ "type": "sk",
+ "hasRz": true,
+ "stnm": "长冲水库",
+ "adcd": "421181110000",
+ "wscd": null,
+ "importancy": 0,
+ "lgtd": 115.061389,
+ "lttd": 31.408611,
+ "elev": 0,
+ "damel": 21.6,
+ "dsflz": 20.15,
+ "fsltdz": 130.8,
+ "ddz": 0,
+ "zcxsw": 130.8,
+ "drpTm": "2024-05-17T08:00:00.000Z",
+ "today": 0,
+ "h1": 0,
+ "h3": 0,
+ "h6": 0,
+ "h12": 0,
+ "h24": 0,
+ "h48": 0,
+ "drpState": 2,
+ "rz": 126.41,
+ "w": 0.374,
+ "a_fsltdz": -4.390000000000015,
+ "rzTm": "2024-05-17T06:00:00.000Z",
+ "rzWarning": 0,
+ "rzState": 2,
+ "pic": [
+ {
+ "stcd": "716115401",
+ "tm": "2024-05-17T08:05:00.000Z",
+ "url": "http://223.75.53.106:8891/skjgimages/2024/0517/716115401/20240517160500.jpg"
+ },
+ {
+ "stcd": "716115401",
+ "tm": "2024-05-17T08:20:00.000Z",
+ "url": "http://223.75.53.106:8891/skjgimages/2024/0517/716115402/20240517162000.jpg"
+ }
+ ],
+ "aRz": -4.39,
+ percent:96.12
+ },
+ {
+ "stcd": "716115301",
+ "type": "sk",
+ "hasRz": true,
+ "stnm": "葡萄冲水库",
+ "adcd": "421181110000",
+ "wscd": null,
+ "importancy": 0,
+ "lgtd": 115.051389,
+ "lttd": 31.423333,
+ "elev": 0,
+ "damel": 15.8,
+ "dsflz": 14.73,
+ "fsltdz": 14.3,
+ "ddz": 9.48,
+ "zcxsw": 14.3,
+ "drpTm": "2025-04-11T05:00:00.000Z",
+ "today": 0,
+ "h1": 0,
+ "h3": 0,
+ "h6": 0,
+ "h12": 0,
+ "h24": 0,
+ "h48": 0,
+ "drpState": 2,
+ "rz": 213.75,
+ "w": 0.04,
+ "a_fsltdz": 199.45,
+ "rzTm": "2025-04-11T05:00:00.000Z",
+ "rzWarning": 1,
+ "rzState": 2,
+ "pic": [
+ {
+ "stcd": "716115301",
+ "tm": "2023-03-12T08:02:00.000Z",
+ "url": "http://223.75.53.106:8891/skjgimages/2023/0312/716115301/20230312160200.jpg"
+ },
+ {
+ "stcd": "716115301",
+ "tm": "2023-03-12T07:11:00.000Z",
+ "url": "http://223.75.53.106:8891/skjgimages/2023/0312/716115302/20230312151100.jpg"
+ }
+ ],
+ "aRz": 199.45,
+ percent:89.21
+ },
+ {
+ "stcd": "716115701",
+ "type": "sk",
+ "hasRz": true,
+ "stnm": "二五冲水库",
+ "adcd": "421181110000",
+ "wscd": null,
+ "importancy": 0,
+ "lgtd": 115.087222,
+ "lttd": 31.378333,
+ "elev": 0,
+ "damel": 11.2,
+ "dsflz": 10.07,
+ "fsltdz": 108.55,
+ "ddz": 1.5,
+ "zcxsw": 108.55,
+ "drpTm": "2025-03-22T08:00:00.000Z",
+ "today": 0,
+ "h1": 0,
+ "h3": 0,
+ "h6": 0,
+ "h12": 0,
+ "h24": 0,
+ "h48": 0,
+ "drpState": 2,
+ "rz": 99.65,
+ "w": 0.038,
+ "a_fsltdz": -8.899999999999991,
+ "rzTm": "2025-03-22T08:00:00.000Z",
+ "rzWarning": 0,
+ "rzState": 2,
+ "pic": [
+ {
+ "stcd": "716115701",
+ "tm": "2025-03-06T23:01:00.000Z",
+ "url": "http://223.75.53.106:8891/skjgimages/2025/0307/716115701/20250307070100.jpg"
+ },
+ {
+ "stcd": "716115701",
+ "tm": "2024-10-18T06:28:00.000Z",
+ "url": "http://223.75.53.106:8891/skjgimages/2024/1018/716115702/20241018142800.jpg"
+ }
+ ],
+ "aRz": -8.9,
+ percent:58.2
+ },
+
+ ]
+
+ const flyTo = (record) => {
+ const { lgtd, lttd } = record;
+ if (lgtd && lttd) {
+ const newLgtd = type == 'sc' ? lgtd - 0.00122 : lgtd;
+ // dispatch.runtime.setFeaturePop({ type, properties: record, coordinates: [lgtd, lttd] });
+ dispatch.runtime.setCameraTarget({
+ center: [newLgtd, lttd + config.poiPositionOffsetY.hd],
+ zoom: config.poiPositionZoom.hd,
+ pitch: config.poiPitch,
+ });
+ }
+ }
+ const [data, setData] = useState([])
+ useEffect(() => {
+ if (type == 'sc') {
+ setData(scData)
+ } else {
+ setData(page1)
+ }
+ }, [type])
+
return (
-
-
- >
+ tabs={
+ // <>
+ //
+ //
+ // >
+
+ toggleStType('sc')}>水厂
+ toggleStType('syd')}>水源地
+
}
>
-
+
+
+

+
综合达标率
+
+
+
+
+
+
+ 名称
+ 达标率(%)
+
+
+
+ {
+ data.map((row) => (
+ flyTo(row)}>
+
+ {row.stnm}
+
+
+ {row.percent}
+
+
+ ))}
+
+
+
+
)
}
diff --git a/src/views/Home/panels/YjList/index.js b/src/views/Home/panels/YjList/index.js
new file mode 100644
index 0000000..275dc2f
--- /dev/null
+++ b/src/views/Home/panels/YjList/index.js
@@ -0,0 +1,453 @@
+import React, { useMemo, useState, useEffect } from 'react';
+import PanelBox from '../../components/PanelBox';
+import Table from '@material-ui/core/Table';
+import TableContainer from '@material-ui/core/TableContainer';
+import TableBody from '@material-ui/core/TableBody';
+import TableHead from '@material-ui/core/TableHead';
+import TableRow from '@material-ui/core/TableRow';
+import DpTableCell from '../../../../layouts/mui/DpTableCell';
+import DpTableRow from '../../../../layouts/mui/DpTableRow';
+import { useDispatch, useSelector } from 'react-redux';
+import config from '../../../../config';
+import clsx from 'clsx';
+import moment from 'moment';
+function DrpReal({ style }) {
+ const [type, setType] = useState('sc')
+ const dispatch = useDispatch();
+ const toggleStType = (type) => {
+ setType(type)
+
+ }
+ const scData = [
+ {
+ "stcd": "61614200",
+ "type": "sk",
+ "hasRz": true,
+ "stnm": "浮桥河水厂",
+ zb: '浊度',
+ yjvalue: 0.6,
+ status:1,
+ "adcd": "421181100000",
+ "wscd": null,
+ "importancy": 0,
+ "lgtd": 114.875,
+ "lttd": 31.166667,
+ "elev": 0,
+ "damel": 71.33,
+ "dsflz": 68.04,
+ "fsltdz": 64.89,
+ "ddz": 51.78,
+ "zcxsw": 64.89,
+ "drpTm": "2025-06-03T02:00:00.000Z",
+ "today": 0,
+ "h1": 0,
+ "h3": 0,
+ "h6": 0,
+ "h12": 0,
+ "h24": 0,
+ "h48": 16.5,
+ "drpState": 1,
+ "rz": 60.71,
+ "w": 162.8,
+ "a_fsltdz": -4.18,
+ "rzTm": "2025-06-03T02:00:00.000Z",
+ "rzWarning": 0,
+ "rzState": 1,
+ "aRz": -4.18,
+ percent: 98.20
+ },
+ {
+ "stcd": "61612610",
+ "type": "sk",
+ "hasRz": true,
+ "stnm": "三河口水厂",
+ zb: '余氯',
+ yjvalue: 0.25,
+ "adcd": "421181109000",
+ "wscd": null,
+ percent: 94.29,
+ "importancy": 0,
+ "lgtd": 115.166667,
+ "lttd": 31.333333,
+ "elev": 0,
+ "damel": 156.8,
+ "dsflz": 154.99,
+ "fsltdz": 149,
+ "ddz": 124,
+ "zcxsw": 149,
+ "drpTm": "2025-06-03T02:00:00.000Z",
+ "today": 0,
+ "h1": 0,
+ "h3": 0,
+ "h6": 0,
+ "h12": 0,
+ "h24": 0,
+ "h48": 12.5,
+ "drpState": 1,
+ "rz": 141.45,
+ "w": 77.8,
+ "a_fsltdz": -7.550000000000011,
+ "rzTm": "2025-06-03T01:00:00.000Z",
+ "rzWarning": 0,
+ "rzState": 1,
+ "aRz": -7.55
+ },
+ {
+ "stcd": "7CS000231",
+ "type": "sk",
+ "hasRz": true,
+ "stnm": "刘集水厂",
+ zb: 'PH值',
+ yjvalue: 7.4,
+ percent: 56.98,
+ "adcd": "421181100000",
+ "wscd": null,
+ "importancy": 0,
+ "lgtd": 115.048056,
+ "lttd": 31.335556,
+ "elev": 0,
+ "damel": 79.6,
+ "dsflz": 78.65,
+ "fsltdz": 72.05,
+ "ddz": 69.55,
+ "zcxsw": 72.05,
+ "drpTm": "2023-11-20T01:00:00.000Z",
+ "today": 0,
+ "h1": 0,
+ "h3": 0,
+ "h6": 0,
+ "h12": 0,
+ "h24": 0,
+ "h48": 0,
+ "drpState": 2,
+ "rz": 76.49,
+ "w": 0.049,
+ "a_fsltdz": 4.439999999999998,
+ "rzTm": "2025-04-11T06:00:00.000Z",
+ "rzWarning": 1,
+ "rzState": 2,
+ "pic": [
+ {
+ "stcd": "7CS000231",
+ "tm": "2023-11-20T01:04:18.000Z",
+ "url": "http://223.75.53.106:8891/skjgimages/2023/1120/7CS000231/20231120090418.jpg"
+ },
+ {
+ "stcd": "7CS000231",
+ "tm": "2023-11-20T01:07:54.000Z",
+ "url": "http://223.75.53.106:8891/skjgimages/2023/1120/7CS000232/20231120090754.jpg"
+ }
+ ],
+ "aRz": 4.44
+ },
+ {
+ "stcd": "716460001",
+ "type": "sk",
+ "hasRz": true,
+ "stnm": "杉林河水厂",
+ zb: 'PH值',
+ yjvalue: 6.3,
+ "adcd": "421181107000",
+ "wscd": null,
+ percent: 42.14,
+ "importancy": 0,
+ "lgtd": 115.433056,
+ "lttd": 31.304444,
+ "elev": 0,
+ "damel": 236.2,
+ "dsflz": 233.92,
+ "fsltdz": 231,
+ "ddz": 204,
+ "zcxsw": 231,
+ "drpTm": "2025-04-11T05:00:00.000Z",
+ "today": 0,
+ "h1": 0,
+ "h3": 0,
+ "h6": 0,
+ "h12": 0,
+ "h24": 0,
+ "h48": 0,
+ "drpState": 2,
+ "rz": 224.31,
+ "w": 0,
+ "a_fsltdz": -6.689999999999998,
+ "rzTm": "2025-04-11T05:00:00.000Z",
+ "rzWarning": 0,
+ "rzState": 2,
+ "aRz": -6.69
+ },
+ ]
+
+ const page1 = [
+ {
+ "stcd": "716115401",
+ "type": "sk",
+ "hasRz": true,
+ "stnm": "长冲水库",
+ "adcd": "421181110000",
+ "wscd": null,
+ zb: '氨氮',
+ yjvalue: 1.3,
+ status:1,
+ "importancy": 0,
+ "lgtd": 115.061389,
+ "lttd": 31.408611,
+ "elev": 0,
+ "damel": 21.6,
+ "dsflz": 20.15,
+ "fsltdz": 130.8,
+ "ddz": 0,
+ "zcxsw": 130.8,
+ "drpTm": "2024-05-17T08:00:00.000Z",
+ "today": 0,
+ "h1": 0,
+ "h3": 0,
+ "h6": 0,
+ "h12": 0,
+ "h24": 0,
+ "h48": 0,
+ "drpState": 2,
+ "rz": 126.41,
+ "w": 0.374,
+ "a_fsltdz": -4.390000000000015,
+ "rzTm": "2024-05-17T06:00:00.000Z",
+ "rzWarning": 0,
+ "rzState": 2,
+ "pic": [
+ {
+ "stcd": "716115401",
+ "tm": "2024-05-17T08:05:00.000Z",
+ "url": "http://223.75.53.106:8891/skjgimages/2024/0517/716115401/20240517160500.jpg"
+ },
+ {
+ "stcd": "716115401",
+ "tm": "2024-05-17T08:20:00.000Z",
+ "url": "http://223.75.53.106:8891/skjgimages/2024/0517/716115402/20240517162000.jpg"
+ }
+ ],
+ "aRz": -4.39,
+ percent: 96.12
+ },
+ {
+ "stcd": "61614200",
+ "type": "sk",
+ "hasRz": true,
+ "stnm": "浮桥河水库",
+ "adcd": "421181100000",
+ "wscd": null,
+ zb: '浊度',
+ yjvalue: 0.4,
+
+ "importancy": 0,
+ "lgtd": 114.875,
+ "lttd": 31.166667,
+ "elev": 0,
+ "damel": 71.33,
+ "dsflz": 68.04,
+ "fsltdz": 64.89,
+ "ddz": 51.78,
+ "zcxsw": 64.89,
+ "drpTm": "2025-06-03T02:00:00.000Z",
+ "today": 0,
+ "h1": 0,
+ "h3": 0,
+ "h6": 0,
+ "h12": 0,
+ "h24": 0,
+ "h48": 16.5,
+ "drpState": 1,
+ "rz": 60.71,
+ "w": 162.8,
+ "a_fsltdz": -4.18,
+ "rzTm": "2025-06-03T02:00:00.000Z",
+ "rzWarning": 0,
+ "rzState": 1,
+ "aRz": -4.18,
+ percent: 98.21
+ },
+
+ {
+ "stcd": "716115301",
+ "type": "sk",
+ "hasRz": true,
+ "stnm": "葡萄冲水库",
+ "adcd": "421181110000",
+ zb: '总磷',
+ yjvalue: 0.09,
+ "wscd": null,
+ "importancy": 0,
+ "lgtd": 115.051389,
+ "lttd": 31.423333,
+ "elev": 0,
+ "damel": 15.8,
+ "dsflz": 14.73,
+ "fsltdz": 14.3,
+ "ddz": 9.48,
+ "zcxsw": 14.3,
+ "drpTm": "2025-04-11T05:00:00.000Z",
+ "today": 0,
+ "h1": 0,
+ "h3": 0,
+ "h6": 0,
+ "h12": 0,
+ "h24": 0,
+ "h48": 0,
+ "drpState": 2,
+ "rz": 213.75,
+ "w": 0.04,
+ "a_fsltdz": 199.45,
+ "rzTm": "2025-04-11T05:00:00.000Z",
+ "rzWarning": 1,
+ "rzState": 2,
+ "pic": [
+ {
+ "stcd": "716115301",
+ "tm": "2023-03-12T08:02:00.000Z",
+ "url": "http://223.75.53.106:8891/skjgimages/2023/0312/716115301/20230312160200.jpg"
+ },
+ {
+ "stcd": "716115301",
+ "tm": "2023-03-12T07:11:00.000Z",
+ "url": "http://223.75.53.106:8891/skjgimages/2023/0312/716115302/20230312151100.jpg"
+ }
+ ],
+ "aRz": 199.45,
+ percent: 89.21
+ },
+ {
+ "stcd": "716115701",
+ "type": "sk",
+ zb: 'PH值',
+ yjvalue: 7.1,
+ "hasRz": true,
+ "stnm": "二五冲水库",
+ "adcd": "421181110000",
+ "wscd": null,
+ "importancy": 0,
+ "lgtd": 115.087222,
+ "lttd": 31.378333,
+ "elev": 0,
+ "damel": 11.2,
+ "dsflz": 10.07,
+ "fsltdz": 108.55,
+ "ddz": 1.5,
+ "zcxsw": 108.55,
+ "drpTm": "2025-03-22T08:00:00.000Z",
+ "today": 0,
+ "h1": 0,
+ "h3": 0,
+ "h6": 0,
+ "h12": 0,
+ "h24": 0,
+ "h48": 0,
+ "drpState": 2,
+ "rz": 99.65,
+ "w": 0.038,
+ "a_fsltdz": -8.899999999999991,
+ "rzTm": "2025-03-22T08:00:00.000Z",
+ "rzWarning": 0,
+ "rzState": 2,
+ "pic": [
+ {
+ "stcd": "716115701",
+ "tm": "2025-03-06T23:01:00.000Z",
+ "url": "http://223.75.53.106:8891/skjgimages/2025/0307/716115701/20250307070100.jpg"
+ },
+ {
+ "stcd": "716115701",
+ "tm": "2024-10-18T06:28:00.000Z",
+ "url": "http://223.75.53.106:8891/skjgimages/2024/1018/716115702/20241018142800.jpg"
+ }
+ ],
+ "aRz": -8.9,
+ percent: 58.2
+ },
+
+ ]
+
+ const flyTo = (record) => {
+ const { lgtd, lttd } = record;
+ if (lgtd && lttd) {
+ const newLgtd = type == 'sc' ? lgtd - 0.00122 : lgtd;
+ // dispatch.runtime.setFeaturePop({ type, properties: record, coordinates: [lgtd, lttd] });
+ dispatch.runtime.setCameraTarget({
+ center: [newLgtd, lttd + config.poiPositionOffsetY.hd],
+ zoom: config.poiPositionZoom.hd,
+ pitch: config.poiPitch,
+ });
+ }
+ }
+ const [data, setData] = useState([])
+ useEffect(() => {
+ if (type == 'sc') {
+ setData(scData)
+ } else {
+ setData(page1)
+ }
+ }, [type])
+
+ return (
+
+ //
+ //
+ // >
+
+ toggleStType('sc')}>水厂
+ toggleStType('syd')}>水源地
+
+ }
+ >
+
+
+
+
+
+ 序号
+ 水厂名称
+ 预警指标
+ 预警数值
+ 预警时间
+
+
+
+ {
+ data.map((row, i) => (
+ flyTo(row)}>
+
+ {i + 1}
+
+
+ {row.stnm}
+
+
+
+ {row.zb}
+
+
+ {row.yjvalue}
+
+
+ {moment(row.drpTm).format('YYYY-MM-DD HH:mm:ss')}
+
+
+ ))}
+
+
+
+
+
+ )
+}
+
+export default DrpReal;
diff --git a/src/views/Home/panels/Yjdd/index.js b/src/views/Home/panels/Yjdd/index.js
index 755c38b..c167c2b 100644
--- a/src/views/Home/panels/Yjdd/index.js
+++ b/src/views/Home/panels/Yjdd/index.js
@@ -11,1449 +11,313 @@ import DpTableCell from '../../../../layouts/mui/DpTableCell';
import DpTableRow from '../../../../layouts/mui/DpTableRow';
import clsx from 'clsx';
import { renderDrp } from '../../../../utils/renutils';
+
+const emergencyTeamData = [
+ {
+ id: 1,
+ type: '应急指挥官',
+ department: '麻城市水务应急指挥中心',
+ name: '张伟',
+ duty: '统筹全局应急响应、协调跨部门资源',
+ contact: '138XXXX1234',
+ note: '持有应急管理师资格证'
+ },
+ {
+ id: 2,
+ type: '抢修技术专家',
+ department: '麻城市第一水厂',
+ name: '李强',
+ duty: '主导管网爆管、设备故障等抢修工作',
+ contact: '137XXXX5678',
+ note: '10年管网维修经验'
+ },
+ {
+ id: 3,
+ type: '水质监测员',
+ department: '麻城市水质检测中心',
+ name: '王芳',
+ duty: '实时监测水源、管网水质,预警污染事件',
+ contact: '137XXXX9012',
+ note: '持有水质检测高级证书'
+ },
+ {
+ id: 4,
+ type: '防汛应急组组长',
+ department: '麻城市第二水厂',
+ name: '陈刚',
+ duty: '负责洪涝期间水厂防汛设施巡查与应急排水',
+ contact: '136XXXX4456',
+ note: '曾参与2020年麻城抗洪抢险'
+ },
+ {
+ id: 5,
+ type: '后勤保障员',
+ department: '麻城市水务局后勤部',
+ name: '刘敏',
+ duty: '调配应急物资(沙袋、发电机、净水剂等)',
+ contact: '135XXXX7890',
+ note: '熟悉全市应急物资储备分布'
+ },
+ {
+ id: 6,
+ type: '医疗救护员',
+ department: '麻城市卫生应急分队',
+ name: '赵静',
+ duty: '处理现场人员伤亡、提供急救支持',
+ contact: '134XXXX2345',
+ note: '执业医师、急救培训导师'
+ },
+ {
+ id: 7,
+ type: '通讯联络员',
+ department: '麻城市水务应急指挥中心',
+ name: '吴昊',
+ duty: '保障应急通讯畅通、协调多方信息传递',
+ contact: '133XXXX6789',
+ note: '熟悉卫星电话、对讲机操作'
+ },
+ {
+ id: 8,
+ type: '安全监督员',
+ department: '麻城市第三水厂',
+ name: '孙磊',
+ duty: '监督现场安全作业、防范次生灾害',
+ contact: '132XXXX1234',
+ note: '注册安全工程师'
+ },
+ {
+ id: 9,
+ type: '无人机操作员',
+ department: '麻城市水务信息化中心',
+ name: '周婷',
+ duty: '使用无人机巡查管网、监测洪涝积水点',
+ contact: '131XXXX5678',
+ note: '持有无人机驾驶员执照'
+ },
+ {
+ id: 10,
+ type: '群众疏散引导员',
+ department: '麻城市社区应急服务队',
+ name: '何军',
+ duty: '负责受影响区域群群众疏散与安置引导',
+ contact: '130XXXX9012',
+ note: '熟悉麻城市各社区分布'
+ }
+];
+const emergencySuppliesData = [
+ {
+ id: 1,
+ name: '防汛沙袋',
+ quantity: 1200,
+ unit: '个',
+ location: '麻城市第一水厂应急仓库',
+ status: '正常',
+ note: '近期未使用,维护整齐'
+ },
+ {
+ id: 2,
+ name: '抽水泵',
+ quantity: 8,
+ unit: '台',
+ location: '麻城市第二水厂设备间',
+ status: '正常',
+ note: '3台为备用,定期维护'
+ },
+ {
+ id: 3,
+ name: '消毒药剂(次氯酸钠)',
+ quantity: 450,
+ unit: 'kg',
+ location: '麻城市水质检测中心仓库',
+ status: '库存不足(需补充至550kg)',
+ note: '有效期至2024年12月'
+ },
+ {
+ id: 4,
+ name: '应急发电设备',
+ quantity: 5,
+ unit: '台(30kW)',
+ location: '麻城市水务局总仓库',
+ status: '正常',
+ note: '2台为移动式,可快速部署'
+ },
+ {
+ id: 5,
+ name: '水质检测仪器',
+ quantity: 3,
+ unit: '套',
+ location: '麻城市水质检测中心实验室',
+ status: '正常',
+ note: '含性能试剂与在线测量设备'
+ },
+ {
+ id: 6,
+ name: '移动式净水设备',
+ quantity: 2,
+ unit: '套',
+ location: '麻城市应急物资储备中心',
+ status: '正常',
+ note: '日处理能力50吨/台'
+ },
+ {
+ id: 7,
+ name: '应急照明灯',
+ quantity: 18,
+ unit: '盏',
+ location: '麻城市第二水厂值班室',
+ status: '库存不足(需补充至32盏)',
+ note: '电池续航28小时'
+ },
+ {
+ id: 8,
+ name: '救生衣',
+ quantity: 50,
+ unit: '件',
+ location: '麻城市第一水厂防汛物资库',
+ status: '正常',
+ note: '反光条清晰,适合夜间使用'
+ },
+ {
+ id: 9,
+ name: '管网检修配件',
+ quantity: null,
+ unit: '若干套',
+ location: '麻城市第一水厂维修车间',
+ status: '正常',
+ note: '含阀门、管路、密封胶等'
+ },
+ {
+ id: 10,
+ name: '防汛挡水板',
+ quantity: 15,
+ unit: '块',
+ location: '麻城市水务局总仓库',
+ status: '正常',
+ note: '可拼接使用,高度可调'
+ }
+];
+const emergencyVehiclesData = [
+ {
+ id: 1,
+ type: '消防车',
+ location: '城城市第一水厂应急车库',
+ status: '正常',
+ specs: {
+ model: '东风市场专用消防车',
+ capacity: '3000L',
+ tank: '500L',
+ power: '150kW',
+ features: '水炮管路'
+ },
+ usage: '应对水厂火灾、洪涝灾害中紧急排水、救援和人员疏散'
+ },
+ {
+ id: 2,
+ type: '救护车',
+ location: '城城市水务局总仓库',
+ status: '正常',
+ specs: {
+ model: '奔驰ICU型救护车',
+ features: ['呼吸机', '心电监护仪', '除颤器', '急救药品']
+ },
+ usage: '应急救援时对受伤人员、特别是处理化学药剂时的中毒及其他紧急医疗事件'
+ },
+ {
+ id: 3,
+ type: '水质监测车',
+ location: '城城市水质检测中心',
+ status: '维护中',
+ specs: {
+ model: '专用水质检测车',
+ equipment: ['便携式水质检测仪', '便携式浊度检测仪', '便携式水质采样分析仪']
+ },
+ usage: '快速响应水质污染突发事件,现场检测和水质采样分析'
+ },
+ {
+ id: 4,
+ type: '移动泵站',
+ location: '城城市第一水厂设备间',
+ status: '正常',
+ specs: {
+ model: '移动式抽水泵车',
+ flow: '200m³/h',
+ lift: '10m',
+ power: '75kW'
+ },
+ usage: '洪涝灾害中快速排水、园区水厂供水中断时应急供水、补水'
+ },
+ {
+ id: 5,
+ type: '防汛排涝综合车',
+ location: '城城市城市管理执法局仓库',
+ status: '正常',
+ specs: {
+ model: '防汛排涝综合车',
+ equipment: ['大功率抽水泵', '发电机', '照明设备']
+ },
+ usage: '应对城市内涝、快速排除积水、保障水厂及周边区域安全'
+ },
+ {
+ id: 6,
+ type: '应急发电车',
+ location: '城城市水务局总仓库',
+ status: '正常',
+ specs: {
+ model: '300kW应急发电车',
+ power: '300kW',
+ runtime: '8小时'
+ },
+ usage: '停电时为水厂设备供电、保障供水系统的持续运行'
+ },
+ {
+ id: 7,
+ type: '管网检修车',
+ location: '城城市第一水厂维修车间',
+ status: '在用',
+ specs: {
+ model: '专用管网检修车',
+ equipment: ['管材', '水表', '阀门', '焊接设备等']
+ },
+ usage: '快速响应管网检修、维护等建设工作'
+ },
+ {
+ id: 8,
+ type: '水质检测无人机',
+ location: '城城市水信息中心控制室',
+ status: '正常',
+ specs: {
+ model: '多旋翼无人机',
+ equipment: ['水质多参数分析仪', '高清摄像头']
+ },
+ usage: '空中巡查水质、快速发现内部管网泄漏'
+ },
+ {
+ id: 9,
+ type: '应急照明车',
+ location: '城城市第一水厂值班室',
+ status: '正常',
+ specs: {
+ model: '移动式应急照明车',
+ power: '300W',
+ runtime: '12小时'
+ },
+ usage: '夜间应急抢修、救援时提供照明支持'
+ },
+ {
+ id: 10,
+ type: '防化服巡视器',
+ location: '城城市水质检测中心仓库',
+ status: '正常',
+ specs: {
+ model: 'RHF-1防化服',
+ level: 'RH2级8.8正压呼吸器',
+ protection: 'A级'
+ },
+ usage: '处理化学药剂和油脂泄漏、水质污染等事件时,保护现场人员安全'
+ }
+];
+
-const data1 = [
- {
- "res_cd": "42118140035",
- "res_lon": 115.14137,
- "res_lat": 31.55095,
- "cd": "01",
- "cd_nm": "GN1",
- "res_reg_cd": "42118140006-A4",
- "ch": "0+000",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181112000",
- "town_nm": "福田河镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "res_nm": "大堰口水库",
- "de_value": -4.2885,
- "dn_value": -13.5384,
- "du_value": 132.4892,
- "de_trend": null,
- "dn_trend": null,
- "du_trend": null,
- "max_de": 1.0981,
- "max_dn": -2.3255,
- "max_du": 132.4892,
- "dt": "2025-05-20",
- "is_has_data": "y"
- },
- {
- "res_cd": "42118140035",
- "res_lon": 115.14137,
- "res_lat": 31.55095,
- "cd": "03",
- "cd_nm": "GN3",
- "res_reg_cd": "42118140006-A4",
- "ch": "0+000",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181112000",
- "town_nm": "福田河镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "res_nm": "大堰口水库",
- "de_value": -10.73,
- "dn_value": -9.8975,
- "du_value": 121.3495,
- "de_trend": null,
- "dn_trend": null,
- "du_trend": null,
- "max_de": 1.0981,
- "max_dn": -2.3255,
- "max_du": 132.4892,
- "dt": "2025-05-20",
- "is_has_data": "y"
- },
- {
- "res_cd": "42118140035",
- "res_lon": 115.14137,
- "res_lat": 31.55095,
- "cd": "02",
- "cd_nm": "GN2",
- "res_reg_cd": "42118140006-A4",
- "ch": "0+000",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181112000",
- "town_nm": "福田河镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "res_nm": "大堰口水库",
- "de_value": 1.0981,
- "dn_value": -7.0736,
- "du_value": 75.4661,
- "de_trend": null,
- "dn_trend": null,
- "du_trend": null,
- "max_de": 1.0981,
- "max_dn": -2.3255,
- "max_du": 132.4892,
- "dt": "2025-05-20",
- "is_has_data": "y"
- },
- {
- "res_cd": "42118140035",
- "res_lon": 115.14137,
- "res_lat": 31.55095,
- "cd": "04",
- "cd_nm": "GN4",
- "res_reg_cd": "42118140006-A4",
- "ch": "0+000",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181112000",
- "town_nm": "福田河镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "res_nm": "大堰口水库",
- "de_value": -6.469,
- "dn_value": -2.3255,
- "du_value": 47.1633,
- "de_trend": null,
- "dn_trend": null,
- "du_trend": null,
- "max_de": 1.0981,
- "max_dn": -2.3255,
- "max_du": 132.4892,
- "dt": "2025-05-20",
- "is_has_data": "y"
- },
- {
- "res_cd": "42118140011",
- "res_lon": 115.11878,
- "res_lat": 30.88904,
- "cd": "01",
- "cd_nm": "GN1",
- "res_reg_cd": "42118140019-A4",
- "ch": "0+000",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181104000",
- "town_nm": "夫子河镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "res_nm": "黄麻坳水库",
- "de_value": -5.5809,
- "dn_value": 4.6055,
- "du_value": -13.083,
- "de_trend": null,
- "dn_trend": null,
- "du_trend": null,
- "max_de": -5.1079,
- "max_dn": 4.6055,
- "max_du": -11.1644,
- "dt": "2025-05-20",
- "is_has_data": "y"
- },
- {
- "res_cd": "42118140011",
- "res_lon": 115.11878,
- "res_lat": 30.88904,
- "cd": "02",
- "cd_nm": "GN2",
- "res_reg_cd": "42118140019-A4",
- "ch": "0+000",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181104000",
- "town_nm": "夫子河镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "res_nm": "黄麻坳水库",
- "de_value": -5.1079,
- "dn_value": 3.9064,
- "du_value": -12.2936,
- "de_trend": null,
- "dn_trend": null,
- "du_trend": null,
- "max_de": -5.1079,
- "max_dn": 4.6055,
- "max_du": -11.1644,
- "dt": "2025-05-20",
- "is_has_data": "y"
- },
- {
- "res_cd": "42118140017",
- "res_lon": 115.14545,
- "res_lat": 30.95398,
- "cd": "03",
- "cd_nm": "GN3",
- "res_reg_cd": "42118140031-A4",
- "ch": "0+000",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181107000",
- "town_nm": "盐田河镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "res_nm": "群建水库",
- "de_value": 1.166,
- "dn_value": 2.1274,
- "du_value": 11.5948,
- "de_trend": null,
- "dn_trend": null,
- "du_trend": null,
- "max_de": 2.6901,
- "max_dn": 3.7945,
- "max_du": 11.5948,
- "dt": "2025-05-20",
- "is_has_data": "y"
- },
- {
- "res_cd": "42118140011",
- "res_lon": 115.11878,
- "res_lat": 30.88904,
- "cd": "03",
- "cd_nm": "GN3",
- "res_reg_cd": "42118140019-A4",
- "ch": "0+000",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181104000",
- "town_nm": "夫子河镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "res_nm": "黄麻坳水库",
- "de_value": -5.1345,
- "dn_value": 3.7423,
- "du_value": -11.5382,
- "de_trend": null,
- "dn_trend": null,
- "du_trend": null,
- "max_de": -5.1079,
- "max_dn": 4.6055,
- "max_du": -11.1644,
- "dt": "2025-05-20",
- "is_has_data": "y"
- },
- {
- "res_cd": "42118140022",
- "res_lon": 115.39612,
- "res_lat": 31.1526,
- "cd": "02",
- "cd_nm": "GN2",
- "res_reg_cd": "42118140014-A4",
- "ch": "0+000",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181109000",
- "town_nm": "木子店镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "res_nm": "何门咀水库",
- "de_value": -0.7313,
- "dn_value": 2.702,
- "du_value": -11.493,
- "de_trend": null,
- "dn_trend": null,
- "du_trend": null,
- "max_de": -0.4931,
- "max_dn": 4.3759,
- "max_du": -10.0925,
- "dt": "2025-05-20",
- "is_has_data": "y"
- },
- {
- "res_cd": "42118140011",
- "res_lon": 115.11878,
- "res_lat": 30.88904,
- "cd": "04",
- "cd_nm": "GN4",
- "res_reg_cd": "42118140019-A4",
- "ch": "0+000",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181104000",
- "town_nm": "夫子河镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "res_nm": "黄麻坳水库",
- "de_value": -5.7038,
- "dn_value": 3.3505,
- "du_value": -11.1644,
- "de_trend": null,
- "dn_trend": null,
- "du_trend": null,
- "max_de": -5.1079,
- "max_dn": 4.6055,
- "max_du": -11.1644,
- "dt": "2025-05-20",
- "is_has_data": "y"
- },
- {
- "res_cd": "42118140017",
- "res_lon": 115.14545,
- "res_lat": 30.95398,
- "cd": "04",
- "cd_nm": "GN4",
- "res_reg_cd": "42118140031-A4",
- "ch": "0+000",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181107000",
- "town_nm": "盐田河镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "res_nm": "群建水库",
- "de_value": 1.3441,
- "dn_value": 3.3718,
- "du_value": 10.8126,
- "de_trend": null,
- "dn_trend": null,
- "du_trend": null,
- "max_de": 2.6901,
- "max_dn": 3.7945,
- "max_du": 11.5948,
- "dt": "2025-05-20",
- "is_has_data": "y"
- },
- {
- "res_cd": "42118140022",
- "res_lon": 115.39612,
- "res_lat": 31.1526,
- "cd": "01",
- "cd_nm": "GN1",
- "res_reg_cd": "42118140014-A4",
- "ch": "0+000",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181109000",
- "town_nm": "木子店镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "res_nm": "何门咀水库",
- "de_value": -0.4931,
- "dn_value": 4.3759,
- "du_value": -10.0925,
- "de_trend": null,
- "dn_trend": null,
- "du_trend": null,
- "max_de": -0.4931,
- "max_dn": 4.3759,
- "max_du": -10.0925,
- "dt": "2025-05-20",
- "is_has_data": "y"
- },
- {
- "res_cd": "42118140017",
- "res_lon": 115.14545,
- "res_lat": 30.95398,
- "cd": "01",
- "cd_nm": "GN1",
- "res_reg_cd": "42118140031-A4",
- "ch": "0+000",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181107000",
- "town_nm": "盐田河镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "res_nm": "群建水库",
- "de_value": 2.6901,
- "dn_value": 3.7368,
- "du_value": 8.7918,
- "de_trend": null,
- "dn_trend": null,
- "du_trend": null,
- "max_de": 2.6901,
- "max_dn": 3.7945,
- "max_du": 11.5948,
- "dt": "2025-05-20",
- "is_has_data": "y"
- },
- {
- "res_cd": "42118140017",
- "res_lon": 115.14545,
- "res_lat": 30.95398,
- "cd": "02",
- "cd_nm": "GN2",
- "res_reg_cd": "42118140031-A4",
- "ch": "0+000",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181107000",
- "town_nm": "盐田河镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "res_nm": "群建水库",
- "de_value": 1.5528,
- "dn_value": 3.7945,
- "du_value": 7.5172,
- "de_trend": null,
- "dn_trend": null,
- "du_trend": null,
- "max_de": 2.6901,
- "max_dn": 3.7945,
- "max_du": 11.5948,
- "dt": "2025-05-20",
- "is_has_data": "y"
- },
- {
- "res_cd": "42118140009",
- "res_lon": 114.73138,
- "res_lat": 31.01948,
- "cd": "04",
- "cd_nm": "GN4",
- "res_reg_cd": "42118140028-A4",
- "ch": "0+000",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181102000",
- "town_nm": "歧亭镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "res_nm": "鲇鱼坝水库",
- "de_value": -2.3116,
- "dn_value": -7.9976,
- "du_value": -6.8754,
- "de_trend": null,
- "dn_trend": null,
- "du_trend": null,
- "max_de": -1.4148,
- "max_dn": -7.6521,
- "max_du": -3.4337,
- "dt": "2025-05-20",
- "is_has_data": "y"
- },
- {
- "res_cd": "42118140032",
- "res_lon": 115.13073,
- "res_lat": 31.35489,
- "cd": "02",
- "cd_nm": "GN2",
- "res_reg_cd": "42118140020-A4",
- "ch": "0+000",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181111000",
- "town_nm": "黄土岗镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "待除险加固",
- "label": "2023高标准",
- "res_nm": "鸡翅关水库",
- "de_value": -4.2641,
- "dn_value": -1.5343,
- "du_value": -6.8233,
- "de_trend": null,
- "dn_trend": null,
- "du_trend": null,
- "max_de": 1.346,
- "max_dn": -1.5343,
- "max_du": -3.1838,
- "dt": "2025-05-20",
- "is_has_data": "y"
- },
- {
- "res_cd": "42118140032",
- "res_lon": 115.13073,
- "res_lat": 31.35489,
- "cd": "03",
- "cd_nm": "GN3",
- "res_reg_cd": "42118140020-A4",
- "ch": "0+000",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181111000",
- "town_nm": "黄土岗镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "待除险加固",
- "label": "2023高标准",
- "res_nm": "鸡翅关水库",
- "de_value": -1.1126,
- "dn_value": -1.7529,
- "du_value": -5.7066,
- "de_trend": null,
- "dn_trend": null,
- "du_trend": null,
- "max_de": 1.346,
- "max_dn": -1.5343,
- "max_du": -3.1838,
- "dt": "2025-05-20",
- "is_has_data": "y"
- },
- {
- "res_cd": "42118140009",
- "res_lon": 114.73138,
- "res_lat": 31.01948,
- "cd": "01",
- "cd_nm": "GN1",
- "res_reg_cd": "42118140028-A4",
- "ch": "0+000",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181102000",
- "town_nm": "歧亭镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "res_nm": "鲇鱼坝水库",
- "de_value": -1.4148,
- "dn_value": -10.2713,
- "du_value": -5.146,
- "de_trend": null,
- "dn_trend": null,
- "du_trend": null,
- "max_de": -1.4148,
- "max_dn": -7.6521,
- "max_du": -3.4337,
- "dt": "2025-05-20",
- "is_has_data": "y"
- }
-]
-const data2 = [
- {
- "cd": "1",
- "cd_nm": "UPD1",
- "ch": "0+060",
- "res_reg_cd": "42118140011-A4",
- "res_cd": "42118140038",
- "res_lon": 115.01664,
- "res_lat": 31.40681,
- "res_nm": "蛤蟆岗水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181113000",
- "town_nm": "乘马岗镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "value": 164.8742,
- "diff_value": -0.0275,
- "trend": -1,
- "is_has_data": "y",
- "diff_rz": -0.6958,
- "stcd": "4239",
- "diff_rz_cd": 5.0554,
- "max_cd_value": -0.0225,
- "rz": 165.57,
- "dt": "2025-05-20",
- "diff5_value": -0.0737,
- "trend5": -1,
- "diff10_value": -0.1204,
- "trend10": -1,
- "diff30_value": -0.0633,
- "trend30": -1
- },
- {
- "cd": "1",
- "cd_nm": "UPD1",
- "ch": "0+027",
- "res_reg_cd": "42118140006-A4",
- "res_cd": "42118140035",
- "res_lon": 115.14137,
- "res_lat": 31.55095,
- "res_nm": "大堰口水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181112000",
- "town_nm": "福田河镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "value": 209.4042,
- "diff_value": -0.0258,
- "trend": -1,
- "is_has_data": "y",
- "diff_rz": -2.5358,
- "stcd": "4159",
- "diff_rz_cd": 48.6446,
- "max_cd_value": -0.01,
- "rz": 211.94,
- "dt": "2025-05-20",
- "diff5_value": -0.0983,
- "trend5": -1,
- "diff10_value": -0.1329,
- "trend10": -1,
- "diff30_value": -0.0954,
- "trend30": -1
- },
- {
- "cd": "3",
- "cd_nm": "UPD3",
- "ch": "0+060",
- "res_reg_cd": "42118140011-A4",
- "res_cd": "42118140038",
- "res_lon": 115.01664,
- "res_lat": 31.40681,
- "res_nm": "蛤蟆岗水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181113000",
- "town_nm": "乘马岗镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "value": 162.6908,
- "diff_value": -0.0246,
- "trend": -1,
- "is_has_data": "y",
- "diff_rz": -2.8792,
- "stcd": "4239",
- "diff_rz_cd": 5.0554,
- "max_cd_value": -0.0225,
- "rz": 165.57,
- "dt": "2025-05-20",
- "diff5_value": -0.095,
- "trend5": -1,
- "diff10_value": -0.123,
- "trend10": -1,
- "diff30_value": -0.0588,
- "trend30": -1
- },
- {
- "cd": "1",
- "cd_nm": "UPD1",
- "ch": "0+038",
- "res_reg_cd": "42118140014-A4",
- "res_cd": "42118140022",
- "res_lon": 115.39612,
- "res_lat": 31.1526,
- "res_nm": "何门咀水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181109000",
- "town_nm": "木子店镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "value": 139.2533,
- "diff_value": -0.0171,
- "trend": -1,
- "is_has_data": "y",
- "diff_rz": -3.0767,
- "stcd": "4268",
- "diff_rz_cd": 24.9337,
- "max_cd_value": -0.0045,
- "rz": 142.33,
- "dt": "2025-05-20",
- "diff5_value": -0.0675,
- "trend5": -1,
- "diff10_value": -0.0627,
- "trend10": -1,
- "diff30_value": -0.0342,
- "trend30": -1
- },
- {
- "cd": "4",
- "cd_nm": "UPR1",
- "ch": "0+055",
- "res_reg_cd": "42118140043-A4",
- "res_cd": "42118140029",
- "res_lon": 115.12048,
- "res_lat": 31.18362,
- "res_nm": "永红水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181105000",
- "town_nm": "阎家河镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "value": 116.1513,
- "diff_value": -0.0208,
- "trend": -1,
- "is_has_data": "y",
- "diff_rz": -3.1187,
- "stcd": "5320",
- "diff_rz_cd": 38.1171,
- "max_cd_value": 0.0009,
- "rz": 119.27,
- "dt": "2025-05-20",
- "diff5_value": -0.082,
- "trend5": -1,
- "diff10_value": -0.1333,
- "trend10": -1,
- "diff30_value": -0.0041,
- "trend30": -1
- },
- {
- "cd": "4",
- "cd_nm": "UPR1",
- "ch": "0+085",
- "res_reg_cd": "42118140020-A4",
- "res_cd": "42118140032",
- "res_lon": 115.13073,
- "res_lat": 31.35489,
- "res_nm": "鸡翅关水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181111000",
- "town_nm": "黄土岗镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "待除险加固",
- "label": "2023高标准",
- "value": 483.1646,
- "diff_value": -0.0108,
- "trend": -1,
- "is_has_data": "y",
- "diff_rz": -3.2454,
- "stcd": "4151",
- "diff_rz_cd": 14.6887,
- "max_cd_value": -0.0108,
- "rz": 486.41,
- "dt": "2025-05-20",
- "diff5_value": -0.0742,
- "trend5": -1,
- "diff10_value": -0.1258,
- "trend10": -1,
- "diff30_value": -0.1708,
- "trend30": -1
- },
- {
- "cd": "1",
- "cd_nm": "UPD1",
- "ch": "0+51.6",
- "res_reg_cd": "42118140042-A4",
- "res_cd": "42118140004",
- "res_lon": 115.05541,
- "res_lat": 31.11106,
- "res_nm": "永丰水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181003000",
- "town_nm": "南湖办事处",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "value": 68.1333,
- "diff_value": -0.0142,
- "trend": -1,
- "is_has_data": "y",
- "diff_rz": -3.2767,
- "stcd": "340",
- "diff_rz_cd": 23.0069,
- "max_cd_value": -0.0142,
- "rz": 71.41,
- "dt": "2025-05-20",
- "diff5_value": -0.0109,
- "trend5": -1,
- "diff10_value": 0.0087,
- "trend10": 1,
- "diff30_value": 0.0683,
- "trend30": 1
- },
- {
- "cd": "7",
- "cd_nm": "UPR3",
- "ch": "0+060",
- "res_reg_cd": "42118140022-A4",
- "res_cd": "42118140024",
- "res_lon": 115.4501,
- "res_lat": 31.3021,
- "res_nm": "界岭水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181109000",
- "town_nm": "木子店镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "value": 374.7421,
- "diff_value": -0.0412,
- "trend": -1,
- "is_has_data": "y",
- "diff_rz": -3.4679,
- "stcd": "4276",
- "diff_rz_cd": 27.0054,
- "max_cd_value": -0.0171,
- "rz": 378.21,
- "dt": "2025-05-20",
- "diff5_value": -0.1442,
- "trend5": -1,
- "diff10_value": -0.1617,
- "trend10": -1,
- "diff30_value": -0.1121,
- "trend30": -1
- },
- {
- "cd": "5",
- "cd_nm": "UPR2",
- "ch": "0+085",
- "res_reg_cd": "42118140011-A4",
- "res_cd": "42118140038",
- "res_lon": 115.01664,
- "res_lat": 31.40681,
- "res_nm": "蛤蟆岗水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181113000",
- "town_nm": "乘马岗镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "value": 161.9071,
- "diff_value": -0.0246,
- "trend": -1,
- "is_has_data": "y",
- "diff_rz": -3.6629,
- "stcd": "4239",
- "diff_rz_cd": 5.0554,
- "max_cd_value": -0.0225,
- "rz": 165.57,
- "dt": "2025-05-20",
- "diff5_value": -0.0704,
- "trend5": -1,
- "diff10_value": -0.0804,
- "trend10": -1,
- "diff30_value": -0.1242,
- "trend30": -1
- },
- {
- "cd": "1",
- "cd_nm": "UPD1",
- "ch": "0+145",
- "res_reg_cd": "42118140015-A4",
- "res_cd": "42118140042",
- "res_lon": 114.84792,
- "res_lat": 31.44124,
- "res_nm": "黑龙潭水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181114000",
- "town_nm": "顺河镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "value": 121.0708,
- "diff_value": -0.028,
- "trend": -1,
- "is_has_data": "y",
- "diff_rz": -4.0992,
- "stcd": "5356",
- "diff_rz_cd": 37.8067,
- "max_cd_value": -0.0254,
- "rz": 125.17,
- "dt": "2025-05-20",
- "diff5_value": -0.1067,
- "trend5": -1,
- "diff10_value": -0.115,
- "trend10": -1,
- "diff30_value": 0.3258,
- "trend30": 1
- },
- {
- "cd": "1",
- "cd_nm": "UPD1",
- "ch": "0+042",
- "res_reg_cd": "42118140031-A4",
- "res_cd": "42118140017",
- "res_lon": 115.14545,
- "res_lat": 30.95398,
- "res_nm": "群建水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181107000",
- "town_nm": "盐田河镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "value": 115.0463,
- "diff_value": -0.0254,
- "trend": -1,
- "is_has_data": "y",
- "diff_rz": -4.1337,
- "stcd": "5331",
- "diff_rz_cd": 11.2642,
- "max_cd_value": -0.0238,
- "rz": 119.18,
- "dt": "2025-05-20",
- "diff5_value": -0.0929,
- "trend5": -1,
- "diff10_value": -0.1241,
- "trend10": -1,
- "diff30_value": -0.1004,
- "trend30": -1
- },
- {
- "cd": "2",
- "cd_nm": "UPD2",
- "ch": "0+060",
- "res_reg_cd": "42118140011-A4",
- "res_cd": "42118140038",
- "res_lon": 115.01664,
- "res_lat": 31.40681,
- "res_nm": "蛤蟆岗水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181113000",
- "town_nm": "乘马岗镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "value": 161.3038,
- "diff_value": -0.0225,
- "trend": -1,
- "is_has_data": "y",
- "diff_rz": -4.2662,
- "stcd": "4239",
- "diff_rz_cd": 5.0554,
- "max_cd_value": -0.0225,
- "rz": 165.57,
- "dt": "2025-05-20",
- "diff5_value": -0.085,
- "trend5": -1,
- "diff10_value": -0.1233,
- "trend10": -1,
- "diff30_value": -0.0695,
- "trend30": -1
- },
- {
- "cd": "3",
- "cd_nm": "UPD3",
- "ch": "0+080",
- "res_reg_cd": "42118140023-A4",
- "res_cd": "42118140033",
- "res_lon": 114.99636,
- "res_lat": 30.70309,
- "res_nm": "刘家冲水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181111000",
- "town_nm": "黄土岗镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "value": 83.9746,
- "diff_value": -0.0271,
- "trend": -1,
- "is_has_data": "y",
- "diff_rz": -4.7254,
- "stcd": "5385",
- "diff_rz_cd": 29.575,
- "max_cd_value": -0.0196,
- "rz": 88.7,
- "dt": "2025-05-20",
- "diff5_value": -0.0717,
- "trend5": -1,
- "diff10_value": -0.0979,
- "trend10": -1,
- "diff30_value": -0.155,
- "trend30": -1
- },
- {
- "cd": "4",
- "cd_nm": "UPR1",
- "ch": "0+142",
- "res_reg_cd": "42118140015-A4",
- "res_cd": "42118140042",
- "res_lon": 114.84792,
- "res_lat": 31.44124,
- "res_nm": "黑龙潭水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181114000",
- "town_nm": "顺河镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "value": 120.4183,
- "diff_value": -0.0338,
- "trend": -1,
- "is_has_data": "y",
- "diff_rz": -4.7517,
- "stcd": "5356",
- "diff_rz_cd": 37.8067,
- "max_cd_value": -0.0254,
- "rz": 125.17,
- "dt": "2025-05-20",
- "diff5_value": -0.1488,
- "trend5": -1,
- "diff10_value": -0.2259,
- "trend10": -1,
- "diff30_value": -0.2617,
- "trend30": -1
- },
- {
- "cd": "6",
- "cd_nm": "UPR3",
- "ch": "0+085",
- "res_reg_cd": "42118140011-A4",
- "res_cd": "42118140038",
- "res_lon": 115.01664,
- "res_lat": 31.40681,
- "res_nm": "蛤蟆岗水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181113000",
- "town_nm": "乘马岗镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "value": 160.5146,
- "diff_value": -0.0254,
- "trend": -1,
- "is_has_data": "y",
- "diff_rz": -5.0554,
- "stcd": "4239",
- "diff_rz_cd": 5.0554,
- "max_cd_value": -0.0225,
- "rz": 165.57,
- "dt": "2025-05-20",
- "diff5_value": -0.0867,
- "trend5": -1,
- "diff10_value": -0.0787,
- "trend10": -1,
- "diff30_value": -0.0375,
- "trend30": -1
- },
- {
- "cd": "1",
- "cd_nm": "UPD1",
- "ch": "0+030",
- "res_reg_cd": "42118140022-A4",
- "res_cd": "42118140024",
- "res_lon": 115.4501,
- "res_lat": 31.3021,
- "res_nm": "界岭水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181109000",
- "town_nm": "木子店镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "value": 372.9888,
- "diff_value": -0.0233,
- "trend": -1,
- "is_has_data": "y",
- "diff_rz": -5.2212,
- "stcd": "4276",
- "diff_rz_cd": 27.0054,
- "max_cd_value": -0.0171,
- "rz": 378.21,
- "dt": "2025-05-20",
- "diff5_value": -0.0862,
- "trend5": -1,
- "diff10_value": -0.1062,
- "trend10": -1,
- "diff30_value": -0.1783,
- "trend30": -1
- },
- {
- "cd": "3",
- "cd_nm": "UPD3",
- "ch": "0+100",
- "res_reg_cd": "42118140022-A4",
- "res_cd": "42118140024",
- "res_lon": 115.4501,
- "res_lat": 31.3021,
- "res_nm": "界岭水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181109000",
- "town_nm": "木子店镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "非病险水库",
- "label": "2023高标准",
- "value": 372.6217,
- "diff_value": -0.0171,
- "trend": -1,
- "is_has_data": "y",
- "diff_rz": -5.5883,
- "stcd": "4276",
- "diff_rz_cd": 27.0054,
- "max_cd_value": -0.0171,
- "rz": 378.21,
- "dt": "2025-05-20",
- "diff5_value": -0.0954,
- "trend5": -1,
- "diff10_value": -0.1379,
- "trend10": -1,
- "diff30_value": -0.235,
- "trend30": -1
- },
- {
- "cd": "1",
- "cd_nm": "UPD1",
- "ch": "0+095",
- "res_reg_cd": "42118140020-A4",
- "res_cd": "42118140032",
- "res_lon": 115.13073,
- "res_lat": 31.35489,
- "res_nm": "鸡翅关水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181111000",
- "town_nm": "黄土岗镇",
- "bas_guid": "鄂东五河片区",
- "eng_scal": "小(1)型",
- "danger_stat": "待除险加固",
- "label": "2023高标准",
- "value": 480.7392,
- "diff_value": -0.0237,
- "trend": -1,
- "is_has_data": "y",
- "diff_rz": -5.6708,
- "stcd": "4151",
- "diff_rz_cd": 14.6887,
- "max_cd_value": -0.0108,
- "rz": 486.41,
- "dt": "2025-05-20",
- "diff5_value": -0.0804,
- "trend5": -1,
- "diff10_value": -0.1033,
- "trend10": -1,
- "diff30_value": -0.0479,
- "trend30": -1
- }
-]
-const data3 = [{
- "cd": "1",
- "cd_nm": "WE",
- "ch": "1",
- "res_reg_cd": "42118140042-A4",
- "res_cd": "42118140004",
- "res_nm": "永丰水库",
- "res_lon": 115.05541,
- "res_lat": 31.11106,
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181003000",
- "town_nm": "南湖办事处",
- "danger_stat": "非病险水库",
- "bas_guid": "鄂东五河片区",
- "label": "2023高标准",
- "eng_scal": "小(1)型",
- "value": 0.3,
- "diff_value": -0.02,
- "trend": -1,
- "dt": "2025-05-20",
- "is_has_data": "y",
- "max_value": 0.3
-}]
-const data4 = [
- {
- "res_cd": "42118140004",
- "res_nm": "永丰水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181003000",
- "town_nm": "南湖办事处",
- "rv_name": "举水",
- "bas_guid": "鄂东五河片区",
- "res_lon": 115.05541,
- "res_lat": 31.11106,
- "res_reg_cd": "42118140042-A4",
- "eng_scal": "小(1)型",
- "eng_g": "IV",
- "children": [
- {
- "res_cd": "42118140004",
- "res_nm": "永丰水库",
- "cd": 5821,
- "cd_nm": "永丰水库",
- "termite_status": "n",
- "tm": "2025-05-21 09:18:28",
- "is_main_cd": "y"
- }
- ]
- },
- {
- "res_cd": "42118140015",
- "res_nm": "麻城坳水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181107000",
- "town_nm": "盐田河镇",
- "rv_name": "举水",
- "bas_guid": "鄂东五河片区",
- "res_lon": 115.22541,
- "res_lat": 30.98156,
- "res_reg_cd": "42118140025-A4",
- "eng_scal": "小(1)型",
- "eng_g": "IV",
- "children": [
- {
- "res_cd": "42118140015",
- "res_nm": "麻城坳水库",
- "cd": 5820,
- "cd_nm": "麻城坳水库",
- "termite_status": "y",
- "tm": "2025-05-21 04:27:18",
- "is_main_cd": "y"
- }
- ]
- },
- {
- "res_cd": "42118140023",
- "res_nm": "游家冲水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181109000",
- "town_nm": "木子店镇",
- "rv_name": "巴河",
- "bas_guid": "鄂东五河片区",
- "res_lon": 115.29541,
- "res_lat": 31.20317,
- "res_reg_cd": "42118140044-A4",
- "eng_scal": "小(1)型",
- "eng_g": "IV",
- "children": [
- {
- "res_cd": "42118140023",
- "res_nm": "游家冲水库",
- "cd": 5819,
- "cd_nm": "游家冲水库",
- "termite_status": "n",
- "tm": "2025-05-21 04:25:56",
- "is_main_cd": "y"
- }
- ]
- },
- {
- "res_cd": "42118140013",
- "res_nm": "高峰水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181106000",
- "town_nm": "龟山镇",
- "rv_name": "举水",
- "bas_guid": "鄂东五河片区",
- "res_lon": 115.21201,
- "res_lat": 31.05011,
- "res_reg_cd": "42118140010-A4",
- "eng_scal": "小(1)型",
- "eng_g": "IV",
- "children": null
- },
- {
- "res_cd": "42118140039",
- "res_nm": "姚家河水库",
- "province_cd": "420000000000",
- "province_nm": "湖北省",
- "city_cd": "421100000000",
- "city_nm": "黄冈市",
- "county_cd": "421181000000",
- "county_nm": "麻城市",
- "town_cd": "421181113000",
- "town_nm": "乘马岗镇",
- "rv_name": "举水",
- "bas_guid": "鄂东五河片区",
- "res_lon": 114.9355,
- "res_lat": 31.28804,
- "res_reg_cd": "42118140041-A4",
- "eng_scal": "小(1)型",
- "eng_g": "IV",
- "children": null
- }
-]
function DrpReal({ style }) {
const [tab,setTab] = useState('1')
@@ -1465,10 +329,10 @@ function DrpReal({ style }) {
color="green"
tabs={
- setTab('1')}>物资仓库
- setTab('2')}>应急队伍
+ setTab('1')}>人员资源
+ setTab('2')}>物资资源
{/* setTab('3')}>闸门 */}
- setTab('4')}>安置点
+ setTab('4')}>设备资源
}
>
@@ -1478,21 +342,33 @@ function DrpReal({ style }) {
- 仓库名称
- 仓库地址
+ 序号
+ 人员类型
+ 所属单位
+ 姓名
+ 职责描述
+ 联系方式
+ 备注
- {/* {data1.map((row,index) => (
+ {emergencyTeamData.map((row,index) => (
{index+1}
- {row.res_nm}
+ {row.type}
+
+
+ {row.department}
+
+
+ {row.name}
+
+ {row.duty}
+
+ {row.contact}
+ {row.note}
- ))} */}
-
- 麻城市应急物资储备中心
- 麻城市京广大道与金交汇处
-
+ ))}
:null
}
@@ -1501,51 +377,35 @@ function DrpReal({ style }) {
- 队伍名称
- 人员总数
- 地址
- 管理单位
+ 序号
+ 物资种类
+ 数量(单位)
+ 储备地点
+ 可用状态
+ 备注
- {/* {data2.map((row,index) => (
-
+ {emergencySuppliesData.map((row,index) => (
+
{index+1}
- {row.res_nm}
- {row.town_nm}
- {row.cd_nm}
- {row.value}
-
- ))} */}
-
- 乡镇应急救援中队
- 20
- 麻城市京广大道与金交汇处
- 麻城市水利局
-
-
-
:null
- }
- {
- tab==='3'?
-
-
-
- 序号
- 水库名称
- 行政区
- 测点
- 渗流量
-
-
-
- {data3.map((row,index) => (
-
- {index+1}
- {row.res_nm}
- {row.town_nm}
- {row.cd_nm}
- {row.value}
+ {row.name} {row.unit}
+ {row.quantity}
+
+
+ {row.location}
+
+
+
+
+ {row.status}
+
+
+
+
+ {row.note}
+
+
))}
@@ -1556,28 +416,41 @@ function DrpReal({ style }) {
- 安置点名称
- 容纳人数
- 地址
- 管理单位
+ 序号
+ 设备类型
+ 位置
+ 运行状态
+ 技术参数
+ 适用场景
- {/* {data4.map((row,index) => (
-
+ {emergencyVehiclesData.map((row,index) => (
+
{index+1}
- {row.res_nm}
- {row.town_nm}
- {row.res_nm}
- {row?.children?.[0]?.termite_status==='y'?'有白蚁':'无白蚁'}
+ {row.type}
+
+
+ {row.location}
+
+
+
+
+ {row.status}
+
+
+
+
+ {row.specs.model}
+
+
+
+
+ {row.usage}
+
+
- ))} */}
-
- 阎家河镇
- 1800
- 麻城市京广大道与金交汇处
- 麻城市水利局
-
+ ))}
:null
}
diff --git a/src/views/Home/panels/Yjsj/Setting.js b/src/views/Home/panels/Yjsj/Setting.js
new file mode 100644
index 0000000..a3055ef
--- /dev/null
+++ b/src/views/Home/panels/Yjsj/Setting.js
@@ -0,0 +1,67 @@
+import React from 'react';
+
+import Dialog from '@material-ui/core/Dialog';
+import DialogContent from '@material-ui/core/DialogContent';
+import DpPaperComponent from '../../../../layouts/mui/DpPaperCompanent';
+import { FormGroup, MenuItem, Select, Switch, Typography } from '@material-ui/core';
+import DpDialogTitle from '../../../../layouts/mui/DpDialogTitle';
+import { useDispatch, useSelector } from 'react-redux';
+import { getLayerSetting, getLayerVisible } from '../../../../models/map/selectors';
+import DpBackgroundDrop from '../../../../layouts/mui/DpBackdrop';
+
+
+function Setting({ onClose }) {
+ const layerVisible = useSelector(getLayerVisible);
+ const layerSetting = useSelector(getLayerSetting);
+
+ const dispath = useDispatch();
+
+ return (
+
+ )
+}
+
+export default Setting;
diff --git a/src/views/Home/panels/Yjsj/index.js b/src/views/Home/panels/Yjsj/index.js
new file mode 100644
index 0000000..1544e3b
--- /dev/null
+++ b/src/views/Home/panels/Yjsj/index.js
@@ -0,0 +1,179 @@
+import React, { useMemo, useState } from 'react';
+import useRequest from '../../../../utils/useRequest';
+import PanelBox from '../../components/PanelBox';
+import { useDispatch, useSelector } from 'react-redux';
+import Table from '@material-ui/core/Table';
+import TableContainer from '@material-ui/core/TableContainer';
+import TableBody from '@material-ui/core/TableBody';
+import TableHead from '@material-ui/core/TableHead';
+import TableRow from '@material-ui/core/TableRow';
+import DpTableCell from '../../../../layouts/mui/DpTableCell';
+import DpTableRow from '../../../../layouts/mui/DpTableRow';
+import clsx from 'clsx';
+import { renderDrp } from '../../../../utils/renutils';
+import moment from 'moment';
+import config from '../../../../config';
+
+const data = [
+ {
+ "stcd": "716129061",
+ "type": "sk",
+ "hasRz": true,
+ "stnm": "仰天窝水库",
+ event: '仰天窝水库蓄水量<30%',
+ types:'干旱',
+ "adcd": "421181201000",
+ "wscd": null,
+ "importancy": 0,
+ "lgtd": 115.106667,
+ "lttd": 31.126389,
+ "elev": 0,
+ "damel": 325.08,
+ "dsflz": 324.18,
+ "fsltdz": 323.5,
+ "ddz": 319.5,
+ "zcxsw": 323.5,
+ "drpTm": "2025-04-11T05:00:00.000Z",
+ "today": 0,
+ "h1": 0,
+ "h3": 0,
+ "h6": 0,
+ "h12": 0,
+ "h24": 0,
+ "h48": 0,
+ "drpState": 2,
+ "rz": 325.16,
+ "w": 0.132,
+ "a_fsltdz": 4.660000000000025,
+ "rzTm": "2025-04-11T05:00:00.000Z",
+ "rzWarning": 1,
+ "rzState": 2,
+ "pic": [
+ {
+ "stcd": "716129061",
+ "tm": "2023-03-12T06:05:00.000Z",
+ "url": "http://223.75.53.106:8891/skjgimages/2023/0312/716129061/20230312140500.jpg"
+ },
+ {
+ "stcd": "716129061",
+ "tm": "2023-03-12T07:25:00.000Z",
+ "url": "http://223.75.53.106:8891/skjgimages/2023/0312/716129062/20230312152500.jpg"
+ }
+ ],
+ "aRz": 4.66
+ },
+
+ {
+ "stcd": "61612910",
+ "stnm": "桃林河(阎河)",
+ "adcd": "421181000000000",
+ event: '桃林河河道水位超警',
+ types: '洪涝',
+
+ "wscd": null,
+ "importancy": 0,
+ "lgtd": 115.087777777,
+ "lttd": 31.164444444,
+ "elev": null,
+ "hasRz": true,
+ "wrz": null,
+ "wrq": null,
+ "grz": null,
+ "grq": null,
+ "sfz": null,
+ "sfq": null,
+ "type": "sh",
+ "tm": "2025-06-03T02:35:00.000Z",
+ "rz": 55.67,
+ "trend": 0,
+ "state": 1,
+ "warning": 0,
+ "maxRz": 55.67,
+ "maxDate": "2025-06-03T02:00:00.000Z",
+ "warndes": null
+ },
+ {
+ "stcd": "61612610",
+ "type": "sk",
+ "hasRz": true,
+ "stnm": "三河口水库",
+ event: '三河口水库水源地水质突变',
+ types:'水质污染',
+ "adcd": "421181109000",
+ "wscd": null,
+ "importancy": 0,
+ "lgtd": 115.166667,
+ "lttd": 31.333333,
+ "elev": 0,
+ "damel": 156.8,
+ "dsflz": 154.99,
+ "fsltdz": 149,
+ "ddz": 124,
+ "zcxsw": 149,
+ "drpTm": "2025-06-03T02:00:00.000Z",
+ "today": 0,
+ "h1": 0,
+ "h3": 0,
+ "h6": 0,
+ "h12": 0,
+ "h24": 0,
+ "h48": 12.5,
+ "drpState": 1,
+ "rz": 141.45,
+ "w": 77.8,
+ "a_fsltdz": -7.550000000000011,
+ "rzTm": "2025-06-03T01:00:00.000Z",
+ "rzWarning": 0,
+ "rzState": 1,
+ "aRz": -7.55
+ },
+]
+
+function DrpReal({ style }) {
+ const dispatch = useDispatch();
+ const flyTo = (record) => {
+ const { lgtd, lttd } = record;
+ const types = record.type == 'sk' ? 'RealSkPop' :'RealHDPop'
+ if (lgtd && lttd) {
+ dispatch.runtime.setFeaturePop({ type:types, properties: {...record,events:1}, coordinates: [lgtd, lttd] });
+ dispatch.runtime.setCameraTarget({
+ center: [lgtd, lttd + config.poiPositionOffsetY.hd],
+ zoom: config.poiPositionZoom.hd,
+ pitch: config.poiPitch,
+ });
+ }
+ }
+
+ return (
+
+
+
+
+
+ 序号
+ 事件名称
+ 事件类型
+ 发生时间
+
+
+
+ {data.map((row,index) => (
+ flyTo(row)}>
+ {index+1}
+ {row.event}
+ {row.types}
+ {moment(row.drpTm).format('YYYY-MM-DD HH:mm:ss')}
+
+ ))}
+
+
+
+
+ )
+}
+
+export default DrpReal;