|
|
@@ -0,0 +1,182 @@
|
|
|
+/**
|
|
|
+ * 本地默认菜单(接口未配置 /page-hr 时兜底,保持改造前侧栏效果)
|
|
|
+ * component 相对 src/views/
|
|
|
+ */
|
|
|
+export const DEFAULT_MENUS = [
|
|
|
+ {
|
|
|
+ path: '/home',
|
|
|
+ component: 'homeView/index',
|
|
|
+ meta: { title: '首页', icon: 'el-icon-house' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/position',
|
|
|
+ redirect: '/position-management',
|
|
|
+ meta: { title: '岗位管理', icon: 'el-icon-suitcase' },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '/position-management',
|
|
|
+ component: 'position/positionManagement/index',
|
|
|
+ meta: { title: '岗位设定' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/position-sequence',
|
|
|
+ component: 'position/positionSequence/index',
|
|
|
+ meta: { title: '岗位序列' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/position-application',
|
|
|
+ component: 'position/positionApplication/index',
|
|
|
+ meta: { title: '岗位申请' },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/hiring',
|
|
|
+ redirect: '/hiring-approval',
|
|
|
+ meta: { title: '录用管理', icon: 'el-icon-s-check' },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '/hiring-approval',
|
|
|
+ component: 'hiring/hiringApproval/index',
|
|
|
+ meta: { title: '录用审批' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/offer-notify',
|
|
|
+ component: 'hiring/offerNotify/index',
|
|
|
+ meta: { title: 'Offer 通知' },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/hr-management',
|
|
|
+ redirect: '/employee-archive',
|
|
|
+ meta: { title: '人事管理', icon: 'el-icon-user' },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '/employee-archive',
|
|
|
+ component: 'hrManagement/employeeArchive/index',
|
|
|
+ meta: { title: '员工档案' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/onboarding-handling',
|
|
|
+ component: 'hrManagement/onboardingHandling/index',
|
|
|
+ meta: { title: '办理入职' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/regularization-handling',
|
|
|
+ component: 'hrManagement/regularizationHandling/index',
|
|
|
+ meta: { title: '转正办理' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/resignation-application',
|
|
|
+ component: 'hrManagement/resignationApplication/index',
|
|
|
+ meta: { title: '离职申请' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/resignation-handover-order',
|
|
|
+ component: 'hrManagement/resignationHandoverOrder/index',
|
|
|
+ meta: { title: '离职交接单' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/position-transfer',
|
|
|
+ component: 'hrManagement/positionTransfer/index',
|
|
|
+ meta: { title: '岗位调动办理' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/qualification-management',
|
|
|
+ component: 'hrManagement/qualificationManagement/index',
|
|
|
+ meta: { title: '资质管理' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/term-management',
|
|
|
+ component: 'hrManagement/termManagement/index',
|
|
|
+ meta: { title: '期限管理' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/employee-template',
|
|
|
+ redirect: '/offer-letter-template',
|
|
|
+ meta: { title: '员工模板' },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '/offer-letter-template',
|
|
|
+ component: 'hrManagement/employeeTemplate/offerLetterTemplate/index',
|
|
|
+ meta: { title: '录用通知书' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/onboarding-contract-template',
|
|
|
+ component:
|
|
|
+ 'hrManagement/employeeTemplate/onboardingContractTemplate/index',
|
|
|
+ meta: { title: '合同模版' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/regularization-template',
|
|
|
+ component: 'hrManagement/employeeTemplate/regularizationTemplate/index',
|
|
|
+ meta: { title: '转正申请模板' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/resignation-letter',
|
|
|
+ component: 'hrManagement/employeeTemplate/resignationLetter/index',
|
|
|
+ meta: { title: '辞职申请书' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/resignation-handover-table',
|
|
|
+ component:
|
|
|
+ 'hrManagement/employeeTemplate/resignationHandoverTable/index',
|
|
|
+ meta: { title: '离职交接表' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/resignation-certificate',
|
|
|
+ component:
|
|
|
+ 'hrManagement/employeeTemplate/resignationCertificate/index',
|
|
|
+ meta: { title: '离职证明' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/position-transfer-template',
|
|
|
+ component:
|
|
|
+ 'hrManagement/employeeTemplate/positionTransferTemplate/index',
|
|
|
+ meta: { title: '岗位调动' },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/contract-management',
|
|
|
+ component: 'contractManagement/index',
|
|
|
+ meta: { title: '合同管理', icon: 'el-icon-document' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/attendance',
|
|
|
+ redirect: '/attendance/rule',
|
|
|
+ meta: { title: '考勤管理', icon: 'el-icon-time' },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '/attendance/rule',
|
|
|
+ component: 'attendance/rule/index',
|
|
|
+ meta: { title: '打卡规则设定' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/attendance/report',
|
|
|
+ component: 'attendance/report/index',
|
|
|
+ meta: { title: '考勤统计' },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/hr-analysis',
|
|
|
+ redirect: '/personnel-structure-dashboard',
|
|
|
+ meta: { title: '人力资源分析报表', icon: 'el-icon-data-analysis' },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '/personnel-structure-dashboard',
|
|
|
+ component: 'hrAnalysis/personnelStructureDashboard/index',
|
|
|
+ meta: { title: '人员结构看板' },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/personnel-structure-analysis-board',
|
|
|
+ component: 'hrAnalysis/personnelStructureAnalysisBoard/index',
|
|
|
+ meta: { title: '人员结构分析看板' },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+];
|