From 73a9ae225888adae528d9b06233f65da04d883db Mon Sep 17 00:00:00 2001 From: 付延余 <f-yanyu@outlook.com> Date: 星期五, 20 五月 2022 13:42:22 +0800 Subject: [PATCH] 其他业务 --- src/router/router.js | 282 +++++++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 239 insertions(+), 43 deletions(-) diff --git a/src/router/router.js b/src/router/router.js index b558e5b..07e060b 100644 --- a/src/router/router.js +++ b/src/router/router.js @@ -1,52 +1,248 @@ -import main from '@/pages/common/Home.vue' +// import main from "@/pages/common/Home.vue"; import showHome from "../pages/show/main/showHome"; import jiuyeAndChuangye from "../pages/show/jiuyeAndChuangye/jiuyeAndChuangye"; import shehuiBaozhang from "../pages/show/shehuiBaozhang/shehuiBaozhang"; +import OtherBusiness from '../pages/show/otherBusiness/OtherBusiness' +import PersonnelTalents from '../pages/show/personnelTalents/PersonnelTalents' const indexRouter = { - path: '/', - name: 'index', - component: showHome, - redirect: '/index', - children: [ - { path: '/index', meta: { title: '澶у睆棣栭〉' }, name: 'index', component: () => import('@/pages/show/index/index.vue')}, - { path: '/jiuyeAndChuangye', - component: jiuyeAndChuangye, - redirect: '/workStatistics', - name: 'jiuyeAndChuangye', - children: [ - { path: '/workStatistics', meta: {title: '灏变笟鍒涗笟'}, name: 'workStatistics', component: () => import('@/pages/show/jiuyeAndChuangye/jiuyeChildren/workStatistics.vue')}, - { path: '/chuangyeDanbaoDaikuan', meta: {title: '鍒涗笟鎷呬繚璐锋'}, name: 'chuangyeDanbaoDaikuan', component: () => import('@/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue')}, - { path: '/jiuyeQingkuang', meta: {title: '灏变笟鎯呭喌'}, name: 'jiuyeQingkuang', component: () => import('@/pages/show/jiuyeAndChuangye/jiuyeChildren/jiuyeQingkuang.vue')}, - ] + path: "/", + name: "index", + component: showHome, + redirect: "/login", + children: [ + { + path: "/index", + meta: {title: "澶у睆棣栭〉"}, + name: "index", + component: () => import("@/pages/show/index/index.vue") + }, + { + path: "/jiuyeAndChuangye", + component: jiuyeAndChuangye, + redirect: "/workStatistics", + name: "jiuyeAndChuangye", + children: [ + { + path: "/workStatistics", + meta: {title: "灏变笟鍒涗笟", routerParent: "jiuyeAndChuangye"}, + name: "workStatistics", + component: () => + import( + "@/pages/show/jiuyeAndChuangye/jiuyeChildren/workStatistics.vue" + ) }, { - path: '/shehuiBaozhang', - component: shehuiBaozhang, - redirect: '/shehuiBaoxian', - name: 'shehuiBaozhang', - children: [ - { path: '/shehuiBaoxian', meta: {title:'绀句細淇濋殰'}, name: 'shehuiBaoxian', component: () => import('@/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shehuiBaoxian.vue')}, - { path: '/shebaoShouzhiZongbiao', meta: {title:'绀句繚鏀舵敮鎬昏〃'}, name: 'shebaoShouzhiZongbiao', component: () => import('@/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoShouzhiZongbiao.vue')}, - ] + path: "/chuangyeDanbaoDaikuan", + meta: {title: "鍒涗笟鎷呬繚璐锋", routerParent: "jiuyeAndChuangye"}, + name: "chuangyeDanbaoDaikuan", + component: () => + import( + "@/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue" + ) + }, + { + path: "/jiuyeQingkuang", + meta: {title: "灏变笟鎯呭喌", routerParent: "jiuyeAndChuangye"}, + name: "jiuyeQingkuang", + component: () => + import( + "@/pages/show/jiuyeAndChuangye/jiuyeChildren/jiuyeQingkuang.vue" + ) + }, + { + path: "/biyeshengStatistics", + meta: {title: "姣曚笟鐢熺粺璁�", routerParent: "jiuyeAndChuangye"}, + name: "biyeshengStatistics", + component: () => + import( + "@/pages/show/jiuyeAndChuangye/jiuyeChildren/biyeshengStatistics.vue" + ) + }, + { + path: "/zhiyePeixun", + meta: {title: "鑱屼笟鍩硅", routerParent: "jiuyeAndChuangye"}, + name: "zhiyePeixun", + component: () => + import( + "@/pages/show/jiuyeAndChuangye/jiuyeChildren/zhiyePeixun.vue" + ) } - ] -} + ] + }, + { + path: "/shehuiBaozhang", + component: shehuiBaozhang, + redirect: "/shehuiBaoxian", + name: "shehuiBaozhang", + children: [ + { + path: "/shehuiBaoxian", + meta: {title: "绀句細淇濋殰", routerParent: "shehuiBaozhang"}, + name: "shehuiBaoxian", + component: () => + import( + "@/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shehuiBaoxian.vue" + ) + }, + { + path: "/shebaoShouzhiZongbiao", + meta: {title: "绀句繚鏀舵敮鎬昏〃", routerParent: "shehuiBaozhang"}, + name: "shebaoShouzhiZongbiao", + component: () => + import( + "@/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoShouzhiZongbiao.vue" + ) + }, + { + path: "/qiyezhigongShebao", + meta: {title: "浼佷笟鑱屽伐绀句繚", routerParent: "shehuiBaozhang"}, + name: "qiyezhigongShebao", + component: () => + import( + "@/pages/show/shehuiBaozhang/shehuiBaozhangChildren/qiyezhigongShebao.vue" + ) + }, + { + path: "/jiguanzhigongShebao", + meta: {title: "鏈哄叧鑱屽伐绀句繚", routerParent: "shehuiBaozhang"}, + name: "jiguanzhigongShebao", + component: () => + import( + "@/pages/show/shehuiBaozhang/shehuiBaozhangChildren/jiguanzhigongShebao.vue" + ) + }, + { + path: "/juminYanglaoBaoxian", + meta: {title: "灞呮皯鍏昏�佷繚闄�", routerParent: "shehuiBaozhang"}, + name: "juminYanglaoBaoxian", + component: () => + import( + "@/pages/show/shehuiBaozhang/shehuiBaozhangChildren/juminYanglaoBaoxian.vue" + ) + }, + { + path: "/shiyeBaoxian", + meta: {title: "澶变笟淇濋櫓", routerParent: "shehuiBaozhang"}, + name: "shiyeBaoxian", + component: () => + import( + "@/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shiyeBaoxian.vue" + ) + }, + { + path: "/gongshangBaoxian", + meta: {title: "宸ヤ激淇濋櫓", routerParent: "shehuiBaozhang"}, + name: "gongshangBaoxian", + component: () => + import( + "@/pages/show/shehuiBaozhang/shehuiBaozhangChildren/gongshangBaoxian.vue" + ) + }, + { + path: "/shebaoZhengjiShouru", + meta: {title: "绀句繚寰侀泦鏀跺叆鏄庣粏", routerParent: "shehuiBaozhang"}, + name: "shebaoZhengjiShouru", + component: () => + import( + "@/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoZhengjiShouru.vue" + ) + }, + { + path: "/shebaoChikaRenshu", + meta: {title: "绀句繚鍗℃寔鍗′汉鏁�", routerParent: "shehuiBaozhang"}, + name: "shebaoChikaRenshu", + component: () => + import( + "@/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoChikaRenshu.vue" + ) + } + ] + }, + { + path: '/personnelTalents', + meta: {title: "浜轰簨浜烘墠"}, + name: 'personnelTalents', + redirect: '/personnelTalents_UnitPersonnel', + component: PersonnelTalents, + children:[ + { + path: "/personnelTalents_UnitPersonnel", + meta: {title: "浜嬩笟鍗曚綅浜哄憳鎯呭喌", routerParent: 'personnelTalents'}, + name: "/personnelTalents_unitPersonnel", + component: () => + import( + "@/pages/show/personnelTalents/personnelTalentsChild/PersonnelTalents_UnitPersonnel.vue" + ) + }, + { + path: "/personnelTalents_GreenCard", + meta: {title: "浜烘墠缁垮崱琛ヨ创", routerParent: 'personnelTalents'}, + name: "/PersonnelTalents_GreenCard", + component: () => + import( + "@/pages/show/personnelTalents/personnelTalentsChild/PersonnelTalents_GreenCard.vue" + ) + } + ] + }, + { + path: '/laborRelations', + meta: {title: "鍔冲姩鍏崇郴", routerParent: 'laborRelations'}, + name: 'LaborRelations', + component: () => import("@/pages/show/laborRelations/LaborRelations.vue") + }, + { + path: "/otherBusiness", + component: OtherBusiness, + meta: {title: "鍏朵粬涓氬姟"}, + redirect: "/otherB_PeopleJunShouRu", + name: "otherBusiness", + children: [ + { + path: "/otherB_PeopleJunShouRu", + meta: {title: "灞呮皯浜哄眳鏀跺叆銆佸彲鏀厤鏀跺叆", routerParent: 'otherBusiness'}, + name: "otherB_PeopleJunShouRu", + component: () => + import( + "@/pages/show/otherBusiness/otherBusinessChild/OtherB_PeopleJunShouRu.vue" + ) + }, + { + path: "/otherB_GongGuTuoPin", + meta: {title: "灞呮皯浜哄眳鏀跺叆銆佸彲鏀厤鏀跺叆", routerParent: 'otherBusiness'}, + name: "otherB_GongGuTuoPin", + component: () => + import( + "@/pages/show/otherBusiness/otherBusinessChild/OtherB_GongGuTuoPin.vue" + ) + } + ] + }, + { + path: "/businessPolicy", + meta: {title: "钀ュ晢鏀跨瓥", routerParent: 'businessPolicy'}, + name: "businessPolicy", + component: () => import("@/pages/show/businessPolicy/BusinessPolicy") + } + ] +}; const login = { - path: '/login', - component: () => import('@/pages/login.vue'), - meta: { - title: `鍚庡彴鐧婚檰`, - } -} -const NotFound = { - path: '/404', - component: () => import('@/error_pages/404.vue'), - meta: { - title: "404 | 鍟婂摝~ 浣犳墍璁块棶鐨勯〉闈笉瀛樺湪", - } -} + path: "/login", + name:'login', + component: () => import("@/pages/login.vue"), + meta: { + title: `鍚庡彴鐧婚檰` + } +}; +// const NotFound = { +// path: "/404", +// component: () => import("@/error_pages/404.vue"), +// meta: { +// title: "404 | 鍟婂摝~ 浣犳墍璁块棶鐨勯〉闈笉瀛樺湪" +// } +// }; export const routers = [ - indexRouter, - // login, - // NotFound -] + indexRouter, + login + // NotFound +]; -- Gitblit v1.9.1