diff --git a/src/assets/safe_majorHazard/online_monitoring/alarm0.png b/src/assets/safe_majorHazard/online_monitoring/alarm0.png new file mode 100644 index 0000000..f7ed384 Binary files /dev/null and b/src/assets/safe_majorHazard/online_monitoring/alarm0.png differ diff --git a/src/assets/safe_majorHazard/online_monitoring/alarm1.png b/src/assets/safe_majorHazard/online_monitoring/alarm1.png new file mode 100644 index 0000000..70ee597 Binary files /dev/null and b/src/assets/safe_majorHazard/online_monitoring/alarm1.png differ diff --git a/src/assets/safe_majorHazard/online_monitoring/alarm2.png b/src/assets/safe_majorHazard/online_monitoring/alarm2.png new file mode 100644 index 0000000..b825d9c Binary files /dev/null and b/src/assets/safe_majorHazard/online_monitoring/alarm2.png differ diff --git a/src/assets/safe_majorHazard/online_monitoring/alarm3.png b/src/assets/safe_majorHazard/online_monitoring/alarm3.png new file mode 100644 index 0000000..a4c93eb Binary files /dev/null and b/src/assets/safe_majorHazard/online_monitoring/alarm3.png differ diff --git a/src/pages/safe_majorHazard/module/EvaluationReport.js b/src/pages/safe_majorHazard/module/EvaluationReport.js index b6297cc..2c7037e 100644 --- a/src/pages/safe_majorHazard/module/EvaluationReport.js +++ b/src/pages/safe_majorHazard/module/EvaluationReport.js @@ -1,18 +1,32 @@ -import React from 'react'; // ======== 导入React库,用于创建React组件 ======== -import { Card, Result } from 'antd'; // ======== 导入Ant Design的Card和Result组件 ======== - -const EvaluationReport = () => { // ======== 定义评估报告及隐患处理组件函数 ======== - return ( // ======== 返回JSX结构 ======== -
// ======== 外层容器,设置24px内边距 ======== - // ======== Card组件,标题为"评估报告及隐患处理",高度为父级100% ======== - // ======== Result组件结束 ======== - -
// ======== 外层容器结束 ======== - ); // ======== return语句结束 ======== -}; // ======== 组件函数结束 ======== - -export default EvaluationReport; // ======== 导出组件供其他文件使用 ======== \ No newline at end of file +import React from 'react'; +import { Card, Result } from 'antd'; +import styles from './EvaluationReport.less'; + +const EvaluationReport = () => { + return ( +
+
+
+
+
+ +
+
+ +
+
+ +
+ + +
+ + +
+ + + + ); +}; + +export default EvaluationReport; \ No newline at end of file diff --git a/src/pages/safe_majorHazard/module/EvaluationReport.less b/src/pages/safe_majorHazard/module/EvaluationReport.less new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/safe_majorHazard/module/OnlineMonitoring.js b/src/pages/safe_majorHazard/module/OnlineMonitoring.js index 874ff58..be11243 100644 --- a/src/pages/safe_majorHazard/module/OnlineMonitoring.js +++ b/src/pages/safe_majorHazard/module/OnlineMonitoring.js @@ -1,19 +1,49 @@ -import React from 'react'; // ======== 导入React库,用于创建React组件 ======== -import { Card, Result } from 'antd'; // ======== 导入Ant Design的Card和Result组件 ======== - -const OnlineMonitoring = () => { // ======== 定义在线监测预警组件函数 ======== - return ( // ======== 返回JSX结构 ======== -
// ======== 外层容器,设置24px内边距 ======== - // ======== Card组件,标题为"在线监测预警",高度为父级100% ======== - // ======== Result组件结束 ======== - // ======== Card组件结束 ======== -
// ======== 外层容器结束 ======== - ); // ======== return语句结束 ======== -}; // ======== 组件函数结束 ======== - -export default OnlineMonitoring; // ======== 导出组件供其他文件使用 ======== \ No newline at end of file +import React from 'react'; +import { Card, Result } from 'antd'; +import styles from './OnlineMonitoring.less'; + +import alarm0 from '@/assets/safe_majorHazard/online_monitoring/alarm0.png'; +import alarm1 from '@/assets/safe_majorHazard/online_monitoring/alarm1.png'; +import alarm2 from '@/assets/safe_majorHazard/online_monitoring/alarm2.png'; +import alarm3 from '@/assets/safe_majorHazard/online_monitoring/alarm3.png'; + + + +const OnlineMonitoring = () => { + return ( +
+
+
+
+
+ +
+ alarm0 +
+
+
总报警
+
1456
+
+
+ 未处理 6 +
+
处理中 10
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ ); +}; + +export default OnlineMonitoring; \ No newline at end of file diff --git a/src/pages/safe_majorHazard/module/OnlineMonitoring.less b/src/pages/safe_majorHazard/module/OnlineMonitoring.less new file mode 100644 index 0000000..6f49aab --- /dev/null +++ b/src/pages/safe_majorHazard/module/OnlineMonitoring.less @@ -0,0 +1,107 @@ +.Econtainer { + padding: 8px 6px; + height: 100%; + display: flex; + flex-direction: column; + + .EcontainerTop { + display: flex; + gap: 12px; + height: 50%; + margin-bottom: 5px; + + .EcontainerTopLeft { + background-color: #999; + width: 68%; + margin-right: 10px; + + .EcontainerTopLeftTop { + width: 100%; + height: 35%; + display: flex; + gap: 12px; + + .alarmO { + flex: 1; + height: 100%; + background-color: #F4F7FF; + border: 1px solid #AED3FF; + border-bottom: 0px solid #AED3FF; + border-radius: 4px; + box-shadow: 0px 2px 31px 0px #5382FE33 inset; + display: flex; + + + .alarmOLeft { + width: 35%; + height: 100%; + display: flex; + justify-content: center; + align-items: center; + } + + .alarmORight { + flex: 1; + width: 35%; + height: 100%; + display: flex; + flex-direction: column; + background-color: pink; + + font-family: PingFang SC; + font-weight: 400; + font-style: Regular; + font-size: 14px; + line-height: 100%; + letter-spacing: 0%; + color: #333333; + } + + + + } + + .alarmTw { + flex: 1; + height: 100%; + background-color: #FFF5f4; + border: 1px solid #FFC5BC; + border-bottom: 0px solid #FFC5BC; + border-radius: 4px; + box-shadow: 0px 2px 31px 0px #FE5F4C33 inset; + } + + .alarmTh { + flex: 1; + height: 100%; + background-color: #FFF7F2; + border: 1px solid #FFD9B2; + border-bottom: 0px solid #FFD9B2; + border-radius: 4px; + box-shadow: 0px 2px 31px 0px #FD883C33 inset; + } + + .alarmF { + flex: 1; + height: 100%; + background-color: #EFF9FF; + border: 1px solid #89E1FF; + border-bottom: 0px solid #89E1FF; + border-radius: 4px; + box-shadow: 0px 2px 31px 0px #22A4FD33 inset; + } + } + } + + .EcontainerLeftBottom { + background-color: #999; + width: 42%; + } + } + + .EcontainerBottom { + background-color: #666; + flex: 1; + } + +} \ No newline at end of file