You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
2.5 KiB
51 lines
2.5 KiB
import React from 'react';
|
|
import { IconCode } from '@douyinfe/semi-icons';
|
|
|
|
export function getNavItem(user, dispatch) {
|
|
return (
|
|
[
|
|
{
|
|
itemKey: 'humanAffairs',
|
|
text: '人事管理',
|
|
icon: <IconCode />,
|
|
items: [
|
|
{
|
|
itemKey: 'archivesCenter',
|
|
text: '档案中心',
|
|
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconcbrengongdangan"></iconpark-icon>,
|
|
to: '/humanAffairs/archivesCenter/personnelFiles',
|
|
items: [{
|
|
itemKey: 'personnelFiles', to: '/humanAffairs/archivesCenter/personnelFiles', text: '人员档案'
|
|
}]
|
|
}, {
|
|
itemKey: 'employeeRelations',
|
|
text: '员工关系',
|
|
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconcbyuangongguanxi"></iconpark-icon>,
|
|
to: '/humanAffairs/employeeRelations/employeeInformation',
|
|
items: [{
|
|
itemKey: 'employeeInformation', to: '/humanAffairs/employeeRelations/employeeInformation', text: '员工信息'
|
|
}]
|
|
}, {
|
|
itemKey: 'basicAction',
|
|
text: '基本动作',
|
|
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconcbjiben"></iconpark-icon>,
|
|
to: '/humanAffairs/basicAction/weeklyManagement',
|
|
items: [{
|
|
itemKey: 'weeklyManagement', to: '/humanAffairs/basicAction/weeklyManagement', text: '周报管理'
|
|
}]
|
|
}, {
|
|
itemKey: 'leaveManagement',
|
|
text: '假勤管理',
|
|
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconcbjiaqinguanli"></iconpark-icon>,
|
|
to: '/humanAffairs/leaveManagement/leaveStatistics',
|
|
items: [{
|
|
itemKey: 'leaveStatistics', to: '/humanAffairs/leaveManagement/leaveStatistics', text: '请假统计'
|
|
}, {
|
|
itemKey: 'overtimeStatistics', to: '/humanAffairs/leaveManagement/overtimeStatistics', text: '加班统计'
|
|
}]
|
|
},
|
|
]
|
|
},
|
|
]
|
|
);
|
|
}
|