|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div id="oa-pc-app">
|
|
|
+ <div id="page-hr-app">
|
|
|
<router-view v-if="isQiankun || isFullPage" :key="$route.fullPath" />
|
|
|
<ele-pro-layout
|
|
|
v-else
|
|
|
@@ -13,7 +13,7 @@
|
|
|
tab-style="card"
|
|
|
:tab-sortable="true"
|
|
|
home-title="首页"
|
|
|
- home-path="/"
|
|
|
+ home-path="/home"
|
|
|
layout-path="/"
|
|
|
@tab-add="onTabAdd"
|
|
|
@tab-remove="onTabRemove"
|
|
|
@@ -43,7 +43,7 @@ export default {
|
|
|
homeComponents: [],
|
|
|
pageRefreshing: false,
|
|
|
menus: [
|
|
|
- { path: '/', meta: { title: '首页', icon: 'el-icon-house' } },
|
|
|
+ { path: '/home', meta: { title: '首页', icon: 'el-icon-house' } },
|
|
|
{
|
|
|
path: '/position',
|
|
|
meta: { title: '岗位管理', icon: 'el-icon-suitcase' },
|
|
|
@@ -63,21 +63,15 @@ export default {
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- path: '/hr',
|
|
|
+ path: '/hr-management',
|
|
|
meta: { title: '人事管理', icon: 'el-icon-user' },
|
|
|
children: [
|
|
|
// { path: '/organization', meta: { title: '组织机构' } },
|
|
|
{ path: '/employee-archive', meta: { title: '员工档案' } },
|
|
|
{ path: '/onboarding-handling', meta: { title: '办理入职' } },
|
|
|
{ path: '/regularization-handling', meta: { title: '转正办理' } },
|
|
|
- {
|
|
|
- path: '/resignation',
|
|
|
- meta: { title: '离职管理' },
|
|
|
- children: [
|
|
|
- { path: '/resignation-application', meta: { title: '离职申请' } },
|
|
|
- { path: '/resignation-handover-order', meta: { title: '离职交接单' } }
|
|
|
- ]
|
|
|
- },
|
|
|
+ { path: '/resignation-application', meta: { title: '离职申请' } },
|
|
|
+ { path: '/resignation-handover-order', meta: { title: '离职交接单' } },
|
|
|
{ path: '/position-transfer', meta: { title: '岗位调动办理' } },
|
|
|
{ path: '/qualification-management', meta: { title: '资质管理' } },
|
|
|
{ path: '/term-management', meta: { title: '期限管理' } },
|
|
|
@@ -146,7 +140,7 @@ export default {
|
|
|
return this.pageTabs.findIndex((tab) => tab.key === key);
|
|
|
},
|
|
|
tabPath(tab) {
|
|
|
- return (tab && (tab.fullPath || tab.key)) || '/';
|
|
|
+ return (tab && (tab.fullPath || tab.key)) || '/home';
|
|
|
},
|
|
|
goTabOrHome(tab) {
|
|
|
const path = this.tabPath(tab);
|
|
|
@@ -191,7 +185,7 @@ export default {
|
|
|
},
|
|
|
onTabRemoveAll() {
|
|
|
this.pageTabs = [];
|
|
|
- if (this.$route.path !== '/') this.$router.push('/');
|
|
|
+ if (this.$route.path !== '/home') this.$router.push('/home');
|
|
|
},
|
|
|
onTabSortChange(tabs) {
|
|
|
this.pageTabs = tabs || [];
|
|
|
@@ -206,7 +200,7 @@ export default {
|
|
|
this.homeComponents = components || [];
|
|
|
},
|
|
|
onLogoClick(isHome) {
|
|
|
- if (!isHome) this.$router.push('/');
|
|
|
+ if (!isHome) this.$router.push('/home');
|
|
|
}
|
|
|
}
|
|
|
};
|