import React, { useState, useEffect } from 'react'; import { Input, Button, Select, message, Modal } from 'antd'; import { SearchOutlined, PlusOutlined, DeleteOutlined, EditOutlined } from '@ant-design/icons'; import StandardTable from '@/components/StandardTable'; import styles from './yjssd.less'; import iconsc from '@/assets/yjzygl/iconsc.svg'; const { Option } = Select; const Yjssd = () => { const [loading, setLoading] = useState(false); const [selectedRowKeys, setSelectedRowKeys] = useState([]); const [searchValue, setSearchValue] = useState(''); const [pagination, setPagination] = useState({ current: 1, pageSize: 10, total: 48, showSizeChanger: true, showQuickJumper: true, showTotal: (total, range) => `共${total}条`, }); // 模拟数据 const [dataSource, setDataSource] = useState([ { key: '1', number: '01', evacuationPointName: '疏散点一', evacuationPointAddress: '光明南街18号裕龙花园三区27号楼', maxCapacity: 97, personInCharge: '冯钰洁', remarks: '无', }, { key: '2', number: '02', evacuationPointName: '疏散点二', evacuationPointAddress: '怡馨家园达人街赏玩城一层98、99号', maxCapacity: 96, personInCharge: '周静', remarks: '备注二二', }, { key: '3', number: '03', evacuationPointName: '疏散点三', evacuationPointAddress: '新顺北大街', maxCapacity: 91, personInCharge: '何能', remarks: '备注三三', }, { key: '4', number: '04', evacuationPointName: '疏散点四', evacuationPointAddress: '红杉一品8号院底商', maxCapacity: 59, personInCharge: '冯新', remarks: '备注四四', }, { key: '5', number: '05', evacuationPointName: '疏散点五', evacuationPointAddress: '义宾街与站前北街交叉口北150米国泰谊宾商城F1层', maxCapacity: 50, personInCharge: '赵俊英', remarks: '备注五五', }, { key: '6', number: '06', evacuationPointName: '疏散点六', evacuationPointAddress: '仁和站前北街4号', maxCapacity: 48, personInCharge: '赵中错', remarks: '备注六六', }, ]); // 表格列配置 const columns = [ { title: '编号', dataIndex: 'number', key: 'number', width: 80, }, { title: '疏散点名称', dataIndex: 'evacuationPointName', key: 'evacuationPointName', width: 150, }, { title: '疏散点地址', dataIndex: 'evacuationPointAddress', key: 'evacuationPointAddress', width: 250, }, { title: '最大容纳人数(人)', dataIndex: 'maxCapacity', key: 'maxCapacity', width: 150, }, { title: '负责人', dataIndex: 'personInCharge', key: 'personInCharge', width: 120, }, { title: '备注', dataIndex: 'remarks', key: 'remarks', width: 100, }, { title: '操作', key: 'action', width: 120, render: (text, record) => (