From 891ec936288b02b37c03f4bcd5fe56533598ac31 Mon Sep 17 00:00:00 2001
From: wangyunfei <1224056307@qq,com>
Date: Wed, 15 Oct 2025 11:27:10 +0800
Subject: [PATCH] =?UTF-8?q?=E7=8E=AF=E4=BF=9D=E9=A1=B5=E9=9D=A2=E6=8F=90?=
=?UTF-8?q?=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../business_envinformation/icon_add.svg | 10 +
.../components/AtmospherePollutantLibrary.js | 690 +++++++++++-------
.../AtmospherePollutantLibrary.less | 312 ++++----
.../components/PollutionSourceManagement.js | 2 +-
.../nav_system_content/SystemContentList.js | 23 +-
src/pages/topnavbar/TopNavBar.js | 14 +-
6 files changed, 646 insertions(+), 405 deletions(-)
create mode 100644 src/assets/business_envinformation/icon_add.svg
diff --git a/src/assets/business_envinformation/icon_add.svg b/src/assets/business_envinformation/icon_add.svg
new file mode 100644
index 0000000..e422e92
--- /dev/null
+++ b/src/assets/business_envinformation/icon_add.svg
@@ -0,0 +1,10 @@
+
diff --git a/src/pages/business_envInformation/components/AtmospherePollutantLibrary.js b/src/pages/business_envInformation/components/AtmospherePollutantLibrary.js
index 693905a..a16f589 100644
--- a/src/pages/business_envInformation/components/AtmospherePollutantLibrary.js
+++ b/src/pages/business_envInformation/components/AtmospherePollutantLibrary.js
@@ -1,335 +1,511 @@
-import React, { useState, useEffect } from 'react';
-import { Button, Table, Input, Space, Tooltip, message, Card, Row, Col, Select } from 'antd';
-import { SearchOutlined, PlusOutlined, EditOutlined, DeleteOutlined, ArrowLeftOutlined } from '@ant-design/icons';
-import { history } from 'umi';
+import React, { useState } from 'react';
+import { Form, Input, Button, DatePicker, Space, Modal, Select } from 'antd';
+import { SearchOutlined, RedoOutlined, CloseOutlined, EyeOutlined, DeleteOutlined, PlusOutlined, UploadOutlined, EditOutlined, DownloadOutlined } from '@ant-design/icons';
import StandardTable from '@/components/StandardTable';
import styles from './AtmospherePollutantLibrary.less';
-
-const { Option } = Select;
+import licence1 from '@/assets/business_envinformation/image1.svg';
+import licence2 from '@/assets/business_envinformation/image2.svg';
+import viewicon from '@/assets/business_envinformation/viewicon.svg';
+import editicon from '@/assets/business_envinformation/editicon.svg';
+import downloadicon from '@/assets/business_envinformation/downloadicon.svg';
+import deleteicon from '@/assets/business_envinformation/deleteicon.svg';
+import icon_add from '@/assets/business_envinformation/icon_add.svg';
const AtmospherePollutantLibrary = () => {
- const [loading, setLoading] = useState(false);
- const [selectedRowKeys, setSelectedRowKeys] = useState([]);
- const [tableData, setTableData] = useState({
- list: [],
- pagination: {
- current: 1,
- pageSize: 10,
- total: 0
- }
+ const [form] = Form.useForm();
+ const [isModalVisible, setIsModalVisible] = useState(false);
+ const [currentImage, setCurrentImage] = useState(null);
+ const [pagination, setPagination] = useState({
+ current: 1,
+ pageSize: 10,
+ total: 19,
});
-
- // 表格列定义
- const columns = [
+ const [selectedRowKeys, setSelectedRowKeys] = useState([]);
+ const [dataSource, setDataSource] = useState([
{
- title: '污染物名称',
- dataIndex: 'pollutantName',
- key: 'pollutantName',
- width: 150,
+ key: 1,
+ serialNumber: 1,
+ pollutantName: '对乙酰氨基酚栓',
+ category: 25,
+ mainFeatures: '在接受调查的19为华尔街分析师...',
+ monitoringPoint: 1.25,
+ emittingEnterprise: '每日协通(北京)咨询有限公司',
+ monthlyEmission: 4.6,
+ quarterlyEmission: 4.6,
+ yearlyEmission: 5.0,
},
{
- title: '污染物代码',
- dataIndex: 'pollutantCode',
- key: 'pollutantCode',
- width: 120,
+ key: 2,
+ serialNumber: 2,
+ pollutantName: '萘普生缓释胶囊(适洛特)',
+ category: 27,
+ mainFeatures: '热到融化的马路、无穷无尽的野火...',
+ monitoringPoint: 1.25,
+ emittingEnterprise: '赢王科技有限公司',
+ monthlyEmission: 1.1,
+ quarterlyEmission: 1.1,
+ yearlyEmission: 1.8,
},
{
- title: '污染物类型',
- dataIndex: 'pollutantType',
- key: 'pollutantType',
- width: 120,
+ key: 3,
+ serialNumber: 3,
+ pollutantName: '复方感冒灵片',
+ category: 44,
+ mainFeatures: '从病虫害探测、土壤墒情监测智能...',
+ monitoringPoint: 1.25,
+ emittingEnterprise: '北京福商商务服务有限公司',
+ monthlyEmission: 2.4,
+ quarterlyEmission: 2.4,
+ yearlyEmission: 5.0,
},
{
- title: 'CAS号',
- dataIndex: 'casNumber',
- key: 'casNumber',
- width: 120,
+ key: 4,
+ serialNumber: 4,
+ pollutantName: '红药片',
+ category: 21,
+ mainFeatures: '近日,有科普博主发帖称,某社交...',
+ monitoringPoint: 1.25,
+ emittingEnterprise: '实华国际租赁有限公司',
+ monthlyEmission: 3.6,
+ quarterlyEmission: 3.6,
+ yearlyEmission: 4.7,
},
{
- title: '分子式',
- dataIndex: 'molecularFormula',
- key: 'molecularFormula',
- width: 120,
+ key: 5,
+ serialNumber: 5,
+ pollutantName: '布洛芬混悬液(翔宇赛可)',
+ category: 56,
+ mainFeatures: '在七八十年代,这种面料做成的服...',
+ monitoringPoint: 1.25,
+ emittingEnterprise: '北京冠钧财经策划有限公司',
+ monthlyEmission: 3.0,
+ quarterlyEmission: 3.0,
+ yearlyEmission: 4.7,
},
{
- title: '分子量',
- dataIndex: 'molecularWeight',
- key: 'molecularWeight',
- width: 100,
+ key: 6,
+ serialNumber: 6,
+ pollutantName: '阿莫西林胶囊',
+ category: 32,
+ mainFeatures: '抗生素类药物,用于治疗细菌感染...',
+ monitoringPoint: 1.15,
+ emittingEnterprise: '华北制药集团有限责任公司',
+ monthlyEmission: 2.8,
+ quarterlyEmission: 2.8,
+ yearlyEmission: 3.5,
},
{
- title: '排放标准',
- dataIndex: 'emissionStandard',
- key: 'emissionStandard',
- width: 120,
+ key: 7,
+ serialNumber: 7,
+ pollutantName: '头孢拉定胶囊',
+ category: 28,
+ mainFeatures: '头孢类抗生素,广谱抗菌药物...',
+ monitoringPoint: 1.30,
+ emittingEnterprise: '石药集团欧意药业有限公司',
+ monthlyEmission: 1.9,
+ quarterlyEmission: 1.9,
+ yearlyEmission: 2.3,
},
{
- title: '监测方法',
- dataIndex: 'monitoringMethod',
- key: 'monitoringMethod',
- width: 150,
+ key: 8,
+ serialNumber: 8,
+ pollutantName: '复方甘草片',
+ category: 35,
+ mainFeatures: '镇咳祛痰药物,含有甘草提取物...',
+ monitoringPoint: 1.20,
+ emittingEnterprise: '太极集团重庆桐君阁药厂有限公司',
+ monthlyEmission: 3.2,
+ quarterlyEmission: 3.2,
+ yearlyEmission: 4.1,
},
{
- title: '危害特性',
- dataIndex: 'hazardCharacteristics',
- key: 'hazardCharacteristics',
- width: 200,
- ellipsis: true,
+ key: 9,
+ serialNumber: 9,
+ pollutantName: '板蓝根颗粒',
+ category: 41,
+ mainFeatures: '清热解毒,凉血利咽的中成药...',
+ monitoringPoint: 1.10,
+ emittingEnterprise: '广州白云山和记黄埔中药有限公司',
+ monthlyEmission: 4.5,
+ quarterlyEmission: 4.5,
+ yearlyEmission: 5.8,
},
{
- title: '操作',
- key: 'action',
- width: 120,
+ key: 10,
+ serialNumber: 10,
+ pollutantName: '维生素C片',
+ category: 22,
+ mainFeatures: '补充维生素C,增强免疫力...',
+ monitoringPoint: 1.35,
+ emittingEnterprise: '华润三九医药股份有限公司',
+ monthlyEmission: 2.1,
+ quarterlyEmission: 2.1,
+ yearlyEmission: 2.7,
+ },
+ {
+ key: 11,
+ serialNumber: 11,
+ pollutantName: '感冒清热颗粒',
+ category: 38,
+ mainFeatures: '疏风散寒,解表清热的中成药...',
+ monitoringPoint: 1.25,
+ emittingEnterprise: '北京同仁堂股份有限公司',
+ monthlyEmission: 3.7,
+ quarterlyEmission: 3.7,
+ yearlyEmission: 4.9,
+ },
+ {
+ key: 12,
+ serialNumber: 12,
+ pollutantName: '双氯芬酸钠缓释片',
+ category: 29,
+ mainFeatures: '非甾体抗炎药,用于缓解疼痛...',
+ monitoringPoint: 1.18,
+ emittingEnterprise: '扬子江药业集团有限公司',
+ monthlyEmission: 1.6,
+ quarterlyEmission: 1.6,
+ yearlyEmission: 2.0,
+ },
+ {
+ key: 13,
+ serialNumber: 13,
+ pollutantName: '藿香正气水',
+ category: 43,
+ mainFeatures: '解表化湿,理气和中的中成药...',
+ monitoringPoint: 1.22,
+ emittingEnterprise: '云南白药集团股份有限公司',
+ monthlyEmission: 2.9,
+ quarterlyEmission: 2.9,
+ yearlyEmission: 3.8,
+ },
+ {
+ key: 14,
+ serialNumber: 14,
+ pollutantName: '蒙脱石散',
+ category: 26,
+ mainFeatures: '止泻药物,保护胃肠黏膜...',
+ monitoringPoint: 1.28,
+ emittingEnterprise: '博福-益普生制药有限公司',
+ monthlyEmission: 1.4,
+ quarterlyEmission: 1.4,
+ yearlyEmission: 1.9,
+ },
+ {
+ key: 15,
+ serialNumber: 15,
+ pollutantName: '复方丹参片',
+ category: 37,
+ mainFeatures: '活血化瘀,理气止痛的中成药...',
+ monitoringPoint: 1.16,
+ emittingEnterprise: '天津中新药业集团股份有限公司',
+ monthlyEmission: 3.3,
+ quarterlyEmission: 3.3,
+ yearlyEmission: 4.2,
+ },
+ {
+ key: 16,
+ serialNumber: 16,
+ pollutantName: '奥美拉唑肠溶胶囊',
+ category: 31,
+ mainFeatures: '质子泵抑制剂,治疗胃溃疡...',
+ monitoringPoint: 1.33,
+ emittingEnterprise: '阿斯利康制药有限公司',
+ monthlyEmission: 2.2,
+ quarterlyEmission: 2.2,
+ yearlyEmission: 2.8,
+ },
+ {
+ key: 17,
+ serialNumber: 17,
+ pollutantName: '六味地黄丸',
+ category: 45,
+ mainFeatures: '滋阴补肾的经典中成药...',
+ monitoringPoint: 1.12,
+ emittingEnterprise: '仲景宛西制药股份有限公司',
+ monthlyEmission: 4.1,
+ quarterlyEmission: 4.1,
+ yearlyEmission: 5.3,
+ },
+ {
+ key: 18,
+ serialNumber: 18,
+ pollutantName: '阿司匹林肠溶片',
+ category: 24,
+ mainFeatures: '解热镇痛抗炎药,预防血栓...',
+ monitoringPoint: 1.27,
+ emittingEnterprise: '拜耳医药保健有限公司',
+ monthlyEmission: 1.8,
+ quarterlyEmission: 1.8,
+ yearlyEmission: 2.4,
+ },
+ {
+ key: 19,
+ serialNumber: 19,
+ pollutantName: '复方黄连素片',
+ category: 39,
+ mainFeatures: '清热燥湿,行气止痛的中成药...',
+ monitoringPoint: 1.21,
+ emittingEnterprise: '哈药集团三精制药有限公司',
+ monthlyEmission: 2.6,
+ quarterlyEmission: 2.6,
+ yearlyEmission: 3.4,
+ },
+ ]);
+
+ const getCurrentPageData = () => {
+ const { current, pageSize } = pagination;
+ const start = (current - 1) * pageSize;
+ const end = start + pageSize;
+ return dataSource.slice(start, end);
+ };
+
+ const columns = [
+ {
+ title: (
+ 0}
+ onChange={(e) => handleSelectAll(e.target.checked)}
+ />
+ ),
+ key: 'selection',
+ width: 60,
+ align: 'center',
+ fixed: 'left',
render: (_, record) => (
- handleEdit(record)}
+ />
+
handleDownload(record)}
+ /> */}
+
handleDelete(record)}
+ />
+
待开发暂定
-