not impl
diff --git a/src/views/Home/components/ActionDock/index.js b/src/views/Home/components/ActionDock/index.js index ec0f2f3..767d795 100644 --- a/src/views/Home/components/ActionDock/index.js +++ b/src/views/Home/components/ActionDock/index.js @@ -15,9 +15,12 @@ const VIEWS = [ { id: 3, title: '预案', img: '/assets/menu/辅助决策.png' }, { id: 4, title: '预演', img: '/assets/menu/预警分析.png' }, { id: 5, title: '天气预报', img: '/assets/menu/降雨中心.png' }, + { id: 7, title: '调度', img: '/assets/menu/辅助决策.png' }, + ] }, { id: 200, title: '水库', img: '/assets/menu/水库专题.png',children:[ + { id: 207, title: '水库总览', img: '/assets/menu/水库管理.png' }, { id: 201, title: '雨情监测', img: '/assets/menu/雨情监测.png' }, { id: 202, title: '水情监测', img: '/assets/menu/水情监测.png' }, { id: 203, title: '安全监测', img: '/assets/menu/安全监测.png' }, diff --git a/src/views/Home/index.js b/src/views/Home/index.js index 6343898..98cc874 100644 --- a/src/views/Home/index.js +++ b/src/views/Home/index.js @@ -82,8 +82,6 @@ export default function Demo1() { ) } - - } ) } diff --git a/src/views/Home/panels/Ddcg/chart.js b/src/views/Home/panels/Ddcg/chart.js new file mode 100644 index 0000000..5e45e06 --- /dev/null +++ b/src/views/Home/panels/Ddcg/chart.js @@ -0,0 +1,304 @@ +import React, { useMemo } from 'react'; +import echarts from 'echarts/lib/echarts'; +import ReactEcharts from 'echarts-for-react'; + + +const pallete = [ + ['#177ab3', '#51c3e7'], + ['#9976dc', '#c792ee'], + ['#94a1eb', '#a7caf8'], + ['#7ae5c3', '#c9f4ea'], + ['#c7dca5', '#f5fcd5'], + ['#7988d9', '#9dc6f1'], + ['#d9ed8f', '#d3f89b'], +]; + +const palleteLen = pallete.length; + + + + + +const AreaDrpChart = () => { + const x = [ + "2025-06-02 15:00:00", + "2025-06-02 16:00:00", + "2025-06-02 17:00:00", + "2025-06-02 18:00:00", + "2025-06-02 19:00:00", + "2025-06-02 20:00:00", + "2025-06-02 21:00:00", + "2025-06-03 01:00:00", + "2025-06-03 02:00:00", + "2025-06-03 04:00:00", + "2025-06-03 06:00:00", + "2025-06-03 08:00:00", + "2025-06-03 10:00:00", + "2025-06-03 12:00:00", + "2025-06-03 13:00:00", + "2025-06-03 14:00:00" + ] + const y = [ + 134.05, + 134.04, + 134.03, + 134.03, + 134.02, + 134.02, + 134.02, + 134, + 133.99, + 133.99, + 133.97, + 133.97, + 133.97, + 133.98, + 133.97, + 133.97 + ] + + const y1 = [ + 13.05, + 14.04, + 14.03, + 14.03, + 13.02, + 13.02, + 13.02, + 14, + 13.99, + 13.99, + 13.97, + 13.97, + 13.97, + 13.98, + 13.97, + 13.97 + ] + + const y2 = [ + 13.05, + 13.24, + 13.53, + 13.43, + 13.02, + 13.22, + 13.02, + 13, + 13.19, + 13.29, + 13.57, + 13.57, + 13.67, + 13.78, + 13.87, + 13.67 + ] + + + var option = { + tooltip: { + trigger: 'axis', + axisPointer: { + type: 'shadow', + label: { + show: false + } + }, + // valueFormatter: (value) => value + ' 万m³' + }, + grid: { + top: 42, + left: 50, + right: 40, + bottom: 27, + }, + legend: { + data: ['水位','入库流量', '出库流量',], + top: '8', + icon:'circle', + left: 'center', + itemWidth: 11,//11, + itemHeight: 11,//11, + textStyle: { + color: '#B9BFC9', + fontSize: 12,//12 + } + }, + 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轴文字颜色 + }, + formatter: val => val.substr('2020-10-14 '.length, 5), + // rotate: 20, // 角度值:Number + fontSize: 10,//10 + }, + axisLine: { + show: true, //隐藏X轴轴线 + lineStyle: { + color: 'rgba(255,255,255,0.2)', + width: 0 + } + }, + axisTick: { + show: true, + } + } + ], + yAxis: [ + { + type: 'value', + position: 'left', + name: '水位m', + nameTextStyle: { + color: '#B9BFC9', + fontSize: 10,//10, + padding: [0, 0, 0, -40],//[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: 133, + // max: 135, + }, + { + type: 'value', + position: 'right', + name: '流量m³/s', + 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: 0, + max: 30, + } + ], + series: [ + { + name: '水位', + type: 'line', + barWidth: 10, + data: y, + showSymbol: false, + itemStyle: { + normal: { + color: '#32e1b5' + }, + }, + // label: { + // show: true, + // position: 'top', + // color: '#bbb', + // fontSize: 12, + // textShadowBlur: 4, + // textShadowColor: '#6ab', + // }, + }, + { + yAxisIndex: 1, + name: '入库流量', + type: 'line', + barWidth: 10, + showSymbol: false, + data: y1, + itemStyle: { + normal: { + color: '#f19932' + }, + }, + // label: { + // show: true, + // position: 'top', + // color: '#bbb', + // fontSize: 12, + // textShadowBlur: 4, + // textShadowColor: '#6ab', + // }, + }, + { + yAxisIndex: 1, + name: '出库流量', + type: 'line', + barWidth: 10, + showSymbol: false, + data: y2, + itemStyle: { + normal: { + color: '#e1554e' + }, + }, + // label: { + // show: true, + // position: 'top', + // color: '#bbb', + // fontSize: 12, + // textShadowBlur: 4, + // textShadowColor: '#6ab', + // }, + } + ] + }; + + return ( +
*/}
+
+
+ >
+ )
+}
diff --git a/src/views/Home/panels/Tqyb24h/index.js b/src/views/Home/panels/Tqyb24h/index.js
index 1425d7a..011786f 100644
--- a/src/views/Home/panels/Tqyb24h/index.js
+++ b/src/views/Home/panels/Tqyb24h/index.js
@@ -1,9 +1,10 @@
-import React, { useState } from 'react';
+import React, { useEffect, useState } from 'react';
import PanelBox from '../../components/PanelBox';
import clsx from 'clsx';
import { useDispatch, useSelector } from 'react-redux';
import { Button, Grid, makeStyles } from '@material-ui/core'
import Yb24h from './yb24h'
+import Dsld from './dsld'
const useStyles = makeStyles({
root: {
@@ -31,7 +32,21 @@ const useStyles = makeStyles({
export default function AreaDrp({ style }) {
const classes = useStyles();
+ const dispatch = useDispatch();
const [tab,setTab] = useState('1')
+ useEffect(()=>{
+ if(tab==='1'){
+ dispatch.rcview.showRealContour('h24')
+ }else{
+ dispatch.rcview.showRealContour('h48')
+ }
+
+ return ()=>{
+ dispatch.runtime.setLayerSetting({ contour: null, dem: undefined });
+ dispatch.runtime.setLayerSetting({ planeArea: null });
+ dispatch.map.setLayerVisible({ ContourLayer: false });
+ }
+ },[tab])
return (
@@ -65,6 +80,11 @@ export default function AreaDrp({ style }) {
+ //
+ // >
+ // }
+ >
+
+
+ //
+ // >
+ // }
+ >
+
+
*/}
+
+ >
+ }
+ >
+