import React from 'react'; import { IconCode } from '@douyinfe/semi-icons'; export function getNavItem(user, dispatch) { return ( [ { itemKey: 'humanAffairs', text: '人事管理', icon: , items: [{ itemKey: 'personnelArchives', text: '人员档案', icon: , to: '/humanAffairs/archivesCenter/personnelArchives/personnelFiles', items: [{ itemKey: 'personnelFiles', to: '/humanAffairs/archivesCenter/personnelArchives/personnelFiles', text: '人员档案' }, { itemKey: 'employeeInformation', to: '/humanAffairs/archivesCenter/personnelArchives/employeeInformation', text: '员工信息' }, { itemKey: 'positionRating', to: '/humanAffairs/archivesCenter/personnelArchives/positionRating', text: '岗位评级' }] }, { itemKey: 'deptArchives', text: '部门档案', icon: , to: '/humanAffairs/archivesCenter/deptArchives/department', items: [{ itemKey: 'department', to: '/humanAffairs/archivesCenter/deptArchives/department', text: '部门档案' }] }, { itemKey: 'leaveManagement', text: '假勤管理', icon: , to: '/humanAffairs/employeeRelationship/leaveManagement/attendanceStatistics', items: [{ itemKey: 'attendanceStatistics', to: '/humanAffairs/employeeRelationship/leaveManagement/attendanceStatistics', text: '出勤统计' }, { itemKey: 'leaveStatistics', to: '/humanAffairs/employeeRelationship/leaveManagement/leaveStatistics', text: '请假统计' }, { itemKey: 'overtimeStatistics', to: '/humanAffairs/employeeRelationship/leaveManagement/overtimeStatistics', text: '加班统计' }] }, { itemKey: 'communication', text: '员工沟通', icon: , to: '/humanAffairs/employeeRelationship/communication/employeeCommunication', items: [{ itemKey: 'employeeCommunication', to: '/humanAffairs/employeeRelationship/communication/employeeCommunication', text: '员工沟通统计' }] }, { itemKey: 'recruitRecord', text: '招聘记录', icon: , to: '/humanAffairs/recruit/recruitRecord/appointmentRecords', items: [{ itemKey: 'appointmentRecords', to: '/humanAffairs/recruit/recruitRecord/appointmentRecords', text: '任用记录' }] }, { itemKey: 'salesStatistics', text: '销售统计', icon: ,//wwwtodo to: '/humanAffairs/recruit/salesStatistics/personnelDistribution', items: [{ itemKey: 'personnelDistribution', to: '/humanAffairs/recruit/salesStatistics/personnelDistribution', text: '销售人员分布' }] }, { itemKey: 'trainFiles', text: '培训档案', icon: , to: '/humanAffairs/train/trainFiles/resourceRepository', items: [{ itemKey: 'resourceRepository', to: '/humanAffairs/train/trainFiles/resourceRepository', text: '培训资源储存库' }] }, { itemKey: 'trainingManagement', text: '培训管理', icon: , to: '/humanAffairs/train/trainingManagement/personalTrainRecord', items: [{ itemKey: 'personalTrainRecord', to: '/humanAffairs/train/trainingManagement/personalTrainRecord', text: '个人培训记录' }, { itemKey: 'departmentTrainRecord', to: '/humanAffairs/train/trainingManagement/departmentTrainRecord', text: '部门培训记录' }] }, { itemKey: 'basicAction', text: '基本动作', icon: , to: '/humanAffairs/achievements/basicAction/weeklyManagement', items: [{ itemKey: 'weeklyManagement', to: '/humanAffairs/achievements/basicAction/weeklyManagement', text: '周报管理' }, { itemKey: 'saleLog', to: '/humanAffairs/achievements/basicAction/saleLog', text: '销售日志' }, { itemKey: 'pmLog', to: '/humanAffairs/achievements/basicAction/pmLog', text: '工程日志' }] }, { itemKey: 'employeeKPI', text: '员工考核', icon: , to: '/humanAffairs/achievements/employeeKPI/probationer', items: [{ itemKey: 'probationer', to: '/humanAffairs/achievements/employeeKPI/probationer', text: '试用期员工考核' }, { itemKey: 'regular', to: '/humanAffairs/achievements/employeeKPI/regular', text: '正式员工考核' }] }, { itemKey: 'middleKPI', text: '中层考核', icon: , to: '/humanAffairs/achievements/middleKPI/monthlyProcess', items: [{ itemKey: 'monthlyProcess', to: '/humanAffairs/achievements/middleKPI/monthlyProcess', text: '月度过程考核' }, { itemKey: 'quarter', to: '/humanAffairs/achievements/middleKPI/quarter', text: '季度考核' }] }, { itemKey: 'highKPI', text: '高管考核', icon: , to: '/humanAffairs/achievements/highKPI/highMonthly', items: [{ itemKey: 'highMonthly', to: '/humanAffairs/achievements/highKPI/highMonthly', text: '月度过程考核' },{ itemKey: 'Highquarter', to: '/humanAffairs/achievements/highKPI/Highquarter', text: '季度考核' }] }, { itemKey: 'penalties', text: '奖惩信息', icon: , to: '/humanAffairs/achievements/penalties/penaltiesRecord', items: [{ itemKey: 'penaltiesRecord', to: '/humanAffairs/achievements/penalties/penaltiesRecord', text: '奖惩信息' }] }, { itemKey: 'authCenter', text: '权限中心', icon: , to: '/humanAffairs/authCenter/employeeAuth', items: [{ itemKey: 'employeeAuth', to: '/humanAffairs/authCenter/employeeAuth', text: '员工权限' }, { itemKey: 'formMaintenance', to: '/humanAffairs/authCenter/formMaintenance', text: '表单维护' }] }] }, ] ); }