From 60bcc32a265259481fc26e98aa1798f72db47136 Mon Sep 17 00:00:00 2001 From: wangyunfei <1224056307@qq,com> Date: Wed, 15 Oct 2025 17:08:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=81=E4=BB=B6=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/business_basic/icon_echart.svg | 4 + src/pages/business_basic/basic.js | 21 +- .../EvaluationReport.js | 2 +- .../EvaluationReport.less | 0 .../components/LicenseManagement.js | 301 ++++++++++++++++++ .../components/LicenseManagement.less | 191 +++++++++++ .../OnlineMonitoring.js | 0 .../OnlineMonitoring.less | 0 .../ResponsibilityImplementation.js | 0 .../ResponsibilityImplementation.less | 0 .../{module => components}/RiskAssessment.js | 0 .../RiskAssessment.less | 0 12 files changed, 509 insertions(+), 10 deletions(-) create mode 100644 src/assets/business_basic/icon_echart.svg rename src/pages/business_basic/{module => components}/EvaluationReport.js (99%) rename src/pages/business_basic/{module => components}/EvaluationReport.less (100%) create mode 100644 src/pages/business_basic/components/LicenseManagement.js create mode 100644 src/pages/business_basic/components/LicenseManagement.less rename src/pages/business_basic/{module => components}/OnlineMonitoring.js (100%) rename src/pages/business_basic/{module => components}/OnlineMonitoring.less (100%) rename src/pages/business_basic/{module => components}/ResponsibilityImplementation.js (100%) rename src/pages/business_basic/{module => components}/ResponsibilityImplementation.less (100%) rename src/pages/business_basic/{module => components}/RiskAssessment.js (100%) rename src/pages/business_basic/{module => components}/RiskAssessment.less (100%) diff --git a/src/assets/business_basic/icon_echart.svg b/src/assets/business_basic/icon_echart.svg new file mode 100644 index 0000000..7c08254 --- /dev/null +++ b/src/assets/business_basic/icon_echart.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/pages/business_basic/basic.js b/src/pages/business_basic/basic.js index 7a58125..dd93403 100644 --- a/src/pages/business_basic/basic.js +++ b/src/pages/business_basic/basic.js @@ -1,10 +1,11 @@ import React, { useState } from 'react'; import { Card, Row, Col, Statistic, Progress, Button, Space } from 'antd'; import styles from './basic.less'; -import ResponsibilityImplementation from './module/ResponsibilityImplementation'; //责任落实 -import OnlineMonitoring from './module/OnlineMonitoring'; //在线监测预警 -import RiskAssessment from './module/RiskAssessment'; //风险管控 -import EvaluationReport from './module/EvaluationReport'; //评估报告 +import ResponsibilityImplementation from './components/ResponsibilityImplementation'; +import OnlineMonitoring from './components/OnlineMonitoring'; +import RiskAssessment from './components/RiskAssessment'; +import EvaluationReport from './components/EvaluationReport'; +import LicenseManagement from './components/LicenseManagement'; @@ -20,6 +21,8 @@ const SafeMajorHazardList = () => { switch (activeModule) { case 'organization': return ; + case 'license': + return ; case 'equipment': return ; case 'firefighting': @@ -40,11 +43,11 @@ const SafeMajorHazardList = () => { onClick={() => handleModuleClick("organization")} >组织机构管理 - {/* */} + + + + ), + }, + ]; + + + return ( +
+
+ +
+
+
+ 证件类型分布 +
+
+
+
+
+ +
+
+
+ 证件类型分布 +
+
+ 需求 + + +
+
+ + +
+ 待开发 +
+
+ + + + {/* 证照列表区域 */} + + 证照列表 +
+ } + /> + + +
+ `共${total}条`, + }} + className={styles.licenseTable} + /> + + + ); +}; + +export default LicenseManagement; diff --git a/src/pages/business_basic/components/LicenseManagement.less b/src/pages/business_basic/components/LicenseManagement.less new file mode 100644 index 0000000..0fa0f53 --- /dev/null +++ b/src/pages/business_basic/components/LicenseManagement.less @@ -0,0 +1,191 @@ +.licenseManagementContainer { + height: 100vh; + + .topSectionContainer { + padding: 0; + margin: 15px 0px 15px 5px; + height: 35%; + display: flex; + gap: 15px; + align-items: stretch; + + .firstBlock { + width: 30%; + background-color: #fff; + display: flex; + flex-direction: column; + padding: 10px 16px; + border-radius: 2px; + + .chartHeader { + display: flex; + align-items: center; + margin-bottom: 16px; + + .colorBlock { + width: 2px; + height: 18px; + background-color: #2E4CD4; + margin-right: 8px; + border-radius: 1px; + } + + .chartTitle { + font-size: 16px; + font-weight: 500; + color: #333333; + line-height: 18px; + } + } + + .chartContainer { + flex: 1; + width: 100%; + position: relative; + + .chart { + width: 100%; + height: 100%; + min-height: 200px; + } + } + } + + .secondBlock { + + width: 30%; + background-color: #fff; + display: flex; + flex-direction: column; + padding: 10px 16px; + border-radius: 2px; + + .chartHeader { + display: flex; + align-items: center; + margin-bottom: 16px; + // height: 18px; + + .colorBlock { + width: 2px; + height: 18px; + background-color: #2E4CD4; + margin-right: 8px; + border-radius: 1px; + } + + .chartTitle { + font-size: 16px; + font-weight: 500; + color: #333333; + line-height: 18px; + } + } + + + } + + .thirdBlock { + flex: 1; + background-color: #fff; + display: flex; + align-items: center; + justify-content: center; + font-size: 16px; + color: #333; + } + } + + + .listCard { + border: none; + border-radius: 8px; + box-shadow: none; + + .listTitle { + margin-bottom: 20px; + font-size: 16px; + font-weight: 600; + color: #333; + } + + .listToolbar { + display: flex; + align-items: center; + gap: 12px; + margin-bottom: 20px; + + .searchInput { + width: 300px; + } + + .typeFilter { + width: 120px; + } + + .addButton { + margin-left: auto; + } + } + + .licenseTable { + .ant-table-thead>tr>th { + background-color: #fafafa; + font-weight: 600; + color: #333; + } + + .ant-table-tbody>tr>td { + border-bottom: 1px solid #f0f0f0; + } + + .ant-pagination { + margin-top: 20px; + text-align: right; + } + } + } +} + +// 覆盖Ant Design默认样式 +.licenseManagementContainer { + .ant-card { + box-shadow: none; + } + + .ant-card-body { + padding: 20px; + } + + .ant-table { + font-size: 14px; + } + + .ant-tag { + border-radius: 4px; + font-size: 12px; + padding: 2px 8px; + } + + .ant-btn-link { + padding: 0; + height: auto; + font-size: 14px; + } + + .ant-input-search { + .ant-input { + border-radius: 6px; + } + } + + .ant-select { + .ant-select-selector { + border-radius: 6px; + } + } + + .ant-btn-primary { + border-radius: 6px; + } +} \ No newline at end of file diff --git a/src/pages/business_basic/module/OnlineMonitoring.js b/src/pages/business_basic/components/OnlineMonitoring.js similarity index 100% rename from src/pages/business_basic/module/OnlineMonitoring.js rename to src/pages/business_basic/components/OnlineMonitoring.js diff --git a/src/pages/business_basic/module/OnlineMonitoring.less b/src/pages/business_basic/components/OnlineMonitoring.less similarity index 100% rename from src/pages/business_basic/module/OnlineMonitoring.less rename to src/pages/business_basic/components/OnlineMonitoring.less diff --git a/src/pages/business_basic/module/ResponsibilityImplementation.js b/src/pages/business_basic/components/ResponsibilityImplementation.js similarity index 100% rename from src/pages/business_basic/module/ResponsibilityImplementation.js rename to src/pages/business_basic/components/ResponsibilityImplementation.js diff --git a/src/pages/business_basic/module/ResponsibilityImplementation.less b/src/pages/business_basic/components/ResponsibilityImplementation.less similarity index 100% rename from src/pages/business_basic/module/ResponsibilityImplementation.less rename to src/pages/business_basic/components/ResponsibilityImplementation.less diff --git a/src/pages/business_basic/module/RiskAssessment.js b/src/pages/business_basic/components/RiskAssessment.js similarity index 100% rename from src/pages/business_basic/module/RiskAssessment.js rename to src/pages/business_basic/components/RiskAssessment.js diff --git a/src/pages/business_basic/module/RiskAssessment.less b/src/pages/business_basic/components/RiskAssessment.less similarity index 100% rename from src/pages/business_basic/module/RiskAssessment.less rename to src/pages/business_basic/components/RiskAssessment.less