import React from 'react'; import { Card, Statistic, Table,Row, Input,Button,Col, Select} from 'antd'; import { PhoneOutlined, IdcardOutlined, PlusOutlined } from '@ant-design/icons'; import StandardTable from '@/components/StandardTable'; import styles from './ResponsibilityImplementation.less'; import upload from '@/assets/business_basic/upload.png'; import download from '@/assets/business_basic/download.png'; import import1 from '@/assets/business_basic/import1.png'; import fire_fighting1 from '@/assets/business_basic/fire_fighting1.png'; import fire_fighting2 from '@/assets/business_basic/fire_fighting2.png'; import fire_fighting3 from '@/assets/business_basic/fire_fighting3.png'; import frameIcon from '@/assets/business_basic/Frame.png'; import background1 from '@/assets/business_basic/background1.png'; import export1 from '@/assets/business_basic/export1.png'; const ResponsibilityImplementation = () => { // 搜索处理函数 const onSearch = (value) => { console.log('搜索内容:', value); // 这里可以添加实际的搜索逻辑 }; const columns = [ { title:"编号", dataIndex:"id", key:"id", width:80, }, { title:"组织代码", dataIndex:"orgCode", key:"orgCode", width:120, }, { title:"组织类型", dataIndex:"orgType", key:"orgType", width:120, }, { title:"负责人", dataIndex:"manager", key:"manager", width:100, }, { title:"所属部门", dataIndex:"department", key:"department", width:120, }, { title:"创建时间", dataIndex:"createTime", key:"createTime", width:120, }, { title:"人员规模", dataIndex:"staffCount", key:"staffCount", width:100, }, { title:"状态", dataIndex:"status", key:"status", width:80, render: (text, record) => { const getStatusStyle = (status) => { if (status === '正常') { return { color: '#44BB5F', backgroundColor: '#D8F7DE', padding: '4px 8px', borderRadius: '4px', fontSize: '12px', display: 'inline-block' }; } else if (status === '信息不全') { return { color: '#FF8800', backgroundColor: '#FFF3E9', padding: '4px 8px', borderRadius: '4px', fontSize: '12px', display: 'inline-block' }; } return {}; }; return ( {text} ); } }, { title:"操作", dataIndex:"action", key:"action", width:120, render: (text, record) => { const handleEdit = (record) => { console.log('编辑记录:', record); }; const handleDelete = (record) => { console.log('删除记录:', record); }; return (
); } } ]; // 固定的假数据 const tableData = [ { key: '1', id: '01', orgCode: 'DH002', orgType: '义务消防队', manager: '张明', department: '安全管理部', createTime: '2024-12-19 14:32:15', staffCount: '15人', status: '正常' }, { key: '2', id: '02', orgCode: 'DH002', orgType: '义务消防队', manager: '张明', department: '安全管理部', createTime: '2024-12-18 09:25:43', staffCount: '20人', status: '正常' }, { key: '3', id: '03', orgCode: 'DH002', orgType: '义务消防队', manager: '张明', department: '安全管理部', createTime: '2024-12-17 16:48:22', staffCount: '25人', status: '信息不全' }, { key: '4', id: '04', orgCode: 'DH002', orgType: '义务消防队', manager: '张明', department: '安全管理部', createTime: '2024-12-16 11:15:37', staffCount: '18人', status: '正常' }, { key: '5', id: '05', orgCode: 'DH002', orgType: '义务消防队', manager: '张明', department: '安全管理部', createTime: '2024-12-15 08:42:56', staffCount: '22人', status: '正常' }, { key: '6', id: '06', orgCode: 'DH002', orgType: '义务消防队', manager: '张明', department: '安全管理部', createTime: '2024-12-14 13:27:18', staffCount: '16人', status: '信息不全' }, { key: '7', id: '07', orgCode: 'DH002', orgType: '义务消防队', manager: '张明', department: '安全管理部', createTime: '2024-12-13 15:33:29', staffCount: '19人', status: '正常' }, { key: '8', id: '08', orgCode: 'DH002', orgType: '义务消防队', manager: '张明', department: '安全管理部', createTime: '2024-12-12 10:56:44', staffCount: '21人', status: '正常' }, { key: '9', id: '09', orgCode: 'DH002', orgType: '义务消防队', manager: '张明', department: '安全管理部', createTime: '2024-12-11 17:19:52', staffCount: '17人', status: '信息不全' }, { key: '10', id: '10', orgCode: 'DH002', orgType: '义务消防队', manager: '张明', department: '安全管理部', createTime: '2024-12-10 12:41:07', staffCount: '23人', status: '正常' }, { key: '11', id: '11', orgCode: 'DH002', orgType: '义务消防队', manager: '张明', department: '安全管理部', createTime: '2024-12-09 14:08:33', staffCount: '24人', status: '正常' }, { key: '12', id: '12', orgCode: 'DH002', orgType: '义务消防队', manager: '张明', department: '安全管理部', createTime: '2024-12-08 16:52:14', staffCount: '26人', status: '信息不全' } ]; return (
{/* 警告提示框 */}
警告 有5个消防设备需要维护,3个资质证书即将到期,请及时处理。
{/* 第一行:标题和按钮 */}
组织架构图预览
{/* 第二行:图片占位 */}
消防1
消防2 消防3
{/* 第一行:标题 + 搜索栏 + 下拉选择框 */}
成员信息管理