diff --git a/src/assets/img/Frame.svg b/src/assets/img/Frame.svg
new file mode 100644
index 0000000..0a2f368
--- /dev/null
+++ b/src/assets/img/Frame.svg
@@ -0,0 +1,19 @@
+
diff --git a/src/assets/img/backg01.png b/src/assets/img/backg01.png
new file mode 100644
index 0000000..6a93528
Binary files /dev/null and b/src/assets/img/backg01.png differ
diff --git a/src/pages/business_emergencyPlan/EmergencyPlan.js b/src/pages/business_emergencyPlan/EmergencyPlan.js
index 17244b0..8f2fa94 100644
--- a/src/pages/business_emergencyPlan/EmergencyPlan.js
+++ b/src/pages/business_emergencyPlan/EmergencyPlan.js
@@ -1,10 +1,12 @@
import React, { useState } from 'react';
-import { Card, Row, Col, Statistic, Progress, Button, Space, Tabs } from 'antd';
+import { Card, Row, Col, Statistic, Progress, Button, Space } from 'antd';
import styles from './EmergencyPlan.less';
import Swhpqy from './components/swhpqy'; //涉危化品企业
import Whp from './components/whp'; //危化品
import Sgla from './components/sgla'; //事故案例
import Flfg from './components/flfg'; //法律法规
+import FrameSvg from '@/assets/img/Frame.svg';
+import Backg01Png from '@/assets/img/backg01.png';
@@ -15,39 +17,66 @@ const SafeMajorHazardList = () => {
setActiveTab(key);
};
- const tabItems = [
- {
- key: 'swhpqy',
- label: '涉危化品企业',
- children:
- },
- {
- key: 'whp',
- label: '危化品',
- children:
- },
- {
- key: 'sgla',
- label: '事故案例',
- children:
- },
- {
- key: 'flfg',
- label: '法律法规',
- children:
+ const renderContent = () => {
+ switch(activeTab) {
+ case 'swhpqy':
+ return ;
+ case 'whp':
+ return ;
+ case 'sgla':
+ return ;
+ case 'flfg':
+ return ;
+ default:
+ return ;
}
- ];
+ };
return (
-
+
+

+
应急信息库
+
+
+
+
+
+
+
+
+
+

+
+
+
+ {renderContent()}
);
diff --git a/src/pages/business_emergencyPlan/EmergencyPlan.less b/src/pages/business_emergencyPlan/EmergencyPlan.less
index 1233504..dc1d766 100644
--- a/src/pages/business_emergencyPlan/EmergencyPlan.less
+++ b/src/pages/business_emergencyPlan/EmergencyPlan.less
@@ -9,10 +9,70 @@
.TopButton {
background-color: #ebf0fe;
width: 100%;
- height: 50px;
+ height: 60px;
display: flex;
- gap: 24px;
- box-sizing: border-box;
+ align-items: center;
+ justify-content: space-between;
+ padding: 0 40px;
+
+ .leftSection {
+ display: flex;
+ align-items: center;
+ gap: 24px;
+
+ .frameIcon {
+ height: 24px;
+ width: auto;
+ }
+
+ .titleText {
+ font-size: 16px;
+ font-weight: 500;
+ color: #333333;
+ margin-right: 20px;
+ }
+
+ .buttonGroup {
+ display: flex;
+ align-items: center;
+ gap: 24px;
+ }
+ }
+
+ .rightSection {
+ .backgroundImg {
+ height: 80px;
+ width: auto;
+ object-fit: cover;
+ }
+ }
+
+ .tabButton {
+ border-radius: 8px !important;
+ padding: 4px 16px !important;
+ height: auto !important;
+ font-size: 14px !important;
+ font-weight: 500 !important;
+ box-shadow: none !important;
+ border: none !important;
+
+ // 默认状态
+ background: transparent !important;
+ color: #333333 !important;
+
+ &:hover {
+ background: rgba(85, 111, 235, 0.1) !important;
+ color: #333333 !important;
+ box-shadow: none !important;
+ }
+
+ // 激活状态
+ &.active {
+ background: linear-gradient(180deg, #556FEB 0%, #8DAAF7 100%) !important;
+ color: #ffffff !important;
+ box-shadow: none !important;
+ }
+ }
.TopButtonItem {
color: #333333 !important;
@@ -41,85 +101,14 @@
color: #333333 !important;
border: none !important;
}
-
- // &.active {
- // color: #2E4CD4 !important;
- // }
}
}
.content {
- // ======== 内容区域样式 ========
+ // ======== 内容区域样式 =======
flex: 1; // ======== 占据剩余空间 ========
overflow-y: auto; // ======== 允许垂直滚动 ========
padding: 0; // ======== 无内边距 ========
}
- // ======== 自定义Tabs样式 ========
- .customTabs {
- width: 100% !important;
-
- :global(.ant-tabs-content-holder) {
- width: 100% !important;
- }
-
- :global(.ant-tabs-tabpane) {
- width: 100% !important;
- padding: 0 !important;
- margin: 0 !important;
- max-width: none !important;
- }
-
- :global(.ant-tabs-content) {
- width: 100% !important;
- padding: 0 !important;
- margin: 0 !important;
- }
-
- :global(.ant-tabs-tab) {
- color: #333333 !important;
- font-family: 'PingFang SC', sans-serif !important;
- font-weight: 500 !important;
- font-size: 14px !important;
- border-radius: 8px !important;
- padding: 4px 16px !important;
- margin-right: 24px !important;
- transition: all 0.3s ease !important;
- }
-
- :global(.ant-tabs-tab-active) {
- color: #ffffff !important;
- background: linear-gradient(180deg, #556FEB 0%, #8DAAF7 100%);
- }
-
- :global(.ant-tabs-tab-active .ant-tabs-tab-btn) {
- color: #ffffff !important;
- text-shadow: none !important;
- }
-
- :global(.ant-tabs-tab:hover) {
- color: #333333 !important;
- }
-
- :global(.ant-tabs-tab-active:hover) {
- color: #ffffff !important;
- }
-
- :global(.ant-tabs-tab-active:hover .ant-tabs-tab-btn) {
- color: #ffffff !important;
- text-shadow: none !important;
- }
-
- :global(.ant-tabs-ink-bar) {
- display: none !important;
- }
-
- :global(.ant-tabs-nav-list) {
- margin-left: 80px !important;
- // padding-top: 2px !important;
- // display: flex !important;
- // align-items: center !important;
- // text-align: center;
- }
- }
}
\ No newline at end of file