- {
+ {/* {
hisdata?.length > 0 &&
当前无预警,显示最新10条已关闭预警
- }
+ } */}
{
showdata.map(o => (
diff --git a/src/views/Home/panels/Zdgzsq/index.js b/src/views/Home/panels/Zdgzsq/index.js
new file mode 100644
index 0000000..58f76e3
--- /dev/null
+++ b/src/views/Home/panels/Zdgzsq/index.js
@@ -0,0 +1,78 @@
+import React, { useMemo, useState } from 'react';
+import useRequest from '../../../../utils/useRequest';
+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 { DrpRealPromise } from '../../../../models/_/real';
+import useRefresh from '../../../../utils/useRefresh';
+import clsx from 'clsx';
+import { renderDrp } from '../../../../utils/renutils';
+import { TableSortLabel } from '@material-ui/core';
+import { InfoPopNames } from '../../InfoPops';
+// import AreaDrpChart from './chart';
+import config from '../../../../config';
+import TablePage from './table.js'
+
+function DrpReal({ style }) {
+ const dispatch = useDispatch();
+ const [ tab, setTab ] = useState('1')
+ const data = [
+ { name:'余家河', dm:'华光潭二级...', hfsw:'224.1', hfll:'30.25', tm:'05-29 14:00' },
+ { name:'朱家河', dm:'龙岗假山头', hfsw:'130.55', hfll:'55.65', tm:'05-29 14:30' },
+ { name:'举水', dm:'昌化', hfsw:'103.22', hfll:'75.61', tm:'05-29 15:00' },
+ { name:'巴水', dm:'河桥', hfsw:'85.86', hfll:'15.72', tm:'05-30 02:00' },
+ { name:'沙河', dm:'於潜', hfsw:'69.09', hfll:'15.11', tm:'05-29 14:00' },
+ ]
+
+ const flyTo = (record) => {
+ const { lgtd, lttd } = record;
+ if (lgtd && lttd) {
+ dispatch.runtime.setFeaturePop({ type: InfoPopNames.RealDrpPop, properties: record, coordinates: [lgtd, lttd] });
+ dispatch.runtime.setCameraTarget({
+ center: [lgtd, lttd + config.poiPositionOffsetY.drp],
+ zoom: config.poiPositionZoom.drp,
+ pitch: config.poiPitch,
+ bearing: 0
+ });
+ }
+ }
+
+
+ return (
+
+ >
+ }
+ extra={
+ <>
+
+ setTab('1')}>河道
+ setTab('1')}>水库
+
+ >
+ }
+ >
+
+
+ 政区
+ 流域
+
+
+
+
+
+ )
+}
+
+export default DrpReal;
diff --git a/src/views/Home/panels/Zdgzsq/table.js b/src/views/Home/panels/Zdgzsq/table.js
new file mode 100644
index 0000000..80109bc
--- /dev/null
+++ b/src/views/Home/panels/Zdgzsq/table.js
@@ -0,0 +1,56 @@
+import React, { useMemo, useState } from 'react';
+import useRequest from '../../../../utils/useRequest';
+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 appconsts from '../../../../models/appconsts';
+import { renderDrp, renderSkArz, renderSkRz } from '../../../../utils/renutils';
+
+
+const data = [
+ { name:'余家河', dm:'华光潭二级...', hfsw:'224.1', hfll:'30.25', tm:'05-29 14:00' },
+ { name:'朱家河', dm:'龙岗假山头', hfsw:'130.55', hfll:'55.65', tm:'05-29 14:30' },
+ { name:'举水', dm:'昌化', hfsw:'103.22', hfll:'75.61', tm:'05-29 15:00' },
+ { name:'巴水', dm:'河桥', hfsw:'85.86', hfll:'15.72', tm:'05-30 02:00' },
+ { name:'沙河', dm:'於潜', hfsw:'69.09', hfll:'15.11', tm:'05-29 14:00' },
+]
+
+function Page({ style }) {
+
+ return (
+
+
+
+
+ 河流名称
+ 断面名称
+ 洪峰水位
+ 洪峰流量
+ 峰现时间
+
+
+
+ {data.map((row) => (
+
+
+ {}}>{row.name}
+
+ {row.dm}
+ {row.hfsw}
+ {row.hfll}
+ {row.tm}
+
+ ))}
+
+
+
+ )
+}
+
+export default React.memo(Page);