import clsx from 'clsx'; import React, { useMemo, useState,useEffect } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import useRequest from '../../../../utils/useRequest'; import PanelBox from '../../components/PanelBox'; import { Box, Typography, Checkbox, FormControlLabel, ButtonGroup, Button, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, IconButton, Collapse, Paper } from '@material-ui/core'; import RemoveIcon from '@material-ui/icons/Remove'; import { makeStyles } from '@material-ui/core/styles'; import AddIcon from '@material-ui/icons/Add'; import DpTableCell from '../../../../layouts/mui/DpTableCell'; import DpTableRow from '../../../../layouts/mui/DpTableRow'; import appconsts from '../../../../models/appconsts'; import { DatePicker } from 'antd'; import { SkRealPromise } from '../../../../models/_/real'; import { InfoPopNames } from '../../InfoPops'; import { renderDrp, renderSkArz, renderSkRz } from '../../../../utils/renutils'; import config from '../../../../config'; import moment from 'moment'; const { RangePicker } = DatePicker; const ljtj = [ {'level':'≥250',children:[],stcd:'001'}, {'level':'100~250',children:[],stcd:'002'}, {'level':'50~100',children:[],stcd:'003'}, {'level':'25~50',children:[],stcd:'004'}, {'level':'10~25',children:[ { "stcd": "61612910", "stnm": "桃林河(阎河)", "adcd": "421181000000000", "wscd": null, "importancy": 0, "lgtd": 115.087777777, "lttd": 31.164444444, "elev": null, "hasRz": true, "type": "sh", "today": 0, "h1": 7, "h3": 8.4, "h6": 10.5, "h12": 11.200000000000001, "h24": 12.6, "h48": 32.8, "tm": "2025-06-03T02:10:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61614460", "stnm": "项生(宋埠)", "adcd": "421181000000000", "wscd": null, "importancy": 0, "lgtd": 114.798056, "lttd": 31.058611, "elev": null, "hasRz": true, "type": "sh", "today": 0, "h1": 6, "h3": 7.199999999999999, "h6": 9, "h12": 9.600000000000001, "h24": 10.8, "h48": 11.899999999999999, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61615110", "stnm": "杨梅河(木子店)", "adcd": "421181000000000", "wscd": null, "importancy": 0, "lgtd": 115.339667, "lttd": 31.1595, "elev": null, "hasRz": true, "type": "sh", "today": 0, "h1": 7, "h3": 8.4, "h6": 10.5, "h12": 11.200000000000001, "h24": 12.6, "h48": 31.299999999999997, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61640390", "stnm": "两路口(福田河)", "adcd": "421181000000000", "wscd": null, "importancy": 0, "lgtd": 115.158167, "lttd": 31.56833, "elev": null, "hasRz": false, "type": "sh", "today": 0, "h1": 7, "h3": 8.4, "h6": 10.5, "h12": 11.200000000000001, "h24": 12.6, "h48": 24.799999999999997, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61640700", "stnm": "新屋河(黄土岗)", "adcd": "421181000000000", "wscd": null, "importancy": 0, "lgtd": 115.045277777, "lttd": 31.404444444, "elev": null, "hasRz": false, "type": "sh", "today": 0, "h1": 7, "h3": 8.9, "h6": 11, "h12": 11.700000000000001, "h24": 13.6, "h48": 21.299999999999997, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61640850", "stnm": "喻家垸(黄土岗)", "adcd": "421181000000000", "wscd": null, "importancy": 0, "lgtd": 115.033889, "lttd": 31.42, "elev": null, "hasRz": false, "type": "sh", "today": 0, "h1": 9, "h3": 10.799999999999999, "h6": 13.5, "h12": 14.4, "h24": 16.2, "h48": 33.099999999999994, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61641500", "stnm": "黄金桥(开发区)", "adcd": "421181000000000", "wscd": null, "importancy": 0, "lgtd": 114.9749, "lttd": 31.165, "elev": null, "hasRz": false, "type": "sh", "today": 0, "h1": 9, "h3": 10.799999999999999, "h6": 13.5, "h12": 14.4, "h24": 16.2, "h48": 34.099999999999994, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61641610", "stnm": "张广河(三河口)", "adcd": "421181000000000", "wscd": null, "importancy": 0, "lgtd": 115.314167, "lttd": 31.349667, "elev": null, "hasRz": false, "type": "sh", "today": 0, "h1": 7, "h3": 8.4, "h6": 10.5, "h12": 11.200000000000001, "h24": 12.6, "h48": 24.799999999999997, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61641700", "stnm": "前畈(三河口)", "adcd": "421181000000000", "wscd": null, "importancy": 0, "lgtd": 115.2267, "lttd": 31.3925, "elev": null, "hasRz": false, "type": "sh", "today": 0, "h1": 7, "h3": 8.4, "h6": 10.5, "h12": 11.200000000000001, "h24": 12.6, "h48": 22.799999999999997, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61641750", "stnm": "金盘地(三河口)", "adcd": "421181000000000", "wscd": null, "importancy": 0, "lgtd": 115.2188, "lttd": 31.2545, "elev": null, "hasRz": false, "type": "sh", "today": 0, "h1": 8, "h3": 9.6, "h6": 12, "h12": 12.8, "h24": 14.4, "h48": 31.7, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61641900", "stnm": "周家河(三河口)", "adcd": "421181000000000", "wscd": null, "importancy": 0, "lgtd": 115.164166666, "lttd": 31.32916667, "elev": null, "hasRz": false, "type": "sh", "today": 0, "h1": 6, "h3": 7.199999999999999, "h6": 9, "h12": 10.100000000000001, "h24": 11.3, "h48": 24.9, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61642030", "stnm": "风景区(龟山)", "adcd": "421181000000000", "wscd": null, "importancy": 0, "lgtd": 115.227377, "lttd": 31.147366, "elev": null, "hasRz": false, "type": "sh", "today": 0, "h1": 7, "h3": 8.4, "h6": 10.5, "h12": 11.200000000000001, "h24": 12.6, "h48": 35.3, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61642850", "stnm": "响堂垸(龟山)", "adcd": "421181000000000", "wscd": null, "importancy": 0, "lgtd": 115.153056, "lttd": 31.032222, "elev": null, "hasRz": false, "type": "sh", "today": 0, "h1": 6, "h3": 7.199999999999999, "h6": 9, "h12": 9.600000000000001, "h24": 10.8, "h48": 36.9, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61643050", "stnm": "塘西垸(南湖)", "adcd": "421181000000000", "wscd": null, "importancy": 0, "lgtd": 115.001667, "lttd": 31.098333, "elev": null, "hasRz": false, "type": "sh", "today": 0, "h1": 7, "h3": 8.4, "h6": 10.5, "h12": 11.200000000000001, "h24": 12.6, "h48": 33.3, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61643300", "stnm": "西张店(顺河)", "adcd": "421181000000000", "wscd": null, "importancy": 0, "lgtd": 114.8796, "lttd": 31.4305, "elev": null, "hasRz": false, "type": "sh", "today": 0, "h1": 6, "h3": 7.199999999999999, "h6": 9.5, "h12": 10.100000000000001, "h24": 11.3, "h48": 29.9, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 } ],stcd:'005'}, {'level':'0.1~10',stcd:'006',children:[ { "stcd": "61612150", "stnm": "鹰山畈(黄土岗)", "adcd": "421181000000000", "wscd": null, "importancy": 0, "lgtd": 115.073611, "lttd": 31.386667, "elev": null, "hasRz": true, "type": "sh", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 12.9, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61613700", "stnm": "四角门(宋铁二桥)", "adcd": "421181000000000", "wscd": null, "importancy": 0, "lgtd": 114.8291, "lttd": 31.0754, "elev": null, "hasRz": true, "type": "sh", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 23.4, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61640980", "stnm": "飞龙山(乘马岗)", "adcd": "421181000000000", "wscd": null, "importancy": 0, "lgtd": 114.9492, "lttd": 31.304, "elev": null, "hasRz": false, "type": "sh", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 19.8, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61643990", "stnm": "安家畈(顺河)", "adcd": "421181000000000", "wscd": null, "importancy": 0, "lgtd": 114.831111111, "lttd": 31.302777777, "elev": null, "hasRz": false, "type": "sh", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 14.9, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61645240", "stnm": "卢家河(夫子河)", "adcd": "421181000000000", "wscd": null, "importancy": 0, "lgtd": 115.143611111, "lttd": 31.083888888, "elev": null, "hasRz": false, "type": "sh", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 21.4, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61645270", "stnm": "青草河(夫子河)", "adcd": "421181000000000", "wscd": null, "importancy": 0, "lgtd": 115.0281, "lttd": 31.0026, "elev": null, "hasRz": false, "type": "sh", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 23.9, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "716115701", "stnm": "二五冲水库", "adcd": "421181110000", "wscd": null, "importancy": 0, "lgtd": 115.087222, "lttd": 31.378333, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-03-22T08:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716126501", "stnm": "破堰水库", "adcd": "421181102000", "wscd": null, "importancy": 0, "lgtd": 114.696111, "lttd": 31.025556, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "716126301", "stnm": "淮海水库", "adcd": "421181102000", "wscd": null, "importancy": 0, "lgtd": 114.694722, "lttd": 31.053333, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716108501", "stnm": "东风水库", "adcd": "421181102000", "wscd": null, "importancy": 0, "lgtd": 115.232222, "lttd": 30.970556, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-03-22T08:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "7CS000081", "stnm": "陡山洪水库", "adcd": "421181102000", "wscd": null, "importancy": 0, "lgtd": 114.724722, "lttd": 31.007222, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716131101", "stnm": "滴水岩水库", "adcd": "421181103000", "wscd": null, "importancy": 0, "lgtd": 115.063611, "lttd": 30.9875, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "716119801", "stnm": "乌水寨水库", "adcd": "421181112000", "wscd": null, "importancy": 0, "lgtd": 115.003611, "lttd": 31.410833, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "716111561", "stnm": "虎形地水库", "adcd": "421181001000", "wscd": null, "importancy": 0, "lgtd": 115.022222, "lttd": 31.169444, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716116901", "stnm": "海元桥水库", "adcd": "421181001000", "wscd": null, "importancy": 0, "lgtd": 115.003611, "lttd": 31.189722, "elev": 0, "hasRz": true, "type": "sk", "tm": "2024-05-17T08:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "716119201", "stnm": "狮子口水库", "adcd": "421181111000", "wscd": null, "importancy": 0, "lgtd": 115.197222, "lttd": 31.443056, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716118601", "stnm": "木鱼脑水库", "adcd": "421181111000", "wscd": null, "importancy": 0, "lgtd": 115.079722, "lttd": 31.481389, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716115101", "stnm": "伍家凹水库", "adcd": "421181111000", "wscd": null, "importancy": 0, "lgtd": 115.1, "lttd": 31.51, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "716114401", "stnm": "大石板水库", "adcd": "421181104000", "wscd": null, "importancy": 0, "lgtd": 115.058611, "lttd": 30.926944, "elev": 0, "hasRz": true, "type": "sk", "tm": "2023-03-21T09:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "716108701", "stnm": "沙丘水库", "adcd": "421181200000", "wscd": null, "importancy": 0, "lgtd": 114.914722, "lttd": 31.047222, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T06:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716124561", "stnm": "文家冲水库", "adcd": "421181113000", "wscd": null, "importancy": 0, "lgtd": 114.891111, "lttd": 31.224722, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T06:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "716112701", "stnm": "红卫水库", "adcd": "421181201000", "wscd": null, "importancy": 0, "lgtd": 115.067222, "lttd": 31.105, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716127701", "stnm": "高兴水库", "adcd": "421181201000", "wscd": null, "importancy": 0, "lgtd": 115.172222, "lttd": 31.194722, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716130601", "stnm": "鱼秧塘水库", "adcd": "421181106000", "wscd": null, "importancy": 0, "lgtd": 115.382222, "lttd": 31.1, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T06:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716166101", "stnm": "幸福水库", "adcd": "421181107000", "wscd": null, "importancy": 0, "lgtd": 115.364722, "lttd": 31.198889, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716112501", "stnm": "积雨咀水库", "adcd": "421181105000", "wscd": null, "importancy": 0, "lgtd": 115.102222, "lttd": 31.233056, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T06:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716121301", "stnm": "灯塔水库", "adcd": "421181105000", "wscd": null, "importancy": 0, "lgtd": 115.119722, "lttd": 31.268056, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T00:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716127801", "stnm": "白衣庵水库", "adcd": "421181105000", "wscd": null, "importancy": 0, "lgtd": 115.176111, "lttd": 31.2025, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T06:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "716166801", "stnm": "东风水库", "adcd": "421181108000", "wscd": null, "importancy": 0, "lgtd": 115.232222, "lttd": 30.970556, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T06:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716120901", "stnm": "细垸冲水库", "adcd": "421181109000", "wscd": null, "importancy": 0, "lgtd": 115.207222, "lttd": 31.385556, "elev": 0, "hasRz": true, "type": "sk", "tm": "2024-05-31T07:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716121201", "stnm": "王家山水库", "adcd": "421181109000", "wscd": null, "importancy": 0, "lgtd": 115.159722, "lttd": 31.319722, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716167501", "stnm": "柏树垸水库", "adcd": "421181107000", "wscd": null, "importancy": 0, "lgtd": 115.421111, "lttd": 31.341667, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T06:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "716130461", "stnm": "垅下水库", "adcd": "421181107000", "wscd": null, "importancy": 0, "lgtd": 115.364722, "lttd": 31.218056, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716124301", "stnm": "土门水库", "adcd": "421181113000", "wscd": null, "importancy": 0, "lgtd": 114.887222, "lttd": 31.255833, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T06:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716124661", "stnm": "井坎水库", "adcd": "421181113000", "wscd": null, "importancy": 0, "lgtd": 114.912222, "lttd": 31.211944, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T06:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716124101", "stnm": "学堂凹水库", "adcd": "421181113000", "wscd": null, "importancy": 0, "lgtd": 114.848611, "lttd": 31.276111, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T06:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "716127301", "stnm": "驻峰山水库", "adcd": "421181201000", "wscd": null, "importancy": 0, "lgtd": 115.273611, "lttd": 31.196944, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "716125061", "stnm": "蔡家凹水库", "adcd": "421181101000", "wscd": null, "importancy": 0, "lgtd": 114.757222, "lttd": 31.183611, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T06:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716125401", "stnm": "细屋艾水库", "adcd": "421181101000", "wscd": null, "importancy": 0, "lgtd": 114.778611, "lttd": 31.167222, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T06:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "716125901", "stnm": "庙凹水库", "adcd": "421181101000", "wscd": null, "importancy": 0, "lgtd": 114.807222, "lttd": 31.135833, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716118701", "stnm": "夏家冲水库", "adcd": "421181111000", "wscd": null, "importancy": 0, "lgtd": 115.026111, "lttd": 31.492778, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-03-11T16:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "716114801", "stnm": "杨家凹水库", "adcd": "421181111000", "wscd": null, "importancy": 0, "lgtd": 115.142222, "lttd": 31.556389, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716114701", "stnm": "汪家凹水库", "adcd": "421181111000", "wscd": null, "importancy": 0, "lgtd": 115.147222, "lttd": 31.590278, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716123801", "stnm": "胡家塘水库", "adcd": "421181113000", "wscd": null, "importancy": 0, "lgtd": 114.916111, "lttd": 31.2875, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-03-12T11:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "716111751", "stnm": "鸡翅关水库", "adcd": "421181110000", "wscd": null, "importancy": 0, "lgtd": 115.129722, "lttd": 31.354167, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716118801", "stnm": "小洋冲水库", "adcd": "421181110000", "wscd": null, "importancy": 0, "lgtd": 115.003611, "lttd": 31.478889, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "716120701", "stnm": "栗树岩水库", "adcd": "421181110000", "wscd": null, "importancy": 0, "lgtd": 115.138611, "lttd": 31.343056, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "716118901", "stnm": "何家洼水库", "adcd": "421181110000", "wscd": null, "importancy": 0, "lgtd": 115.041111, "lttd": 31.455556, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "716128101", "stnm": "龟尾水库", "adcd": "421181201000", "wscd": null, "importancy": 0, "lgtd": 115.244722, "lttd": 31.140833, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716126801", "stnm": "群力水库", "adcd": "421181109000", "wscd": null, "importancy": 0, "lgtd": 115.347222, "lttd": 31.285, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716121311", "stnm": "猴儿冲水库", "adcd": "421181109000", "wscd": null, "importancy": 0, "lgtd": 115.167222, "lttd": 31.267222, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "7CS000091", "stnm": "神仙桥水库", "adcd": "421181109000", "wscd": null, "importancy": 0, "lgtd": 115.208611, "lttd": 31.261389, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "61612560", "stnm": "大河铺水库", "adcd": "421181112000", "wscd": null, "importancy": 0, "lgtd": 114.941111, "lttd": 31.464444, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-06-03T02:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 10.4, "state": 1, "warning": 0 }, { "stcd": "716167401", "stnm": "板栗沟水库", "adcd": "421181106000", "wscd": null, "importancy": 0, "lgtd": 115.279722, "lttd": 30.970833, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716112601", "stnm": "永丰水库", "adcd": "421181003000", "wscd": null, "importancy": 0, "lgtd": 115.057222, "lttd": 31.110833, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T06:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716116801", "stnm": "古堰冲水库", "adcd": "421181003000", "wscd": null, "importancy": 0, "lgtd": 114.977222, "lttd": 31.204167, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716129701", "stnm": "蔡家河水库", "adcd": "421181201000", "wscd": null, "importancy": 0, "lgtd": 115.137222, "lttd": 31.065833, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716176401", "stnm": "寨上水库", "adcd": "421181201000", "wscd": null, "importancy": 0, "lgtd": 115.223611, "lttd": 31.055833, "elev": 0, "hasRz": true, "type": "sk", "tm": "2024-12-27T14:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "7CS000121", "stnm": "鲁家冲水库", "adcd": "421181109000", "wscd": null, "importancy": 0, "lgtd": 0, "lttd": 0, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 0, "h3": 0, "h6": 0, "h12": 0, "h24": 0, "h48": 0, "state": 2, "warning": 0 }, { "stcd": "716128401", "stnm": "荣家山水库", "adcd": "421181201000", "wscd": null, "importancy": 0, "lgtd": 115.219722, "lttd": 31.055, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "716117001", "stnm": "乌泥墩水库", "adcd": "421181002000", "wscd": null, "importancy": 0, "lgtd": 115.054722, "lttd": 31.185833, "elev": 0, "hasRz": true, "type": "sk", "tm": "2024-12-19T15:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "7CS000221", "stnm": "猪嘴岩水库", "adcd": "421181106000", "wscd": null, "importancy": 0, "lgtd": 115.31, "lttd": 31.024444, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-09T18:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "7CS000111", "stnm": "八斗丘水库", "adcd": "421181109000", "wscd": null, "importancy": 0, "lgtd": 115.233611, "lttd": 31.250833, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T05:00:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "7CS000171", "stnm": "丁家洼水库", "adcd": "421181001000", "wscd": null, "importancy": 0, "lgtd": 115.012222, "lttd": 31.215833, "elev": 0, "hasRz": true, "type": "sk", "tm": "2025-04-11T06:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "61611260", "stnm": "永丰水库 ", "adcd": null, "wscd": null, "importancy": 0, "lgtd": 115.05541, "lttd": 31.11106, "elev": null, "hasRz": true, "type": "sw", "type2": "swsk", "tm": "2025-05-28T09:05:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "61611400", "stnm": "高峰水库 ", "adcd": null, "wscd": null, "importancy": 0, "lgtd": 115.21201, "lttd": 31.05011, "elev": null, "hasRz": true, "type": "sw", "type2": "swsk", "tm": "2025-05-28T09:05:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "61611520", "stnm": "长冲水库 ", "adcd": null, "wscd": null, "importancy": 0, "lgtd": 115.07142, "lttd": 31.46004, "elev": null, "hasRz": true, "type": "sw", "type2": "swsk", "tm": "2025-05-28T09:05:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "61611750", "stnm": "张家冲水库 ", "adcd": null, "wscd": null, "importancy": 0, "lgtd": 114.9962, "lttd": 31.14725, "elev": null, "hasRz": true, "type": "sw", "type2": "swsk", "tm": "2024-11-05T04:05:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "61612476", "stnm": "黄牛出洞水库 ", "adcd": null, "wscd": null, "importancy": 0, "lgtd": 114.92642, "lttd": 31.20223, "elev": null, "hasRz": true, "type": "sw", "type2": "swsk", "tm": "2025-04-11T06:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "61612660", "stnm": "毛屋湾水库 ", "adcd": null, "wscd": null, "importancy": 0, "lgtd": 114.69332, "lttd": 31.00302, "elev": null, "hasRz": true, "type": "sw", "type2": "swsk", "tm": "2024-12-30T06:00:00.000Z", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "state": 2, "warning": 0 }, { "stcd": "61612720", "stnm": "柏树岩水库 ", "adcd": null, "wscd": null, "importancy": 0, "lgtd": 115.27221, "lttd": 31.22158, "elev": null, "hasRz": true, "type": "sw", "type2": "swsk", "tm": "2025-05-28T09:05:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "61612990", "stnm": "杨家榜水库 ", "adcd": null, "wscd": null, "importancy": 0, "lgtd": 115.09591, "lttd": 31.04789, "elev": null, "hasRz": true, "type": "sw", "type2": "swsk", "tm": "2023-09-10T04:05:00.000Z", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "state": 2, "warning": 0 }, { "stcd": "61640400", "stnm": "朱家大庙", "adcd": null, "wscd": null, "importancy": 0, "lgtd": 115.158361, "lttd": 31.590417, "elev": null, "hasRz": false, "type": "sw", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 24.9, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61644300", "stnm": "中驿", "adcd": null, "wscd": null, "importancy": 0, "lgtd": 114.86851, "lttd": 31.135709, "elev": null, "hasRz": false, "type": "sw", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 18.9, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61645300", "stnm": "张师脑", "adcd": null, "wscd": null, "importancy": 0, "lgtd": 114.957611, "lttd": 31.034861, "elev": null, "hasRz": false, "type": "sw", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 23.4, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "61647200", "stnm": "龟山", "adcd": null, "wscd": null, "importancy": 0, "lgtd": 115.16721, "lttd": 31.083, "elev": null, "hasRz": false, "type": "sw", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 24.4, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "Q0144", "stnm": "武麻高速K702", "adcd": null, "wscd": null, "importancy": 0, "lgtd": 115.3422, "lttd": 31.1828, "elev": null, "hasRz": false, "type": "qx", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "Q0147", "stnm": "大广北高速K2342+540", "adcd": null, "wscd": null, "importancy": 0, "lgtd": 114.9111, "lttd": 31.2822, "elev": null, "hasRz": false, "type": "qx", "today": 0, "h1": 1, "h3": 1.2, "h6": 1.5, "h12": 1.6, "h24": 1.8, "h48": 1.9, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "Q0148", "stnm": "大广北高速K2350+400", "adcd": null, "wscd": null, "importancy": 0, "lgtd": 114.9272, "lttd": 31.2119, "elev": null, "hasRz": false, "type": "qx", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 3.8, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "Q9102", "stnm": "杉林河水库", "adcd": null, "wscd": null, "importancy": 0, "lgtd": 115.4322, "lttd": 31.3028, "elev": null, "hasRz": false, "type": "qx", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 19.7, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "Q9104", "stnm": "蔡店河", "adcd": null, "wscd": null, "importancy": 0, "lgtd": 115.3122, "lttd": 31.0506, "elev": null, "hasRz": false, "type": "qx", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.7, "h48": 23.400000000000002, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "Q9119", "stnm": "长岭岗", "adcd": null, "wscd": null, "importancy": 0, "lgtd": 115.0442, "lttd": 31.275, "elev": null, "hasRz": false, "type": "qx", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 19.6, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "Q9126", "stnm": "茶铺站", "adcd": null, "wscd": null, "importancy": 0, "lgtd": 115.1892, "lttd": 31.0017, "elev": null, "hasRz": false, "type": "qx", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 24.1, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 }, { "stcd": "Q9129", "stnm": "麻城老站", "adcd": null, "wscd": null, "importancy": 0, "lgtd": 115.02, "lttd": 31.1867, "elev": null, "hasRz": false, "type": "qx", "today": 0, "h1": 2, "h3": 2.4, "h6": 3, "h12": 3.2, "h24": 3.6, "h48": 23.8, "tm": "2025-06-03T02:00:00.000Z", "state": 1, "warning": 0 } ]}, ] const useStyles = makeStyles((theme) => ({ root: { color: '#fff' }, table: { '& .MuiTableCell-root': { color: '#fff', borderBottom: '1px solid rgba(255, 255, 255, 0.1)' } }, warningRow: { '&.immediate': { backgroundColor: '#d32f2f' }, '&.prepare': { backgroundColor: '#ed6c02' } }, expandIcon: { marginRight: theme.spacing(1), fontSize: 20, cursor: 'pointer', transition: 'transform 0.3s', '&.expanded': { transform: 'rotate(180deg)' } }, warningCount: { marginLeft: theme.spacing(1) }, expandedContent: { backgroundColor: 'rgba(0, 0, 0, 0.2)', padding: theme.spacing(2) }, statsSection: { marginTop: theme.spacing(4) }, statsTitle: { color: '#1976d2', marginBottom: theme.spacing(3) }, warningStats: { display: 'flex', justifyContent: 'space-around', marginTop: theme.spacing(2) }, statItem: { display: 'flex', flexDirection: 'column', alignItems: 'center' }, warningIcon: { fontSize: 40, marginBottom: theme.spacing(1), '&.immediate': { color: '#d32f2f' }, '&.prepare': { color: '#ed6c02' } }, })); export default function AreaDrp({ style }) { const dispatch = useDispatch(); const classes = useStyles(); const [params, setParams] = useState({ tm: [moment(),moment().add(1,'days')] }) const [tabVal, setTabVal] = useState('1') const [expanded, setExpanded] = useState({}); let { data } = useRequest(SkRealPromise.get); const sortedData = useMemo(() => (data || []).sort((a, b) => (b.aRz - a.aRz), [data])); const flyTo = (record) => { const { lgtd, lttd } = record; if (lgtd && lttd) { dispatch.runtime.setFeaturePop({ type: 'RealDrpPop', properties: record, coordinates: [lgtd, lttd] }); dispatch.runtime.setCameraTarget({ center: [lgtd, lttd + config.poiPositionOffsetY.sk], zoom: config.poiPositionZoom.sk, pitch: config.poiPitch, bearing: 0, }); } } const handleExpand = (type) => { setExpanded(prev => ({ // ...prev, [type]: !prev[type] })); }; return ( <>
>
)
}