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 './jjjl.less'; import iconsc from '@/assets/yjzygl/iconsc.svg'; const { Option } = Select; const Jjjl = () => { const [loading, setLoading] = useState(false); const [selectedRowKeys, setSelectedRowKeys] = useState([]); const [searchValue, setSearchValue] = useState(undefined); 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', fireName: '消防点一', waterPointName: '消防池 01', hydrantCount: 97, hydrantLocation: '一楼走廊', range: 97, waterType: '企业消防水池', personInCharge: '冯钰涛', fireImage: '点击查看图片', remarks: '无', }, { key: '2', number: '02', fireName: '消防点二', waterPointName: '消防池 02', hydrantCount: 96, hydrantLocation: '二楼走廊', range: 96, waterType: '企业消防水池', personInCharge: '周静', fireImage: '点击查看图片', remarks: '备注二二', }, { key: '3', number: '03', fireName: '消防点三', waterPointName: '消防池 03', hydrantCount: 91, hydrantLocation: '三楼图书馆门口', range: 91, waterType: '企业消防水池', personInCharge: '何能', fireImage: '点击查看图片', remarks: '备注三三', }, { key: '4', number: '04', fireName: '消防点四', waterPointName: '消防池 04', hydrantCount: 59, hydrantLocation: '三楼应急通道口', range: 59, waterType: '企业消防水池', personInCharge: '冯新', fireImage: '点击查看图片', remarks: '备注四四', }, { key: '5', number: '05', fireName: '消防点五', waterPointName: '消防池 05', hydrantCount: 50, hydrantLocation: '负一层东侧走廊', range: 50, waterType: '企业消防水池', personInCharge: '赵俊英', fireImage: '点击查看图片', remarks: '备注五五', }, { key: '6', number: '06', fireName: '消防点六', waterPointName: '消防池 06', hydrantCount: 48, hydrantLocation: '四楼c西侧走廊', range: 48, waterType: '企业消防水池', personInCharge: '赵中琏', fireImage: '点击查看图片', remarks: '备注六六', }, ]); // 表格列配置 const columns = [ { title: '编号', dataIndex: 'number', key: 'number', width: 80, }, { title: '消防点名称', dataIndex: 'fireName', key: 'fireName', width: 120, }, { title: '消防取水点名称', dataIndex: 'waterPointName', key: 'waterPointName', width: 140, }, { title: '消防栓数量', dataIndex: 'hydrantCount', key: 'hydrantCount', width: 110, }, { title: '消防栓位置', dataIndex: 'hydrantLocation', key: 'hydrantLocation', width: 150, }, { title: '射程', dataIndex: 'range', key: 'range', width: 80, }, { title: '消防栓用水类型', dataIndex: 'waterType', key: 'waterType', width: 140, }, { title: '负责人', dataIndex: 'personInCharge', key: 'personInCharge', width: 100, }, { title: '消防点图片', dataIndex: 'fireImage', key: 'fireImage', width: 120, render: (text) => ( ), }, { title: '备注', dataIndex: 'remarks', key: 'remarks', width: 100, }, { title: '操作', key: 'action', width: 120, render: (text, record) => (