zhongshujie
2025-08-01 07d1135a1913a919679dc23f0a38b9b61987171f
config/routes.ts
@@ -1,19 +1,28 @@
import { access } from "fs";
export default [
export default [
  {
    path: '/user',
    path: "/user",
    layout: false,
    routes: [{ name: '登录', path: '/user/login', component: './User/Login' }],
    routes: [{ name: "登录", path: "/user/login", component: "./User/Login" }],
  },
  { path: '/welcome', name: '欢迎', icon: 'smile', component: './Welcome' },
  {
    path: '/admin',
    name: '管理页',
    icon: 'crown',
    // layout: false,
    path: "/welcome",
    name: "欢迎",
    icon: "smile",
    component: "./Welcome",
  },
  {
    path: "/admin",
    name: "管理页",
    icon: "crown",
    routes: [
      { path: '/admin', redirect: '/admin/sub-page' },
      { path: '/admin/sub-page', access: 'canAdmin', name: '二级管理页', component: './Admin' },
      { path: "/admin", redirect: "/admin/sub-page" },
      {
        path: "/admin/sub-page",
        access: "canAdmin",
        name: "二级管理页",
        component: "./Admin",
      },
    ],
  },
  // {
@@ -33,108 +42,286 @@
  //   ],
  // },
  {
    path: '/myWork',
    name: '我的工作',
    icon: 'crown',
    path: "/myWork",
    name: "我的工作",
    icon: "crown",
    routes: [
      { path: '/myWork', redirect: '/admin/sub-page' },
      { path: '/myWork/taskManagement', name: '任务管理', component: './myWork/taskManagement' },
      { path: '/myWork/AnnouncementManagement', name: '公告管理', component: './Admin' },
      { path: '/myWork/messageManagement', name: '消息管理', component: './Admin' },
    ],
  },
  {
    path: '/organizationDesign',
    name: '组织设计',
    icon: 'crown',
    routes: [
      { path: '/organizationDesign', redirect: '/admin/sub-page' },
      { path: '/organizationDesign/OrganizationalStructureConfiguration', name: '组织机构配置', component: './organizationDesign/OrganizationalStructureConfiguration' },
      { path: '/organizationDesign/DepartmentalInformationConfiguration', name: '部门信息配置', component: './organizationDesign/DepartmentalInformationConfiguration' },
      { path: '/organizationDesign/JobInformationConfiguration', name: '职位信息配置', component: './organizationDesign/JobInformationConfiguration' },
      { path: '/organizationDesign/jobLevelInformationConfiguration', name: '职级信息配置', component: './organizationDesign/jobLevelInformationConfiguration' },
      { path: '/organizationDesign/postInformationConfiguration', name: '岗位信息配置', component: './organizationDesign/postInformationConfiguration' },
      { path: '/organizationDesign/departmentalEmployeeInformation', name: '部门员工信息', component: './Admin' },
      { path: '/organizationDesign/organizationChart', name: '组织结构图', component: './Admin' },
      { path: '/organizationDesign/organizationalStructureChanges', name: '组织结构变迁', component: './Admin' },
    ],
  },
  {
    path: '/humanResourcePlanning',
    name: '人力资源规划',
    icon: 'crown',
    routes: [
      { path: '/humanResourcePlanning', redirect: '/admin/sub-page' },
      { path: '/humanResourcePlanning/organizationalStrategyFormulation', name: '组织战略制定', component: './humanResourcePlanning/organizationalStrategyFormulation' },
      { path: '/humanResourcePlanning/personnelRequirementAnalysis', name: '人员需求分析', component: './humanResourcePlanning/personnelRequirementAnalysis' },
      { path: '/humanResourcePlanning/analysisOfHumanResourceSupply', name: '人力资源供给分析', component: './Admin' },
      { path: '/humanResourcePlanning/humanResourcesBudget', name: '人力资源预算', component: './Admin' },
      { path: '/humanResourcePlanning/jobAnalysis', name: '工作分析', component: './Admin' },
      { path: '/humanResourcePlanning/jobEvaluation', name: '工作评价', component: './Admin' },
    ],
  },
  {
    path: '/Recruiting',
    name: '招聘管理',
    icon: 'crown',
    routes: [
      { path: '/Recruiting', redirect: '/admin/sub-page' },
      { path: '/Recruiting/recruitmentNeeds', name: '招聘需求', component: './Admin' },
      { path: '/Recruiting/recruitingPlan', name: '招聘计划', component: './Admin' },
      { path: '/Recruiting/jobPosting', name: '岗位发布', component: './Admin' },
      { path: '/Recruiting/workApplicationApproval', name: '工作申请审批', component: './Admin' },
      { path: '/Recruiting/select', name: '甄选', component: './Admin' },
      { path: '/Recruiting/physicalExamination', name: '体检', component: './Admin' },
      { path: "/myWork", redirect: "/admin/sub-page" },
      {
        path: '/Recruiting/employmentInformationRelease',
        name: '录用信息发布',
        component: './Admin',
        path: "/myWork/taskManagement",
        name: "任务管理",
        component: "./myWork/taskManagement",
      },
      { path: '/Recruiting/newEmployeeRegistration', name: '新员工报到', component: './Admin' },
      { path: '/Recruiting/recruitmentEvaluation', name: '录用评估', component: './Admin' },
      { path: '/Recruiting/costManagement', name: '费用管理', component: './Admin' },
      { path: '/Recruiting/talentPoolMaintenance', name: '人才库维护', component: './Admin' },
      {
        path: "/myWork/AnnouncementManagement",
        name: "公告管理",
        component: "./Admin",
      },
      {
        path: "/myWork/messageManagement",
        name: "消息管理",
        component: "./Admin",
      },
    ],
  },
  {
    path: '/humanResourceManagement',
    name: '人事管理',
    icon: 'crown',
    path: "/organizationDesign",
    name: "组织设计",
    icon: "crown",
    routes: [
      { path: '/humanResourceManagement', redirect: '/admin/sub-page' },
      { path: '/humanResourceManagement/employeeInformation', name: '员工信息', component: './Admin' },
      { path: '/humanResourceManagement/contractManagement', name: '合同管理', component: './HumanResourceManagement/contractManagement' },
      { path: '/humanResourceManagement/nominationForAppointment', name: '任职提名', component: './HumanResourceManagement/nominationForAppointment' },
      { path: '/humanResourceManagement/dismissalApplication', name: '免职申请', component: './HumanResourceManagement/dismissalApplication' },
      { path: '/humanResourceManagement/transferApplication', name: '调入申请', component: './Admin' },
      { path: '/humanResourceManagement/transferOutApplication', name: '调出申请', component: './Admin' },
      { path: '/humanResourceManagement/changeRequest', name: '变动申请', component: './HumanResourceManagement/changeRequest' },
      // { path: '/humanResourceManagement/transferApplication', name: '转任申请', component: './Admin' },
      { path: '/humanResourceManagement/applicationForSecondment', name: '挂职申请', component: './HumanResourceManagement/applicationForSecondment' },
      { path: '/humanResourceManagement/challengeForCause', name: '回避申请', component: './HumanResourceManagement/challengeForCause' },
      { path: '/humanResourceManagement/resignationApplication', name: '离职申请', component: './HumanResourceManagement/resignationApplication' },
      // { path: '/humanResourceManagement/dismissalApplication', name: '辞退申请', component: './Admin' },
      // { path: '/humanResourceManagement/retirementManagement', name: '离休管理', component: './Admin' },
      { path: '/humanResourceManagement/retirementManagement', name: '退休管理', component: './HumanResourceManagement/retirementManagement' },
      { path: '/humanResourceManagement/compulsoryRetirementApplication', name: '强制退休申请', component: './Admin' },
      {
        path: "/organizationDesign",
        redirect: "/organizationDesign/OrganizationalStructureConfiguration",
      },
      {
        path: "/organizationDesign/OrganizationalStructureConfiguration",
        name: "组织机构配置",
        component: "./organizationDesign/OrganizationalStructureConfiguration",
      },
      {
        path: "/organizationDesign/DepartmentalInformationConfiguration",
        name: "部门信息配置",
        component: "./organizationDesign/DepartmentalInformationConfiguration",
      },
      {
        path: "/organizationDesign/JobInformationConfiguration",
        name: "职位信息配置",
        component: "./organizationDesign/JobInformationConfiguration",
      },
      {
        path: "/organizationDesign/jobLevelInformationConfiguration",
        name: "职级信息配置",
        component: "./organizationDesign/jobLevelInformationConfiguration",
      },
      {
        path: "/organizationDesign/postInformationConfiguration",
        name: "岗位信息配置",
        component: "./organizationDesign/postInformationConfiguration",
      },
      {
        path: "/organizationDesign/departmentalEmployeeInformation",
        name: "部门员工信息",
        component: "./organizationDesign/departmentalEmployeeInformation",
      },
      {
        path: "/organizationDesign/organizationChart",
        name: "组织结构图",
        component: "./Admin",
      },
      {
        path: "/organizationDesign/organizationalStructureChanges",
        name: "组织结构变迁",
        component: "./Admin",
      },
    ],
  },
  {
    path: '/trainingManagement',
    name: '培训管理',
    icon: 'crown',
    path: "/humanResourcePlanning",
    name: "人力资源规划",
    icon: "crown",
    routes: [
      { path: '/trainingManagement', redirect: '/admin/sub-page' },
      { path: '/trainingManagement/培训机构管理', name: '培训机构管理', component: './Admin' },
      { path: '/trainingManagement/contractManagement', name: '基础资料管理', component: './Admin' },
      { path: '/trainingManagement/nominationForAppointment', name: '培训需求管理', component: './Admin' },
      // { path: '/trainingManagement/dismissalApplication', name: '培训计划管理', component: './Admin' },
      { path: '/trainingManagement/transferApplication', name: '培训计划管理', component: './Admin' },
      { path: '/trainingManagement/transferOutApplication', name: '培训日程管理', component: './Admin' },
      { path: '/trainingManagement/changeRequest', name: '培训效果管理', component: './Admin' },
      // { path: '/trainingManagement/transferApplication', name: '培训费用管理', component: './Admin' },
      { path: "/humanResourcePlanning", redirect: "/admin/sub-page" },
      {
        path: "/humanResourcePlanning/organizationalStrategyFormulation",
        name: "组织战略制定",
        component: "./humanResourcePlanning/organizationalStrategyFormulation",
      },
      {
        path: "/humanResourcePlanning/personnelRequirementAnalysis",
        name: "人员需求分析",
        component: "./Admin",
      },
      {
        path: "/humanResourcePlanning/analysisOfHumanResourceSupply",
        name: "人力资源供给分析",
        component: "./Admin",
      },
      {
        path: "/humanResourcePlanning/humanResourcesBudget",
        name: "人力资源预算",
        component: "./Admin",
      },
      {
        path: "/humanResourcePlanning/jobAnalysis",
        name: "工作分析",
        component: "./Admin",
      },
      {
        path: "/humanResourcePlanning/jobEvaluation",
        name: "工作评价",
        component: "./Admin",
      },
    ],
  },
  {
    path: "/Recruiting",
    name: "招聘管理",
    icon: "crown",
    routes: [
      { path: "/Recruiting", redirect: "/admin/sub-page" },
      {
        path: "/Recruiting/recruitmentNeeds",
        name: "招聘需求",
        component: "./Admin",
      },
      {
        path: "/Recruiting/recruitingPlan",
        name: "招聘计划",
        component: "./Admin",
      },
      {
        path: "/Recruiting/jobPosting",
        name: "岗位发布",
        component: "./Admin",
      },
      {
        path: "/Recruiting/workApplicationApproval",
        name: "工作申请审批",
        component: "./Admin",
      },
      { path: "/Recruiting/select", name: "甄选", component: "./Admin" },
      {
        path: "/Recruiting/physicalExamination",
        name: "体检",
        component: "./Admin",
      },
      {
        path: "/Recruiting/employmentInformationRelease",
        name: "录用信息发布",
        component: "./Admin",
      },
      {
        path: "/Recruiting/newEmployeeRegistration",
        name: "新员工报到",
        component: "./Admin",
      },
      {
        path: "/Recruiting/recruitmentEvaluation",
        name: "录用评估",
        component: "./Admin",
      },
      {
        path: "/Recruiting/costManagement",
        name: "费用管理",
        component: "./Admin",
      },
      {
        path: "/Recruiting/talentPoolMaintenance",
        name: "人才库维护",
        component: "./Admin",
      },
    ],
  },
  {
    path: "/humanResourceManagement",
    name: "人事管理",
    icon: "crown",
    routes: [
      { path: "/humanResourceManagement", redirect: "/admin/sub-page" },
      {
        path: "/humanResourceManagement/employeeInformation",
        name: "员工信息",
        component: "./Admin",
      },
      {
        path: "/humanResourceManagement/contractManagement",
        name: "合同管理",
        component: "./HumanResourceManagement/contractManagement",
      },
      {
        path: "/humanResourceManagement/nominationForAppointment",
        name: "任职提名",
        component: "./HumanResourceManagement/nominationForAppointment",
      },
      {
        path: "/humanResourceManagement/dismissalApplication",
        name: "免职申请",
        component: "./HumanResourceManagement/dismissalApplication",
      },
      {
        path: "/humanResourceManagement/transferApplication",
        name: "调入申请",
        component: "./Admin",
      },
      {
        path: "/humanResourceManagement/transferOutApplication",
        name: "调出申请",
        component: "./Admin",
      },
      {
        path: "/humanResourceManagement/changeRequest",
        name: "变动申请",
        component: "./HumanResourceManagement/changeRequest",
      },
      // { path: '/humanResourceManagement/transferApplication', name: '转任申请', component: './Admin' },
      {
        path: "/humanResourceManagement/applicationForSecondment",
        name: "挂职申请",
        component: "./HumanResourceManagement/applicationForSecondment",
      },
      {
        path: "/humanResourceManagement/challengeForCause",
        name: "回避申请",
        component: "./HumanResourceManagement/challengeForCause",
      },
      {
        path: "/humanResourceManagement/resignationApplication",
        name: "离职申请",
        component: "./HumanResourceManagement/resignationApplication",
      },
      // { path: '/humanResourceManagement/dismissalApplication', name: '辞退申请', component: './Admin' },
      // { path: '/humanResourceManagement/retirementManagement', name: '离休管理', component: './Admin' },
      {
        path: "/humanResourceManagement/retirementManagement",
        name: "退休管理",
        component: "./HumanResourceManagement/retirementManagement",
      },
      {
        path: "/humanResourceManagement/compulsoryRetirementApplication",
        name: "强制退休申请",
        component: "./HumanResourceManagement/compulsoryRetirementApplication",
      },
    ],
  },
  {
    path: "/trainingManagement",
    name: "培训管理",
    icon: "crown",
    routes: [
      { path: "/trainingManagement", redirect: "/admin/sub-page" },
      {
        path: "/trainingManagement/培训机构管理",
        name: "培训机构管理",
        component: "./Admin",
      },
      {
        path: "/trainingManagement/contractManagement",
        name: "基础资料管理",
        component: "./Admin",
      },
      {
        path: "/trainingManagement/nominationForAppointment",
        name: "培训需求管理",
        component: "./Admin",
      },
      // { path: '/trainingManagement/dismissalApplication', name: '培训计划管理', component: './Admin' },
      {
        path: "/trainingManagement/transferApplication",
        name: "培训计划管理",
        component: "./Admin",
      },
      {
        path: "/trainingManagement/transferOutApplication",
        name: "培训日程管理",
        component: "./Admin",
      },
      {
        path: "/trainingManagement/changeRequest",
        name: "培训效果管理",
        component: "./Admin",
      },
      // { path: '/trainingManagement/transferApplication', name: '培训费用管理', component: './Admin' },
    ],
  },
  // { name: '查询表格', icon: 'table', path: '/list', component: './TableList' },
@@ -356,12 +543,12 @@
  //   component: './orgManage',
  // },
  {
    name: '部门管理',
    icon: 'crown',
    name: "部门管理",
    icon: "crown",
    headerRender: true,
    access: 'canAdmin',
    path: '/department',
    component: './DepartmentManage',
    access: "canAdmin",
    path: "/department",
    component: "./DepartmentManage",
  },
  { path: '*', layout: false, component: './404' },
  { path: "*", layout: false, component: "./404" },
];