2022-06-14 09:32:49 +08:00
|
|
|
import { createRouter, createWebHashHistory } from 'vue-router'
|
|
|
|
import Layout from '@/layout'
|
|
|
|
|
|
|
|
export const constantRoutes = [
|
|
|
|
{
|
|
|
|
path: '/login',
|
|
|
|
component: () => import('@/views/login'),
|
|
|
|
hidden: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/403',
|
|
|
|
name: '403',
|
|
|
|
component: () => import('@/views/403'),
|
|
|
|
hidden: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/404',
|
|
|
|
name: '404',
|
|
|
|
component: () => import('@/views/404'),
|
|
|
|
hidden: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/home',
|
|
|
|
name: 'home',
|
|
|
|
component: () => import('@/views/newHome'),
|
|
|
|
meta: {
|
|
|
|
title: '能力管理平台',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/newHome',
|
|
|
|
name: 'newHome',
|
|
|
|
component: () => import('@/views/home'),
|
|
|
|
meta: {
|
|
|
|
title: '能力管理平台',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/bg',
|
|
|
|
name: 'bg',
|
|
|
|
component: () => import('@/views/home/background/bg'),
|
|
|
|
meta: {
|
|
|
|
title: '测试背景',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/demandCenter',
|
|
|
|
name: 'demandCenter',
|
|
|
|
component: () => import('@/views/demandCenter'),
|
|
|
|
meta: {
|
|
|
|
title: '需求中心',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/demandDetails',
|
|
|
|
name: 'demandDetails',
|
|
|
|
component: () => import('@/views/demandCenter/demandDetails'),
|
|
|
|
meta: {
|
|
|
|
title: '需求详情',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
2022-06-15 15:00:28 +08:00
|
|
|
{
|
|
|
|
path: '/mapTest',
|
|
|
|
name: 'mapTest',
|
|
|
|
component: () => import('@/views/home/mapTest'),
|
|
|
|
meta: {
|
|
|
|
title: '地图测试',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
2022-06-14 09:32:49 +08:00
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
component: Layout,
|
|
|
|
redirect: '/home',
|
|
|
|
meta: {
|
|
|
|
title: '能力管理平台编目',
|
|
|
|
icon: 'apps-line',
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '/PowerResourcesCatalogue',
|
|
|
|
name: 'PowerResourcesCatalogue',
|
|
|
|
component: () =>
|
|
|
|
import(
|
|
|
|
'@/views/index/capabilityCatalogingManagement/PowerResourcesCatalogue'
|
|
|
|
),
|
|
|
|
meta: {
|
|
|
|
title: '能力管理平台编目',
|
|
|
|
icon: 'table-2',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// path: '/PowerResourcesCatalogue',
|
|
|
|
// name: 'PowerResourcesCatalogue',
|
|
|
|
// component: () =>
|
|
|
|
// import(
|
|
|
|
// '@/views/index/capabilityCatalogingManagement/PowerResourcesCatalogue'
|
|
|
|
// ),
|
|
|
|
// meta: {
|
|
|
|
// title: '能力管理平台编目',
|
|
|
|
// icon: 'error-warning-line',
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
{
|
|
|
|
path: '/apply',
|
|
|
|
name: 'apply',
|
|
|
|
hidden: true,
|
|
|
|
component: () => import('@/views/home/apply'),
|
|
|
|
meta: {
|
|
|
|
title: '能力申请',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/addApplication',
|
|
|
|
name: 'addApplication',
|
|
|
|
hidden: true,
|
|
|
|
component: () => import('@/views/personalCenter/components/addApplication'),
|
|
|
|
meta: {
|
|
|
|
title: '新增需求',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/WorkDynList',
|
|
|
|
name: 'WorkDynList',
|
|
|
|
hidden: true,
|
|
|
|
component: () => import('@/views/newHome/components/WorkDynList'),
|
|
|
|
meta: {
|
|
|
|
title: '工作动态',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/WorkDynDetails',
|
|
|
|
name: 'WorkDynDetails',
|
|
|
|
hidden: true,
|
|
|
|
component: () => import('@/views/newHome/components/WorkDynDetails'),
|
|
|
|
meta: {
|
|
|
|
title: '工作动态详情',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/details',
|
|
|
|
name: 'details',
|
|
|
|
hidden: true,
|
|
|
|
component: () => import('@/views/home/details'),
|
|
|
|
meta: {
|
|
|
|
title: '详情',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/DetailsPageconetent',
|
|
|
|
name: 'DetailsPageconetent',
|
|
|
|
hidden: true,
|
|
|
|
component: () => import('@/views/home/DetailsPageconetent'),
|
|
|
|
meta: {
|
|
|
|
title: '搜索详情',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/VueTemplateDemo',
|
|
|
|
name: 'VueTemplateDemo',
|
|
|
|
hidden: true,
|
|
|
|
component: () => import('@/views/personalCenter/VueTemplateDemo'),
|
|
|
|
meta: {
|
|
|
|
title: '搜索详情',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/system',
|
|
|
|
component: Layout,
|
|
|
|
alwaysShow: true,
|
|
|
|
meta: {
|
|
|
|
title: '系统设置',
|
|
|
|
icon: 'apps-line',
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '/CapabilityDictionary',
|
|
|
|
name: 'CapabilityDictionary',
|
|
|
|
component: () =>
|
|
|
|
import(
|
|
|
|
'@/views/index/capabilityCatalogingManagement/CapabilityDictionary'
|
|
|
|
),
|
|
|
|
meta: {
|
|
|
|
title: '字典管理',
|
|
|
|
icon: 'table-2',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/apply',
|
|
|
|
name: 'apply',
|
|
|
|
component: () => import('@/views/home/apply'),
|
|
|
|
meta: {
|
|
|
|
title: '能力申请',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/details',
|
|
|
|
name: 'details',
|
|
|
|
component: () => import('@/views/home/details'),
|
|
|
|
meta: {
|
|
|
|
title: '详情',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/PictureCharacterRecognition',
|
|
|
|
name: 'PictureCharacterRecognition',
|
|
|
|
component: () =>
|
2022-06-14 10:45:59 +08:00
|
|
|
import(
|
|
|
|
'@/views/detailsAll/components/Algorithm/PictureCharacterRecognition'
|
|
|
|
),
|
2022-06-14 09:32:49 +08:00
|
|
|
meta: {
|
|
|
|
title: '图片文字识别',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/TestOfWords',
|
|
|
|
name: 'TestOfWords',
|
2022-06-14 10:45:59 +08:00
|
|
|
component: () =>
|
|
|
|
import('@/views/detailsAll/components/Algorithm/TestOfWords'),
|
2022-06-14 09:32:49 +08:00
|
|
|
meta: {
|
|
|
|
title: '文字检验',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/DetailsPageconetent',
|
|
|
|
name: 'DetailsPageconetent',
|
|
|
|
component: () => import('@/views/home/DetailsPageconetent'),
|
|
|
|
meta: {
|
|
|
|
title: '搜索详情',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
component: Layout,
|
|
|
|
redirect: '/index',
|
|
|
|
meta: {
|
|
|
|
title: '首页',
|
|
|
|
icon: 'home-4-line',
|
|
|
|
affix: true,
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'index',
|
|
|
|
name: 'Index',
|
|
|
|
component: () => import('@/views/index'),
|
|
|
|
meta: {
|
|
|
|
title: '首页',
|
|
|
|
icon: 'home-4-line',
|
|
|
|
affix: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/vab',
|
|
|
|
component: Layout,
|
|
|
|
redirect: '/vab/table',
|
|
|
|
alwaysShow: true,
|
|
|
|
meta: {
|
|
|
|
title: '组件',
|
|
|
|
icon: 'apps-line',
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'table',
|
|
|
|
name: 'Table',
|
|
|
|
component: () => import('@/views/vab/table'),
|
|
|
|
meta: {
|
|
|
|
title: '表格',
|
|
|
|
icon: 'table-2',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'icon',
|
|
|
|
name: 'Icon',
|
|
|
|
component: () => import('@/views/vab/icon'),
|
|
|
|
meta: {
|
|
|
|
title: '图标',
|
|
|
|
icon: 'remixicon-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/test',
|
|
|
|
component: Layout,
|
|
|
|
redirect: '/test/test',
|
|
|
|
meta: {
|
|
|
|
title: '动态路由测试',
|
|
|
|
icon: 'test-tube-line',
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'test',
|
|
|
|
name: 'Test',
|
|
|
|
component: () => import('@/views/test'),
|
|
|
|
meta: {
|
|
|
|
title: '动态路由测试',
|
|
|
|
icon: 'test-tube-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/error',
|
|
|
|
name: 'Error',
|
|
|
|
component: Layout,
|
|
|
|
redirect: '/error/403',
|
|
|
|
meta: {
|
|
|
|
title: '错误页',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '403',
|
|
|
|
name: 'Error403',
|
|
|
|
component: () => import('@/views/403'),
|
|
|
|
meta: {
|
|
|
|
title: '403',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '404',
|
|
|
|
name: 'Error404',
|
|
|
|
component: () => import('@/views/404'),
|
|
|
|
meta: {
|
|
|
|
title: '404',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/*',
|
|
|
|
redirect: '/404',
|
|
|
|
hidden: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/personalCenter',
|
|
|
|
name: 'personalCenter',
|
|
|
|
component: () => import('@/views/personalCenter/index'),
|
|
|
|
meta: {
|
|
|
|
title: '个人中心',
|
|
|
|
icon: 'error-warning-line',
|
2022-06-15 09:34:16 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
// 赋能案例
|
|
|
|
{
|
|
|
|
path: '/assignCase',
|
|
|
|
name: 'assignCase',
|
|
|
|
component: () => import('@/views/assignCase/index'),
|
|
|
|
meta: {
|
|
|
|
title: '赋能案例',
|
|
|
|
icon: 'error-warning-line',
|
2022-06-14 09:32:49 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/nenglishangjia',
|
|
|
|
name: 'TheNewRelease',
|
|
|
|
component: () => import('@/views/personalCenter/components/TheNewRelease'),
|
|
|
|
meta: {
|
|
|
|
title: '能力上架',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/abilityStatistics',
|
|
|
|
name: 'abilityStatistics',
|
|
|
|
component: () => import('@/views/abilityStatistics/index'),
|
|
|
|
meta: {
|
|
|
|
title: '能力统计',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/developmentGuide',
|
|
|
|
name: 'developmentGuide',
|
|
|
|
component: () => import('@/views/developmentGuide/index'),
|
|
|
|
meta: {
|
|
|
|
title: '开发指南',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
export const asyncRoutes = [
|
|
|
|
{
|
|
|
|
path: '/error',
|
|
|
|
name: 'Error',
|
|
|
|
component: Layout,
|
|
|
|
redirect: '/error/403',
|
|
|
|
meta: {
|
|
|
|
title: '错误页',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '403',
|
|
|
|
name: 'Error403',
|
|
|
|
component: () => import('@/views/403'),
|
|
|
|
meta: {
|
|
|
|
title: '403',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '404',
|
|
|
|
name: 'Error404',
|
|
|
|
component: () => import('@/views/404'),
|
|
|
|
meta: {
|
|
|
|
title: '404',
|
|
|
|
icon: 'error-warning-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/vab',
|
|
|
|
component: Layout,
|
|
|
|
redirect: '/vab/table',
|
|
|
|
alwaysShow: true,
|
|
|
|
meta: {
|
|
|
|
title: '组件',
|
|
|
|
icon: 'apps-line',
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'table',
|
|
|
|
name: 'Table',
|
|
|
|
component: () => import('@/views/vab/table'),
|
|
|
|
meta: {
|
|
|
|
title: '表格',
|
|
|
|
icon: 'table-2',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'icon',
|
|
|
|
name: 'Icon',
|
|
|
|
component: () => import('@/views/vab/icon'),
|
|
|
|
meta: {
|
|
|
|
title: '图标',
|
|
|
|
icon: 'remixicon-line',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
]
|
|
|
|
const router = createRouter({
|
|
|
|
history: createWebHashHistory(),
|
|
|
|
routes: constantRoutes,
|
|
|
|
})
|
|
|
|
|
|
|
|
export default router
|