diff --git a/src/pages/organmanage_deptmaintain/DeptMaintain.js b/src/pages/organmanage_deptmaintain/DeptMaintain.js
index aaad71d..c6a0997 100644
--- a/src/pages/organmanage_deptmaintain/DeptMaintain.js
+++ b/src/pages/organmanage_deptmaintain/DeptMaintain.js
@@ -1,14 +1,522 @@
-import React, {Fragment, PureComponent} from 'react';
+import React, { PureComponent } from 'react';
+import {
+ Card,
+ Tree,
+ Button,
+ Select,
+ Space,
+ Row,
+ Col,
+ Pagination
+} from 'antd';
+import { history } from 'umi';
+import {
+ ExpandOutlined,
+ UserOutlined,
+ TeamOutlined,
+ ApartmentOutlined,
+ SyncOutlined,
+ DollarOutlined,
+ SettingOutlined,
+ DownloadOutlined,
+ UserAddOutlined,
+ EditOutlined,
+ DeleteOutlined,
+ PlusOutlined
+} from '@ant-design/icons';
import styles from './DeptMaintain.less';
+import StandardTable from '@/components/StandardTable';
+import DeptMaintainAdd from './form/DeptMaintainAdd';
+import DeptMaintainRenderSimpleForm from "./form/DeptMaintainRenderSimpleForm" //表单
+
+const { Option } = Select;
+
class DeptMaintain extends PureComponent {
+ constructor(props) {
+ super(props);
+ this.state = {
+ searchForm: {},
+ selectedKeys: [],
+ expandedKeys: ['0-0', '0-0-0', '0-0-1', '0-0-2'],
+ addModalVisible: false, // 新增弹窗显示状态
+ addLoading: false, // 新增loading状态
+ organizationData: [
+ {
+ title: '飞利信科技有限公司',
+ key: '0-0',
+ count: 356,
+ children: [
+ {
+ title: '技术部',
+ key: '0-0-0',
+ count: 120,
+ children: [
+ { title: '前端组', key: '0-0-0-0', count: 45 },
+ { title: '后端组', key: '0-0-0-1', count: 52 },
+ { title: '测试组', key: '0-0-0-2', count: 23 }
+ ],
+ },
+ {
+ title: '产品部',
+ key: '0-0-1',
+ count: 68,
+ children: [
+ { title: '产品设计组', key: '0-0-1-0', count: 28 },
+ { title: '用户体验组', key: '0-0-1-1', count: 25 },
+ { title: '产品运营组', key: '0-0-1-2', count: 15 }
+ ],
+ },
+ {
+ title: '运营部',
+ key: '0-0-2',
+ count: 52,
+ children: [
+ { title: '市场营销组', key: '0-0-2-0', count: 22 },
+ { title: '客户服务组', key: '0-0-2-1', count: 18 },
+ { title: '商务合作组', key: '0-0-2-2', count: 12 }
+ ],
+ },
+ {
+ title: '财务部',
+ key: '0-0-3',
+ count: 32,
+ children: [
+ { title: '会计组', key: '0-0-3-0', count: 18 },
+ { title: '审计组', key: '0-0-3-1', count: 14 }
+ ],
+ },
+ {
+ title: '人事部',
+ key: '0-0-4',
+ count: 84,
+ children: [
+ { title: 'HR专员组', key: '0-0-4-0', count: 25 },
+ { title: '招聘组', key: '0-0-4-1', count: 22 },
+ { title: '培训组', key: '0-0-4-2', count: 18 },
+ { title: '薪酬组', key: '0-0-4-3', count: 19 }
+ ],
+ },
+ ],
+ },
+ ],
+ tableData: [
+ {
+ key: '1',
+ id: 1,
+ department: '技术部',
+ departmentHead: '张文军',
+ employeeCount: 120,
+ description: '负责公司所有技术研发工作',
+ createDate: '2020-01-15'
+ },
+ {
+ key: '2',
+ id: 2,
+ department: '产品部',
+ departmentHead: '李莉',
+ employeeCount: 68,
+ description: '负责产品规划、设计和运营',
+ createDate: '2020-02-10'
+ },
+ {
+ key: '3',
+ id: 3,
+ department: '运营部',
+ departmentHead: '王强',
+ employeeCount: 52,
+ description: '负责市场推广和客户服务',
+ createDate: '2020-03-05'
+ },
+ {
+ key: '4',
+ id: 4,
+ department: '财务部',
+ departmentHead: '赵敏',
+ employeeCount: 32,
+ description: '负责财务管理和会计核算',
+ createDate: '2020-01-20'
+ },
+ {
+ key: '5',
+ id: 5,
+ department: '人事部',
+ departmentHead: '陈晓红',
+ employeeCount: 84,
+ description: '负责人力资源管理和员工关系',
+ createDate: '2020-02-25'
+ },
+ ],
+ pagination: {
+ current: 1,
+ pageSize: 5,
+ total: 356,
+ }
+ };
+
+ // 默认列配置
+ this.defaultColumns = [
+ {
+ title: '序号',
+ dataIndex: 'id',
+ key: 'id',
+ width: 60,
+ align: 'center',
+ },
+ {
+ title: '部门名称',
+ dataIndex: 'department',
+ key: 'department',
+ width: 50,
+ },
+ {
+ title: '部门负责人',
+ dataIndex: 'departmentHead',
+ key: 'departmentHead',
+ width: 70,
+ },
+ {
+ title: '员工人数',
+ dataIndex: 'employeeCount',
+ key: 'employeeCount',
+ width: 50,
+ },
+ {
+ title: '操作',
+ key: 'action',
+ align: 'center',
+ width: 80,
+ render: (_, record) => (
+
CEO
+集团公司
+副总裁
+华东事业部
+副总裁
+华南事业部
+总监
+上海分公司
+总监
+杭州分公司
+经理
+研发中心
+经理
+市场部
+