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 './yjzbry.less'; import iconsc from '@/assets/yjzygl/iconsc.svg'; const { Option } = Select; const Yjzj = () => { 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', unitName: '文登市兴文新材料有限公司', name: '国云海', position: '生产班长', mobile: '17898786567', email: '1878967633@qq.com', dutyTime: '夜班', }, { key: '2', number: '02', unitName: '文登市兴文新材料有限公司', name: '陈志强', position: '生产班长', mobile: '17898786567', email: '1878967633@qq.com', dutyTime: '白班', }, { key: '3', number: '03', unitName: '合湾新材科技有限公司', name: '侯文涛', position: '班长', mobile: '17898786567', email: '1878967633@qq.com', dutyTime: '白班', }, { key: '4', number: '04', unitName: '山东万图高分子材料股份有限公司', name: '宋东', position: '班长', mobile: '17898786567', email: '1878967633@qq.com', dutyTime: '夜班', }, { key: '5', number: '05', unitName: '合鸿新材科技有限公司', name: '王一声', position: '班长', mobile: '17898786567', email: '1878967633@qq.com', dutyTime: '夜班', }, { key: '6', number: '06', unitName: '山东万图高分子材料股份有限公司', name: '赵小敏', position: '班长', mobile: '17898786567', email: '1878987633@qq.com', dutyTime: '夜班', }, ]); // 表格列配置 const columns = [ { title: '编号', dataIndex: 'number', key: 'number', width: 80, }, { title: '单位名称', dataIndex: 'unitName', key: 'unitName', width: 200, }, { title: '姓名', dataIndex: 'name', key: 'name', width: 100, }, { title: '职务', dataIndex: 'position', key: 'position', width: 120, }, { title: '手机号', dataIndex: 'mobile', key: 'mobile', width: 130, }, { title: '邮箱', dataIndex: 'email', key: 'email', width: 180, }, { title: '值班时间', dataIndex: 'dutyTime', key: 'dutyTime', width: 100, }, { title: '操作', key: 'action', width: 120, render: (text, record) => (