Files
cmanager/src/router/views/index.js

244 lines
5.5 KiB
JavaScript
Raw Normal View History

2024-02-02 15:04:47 +08:00
import Layout from '@/page/index/'
export default [
// 没有引用website里的firstPage
{
path: '/wel',
component: Layout,
redirect: '/wel/index',
children: [{
path: 'index',
name: '首页',
meta: {i18n: 'dashboard',code: "wel"},
component: () =>
// import(/* webpackChunkName: "views" */ '@/views/wel/index')
import(/* webpackChunkName: "views" */ '@/views/workstation/workbench')
}]
},
{
path: '/test',
component: Layout,
redirect: '/test/index',
children: [{
path: 'index',
name: '测试页',
meta: {i18n: 'test'},
component: () =>
import(/* webpackChunkName: "views" */ '@/views/util/test')
}]
},
{
path: '/dict-horizontal',
component: Layout,
redirect: '/dict-horizontal/index',
children: [{
path: 'index',
name: '字典管理',
meta: {i18n: 'dict'},
component: () => import(
/* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal')
}]
},
{
path: '/dict-vertical',
component: Layout,
redirect: '/dict-vertical/index',
children: [{
path: 'index',
name: '字典管理',
meta: {i18n: 'dict'},
component: () => import(
/* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical')
}]
},
{
path: '/info',
component: Layout,
redirect: '/info/index',
children: [{
path: 'index',
name: '个人信息',
meta: {i18n: 'info'},
component: () =>
import(/* webpackChunkName: "views" */ '@/views/system/userinfo')
}]
},
{
path: '/manage',
component: Layout,
children: [
{
path: 'mission/zpView/:missionNo',
name: '招聘情况',
props: true,
meta: {
i18n: 'mission',
isTab: false,
},
component: () => import(
/* webpackChunkName: "views" */ '@/views/manage/mission/zpView')
},
]
},
{
path: '/tenant/news',
component: Layout,
redirect: '/tenant/news/index',
children: [{
path: 'index',
name: '客户消息',
meta: {i18n: 'news',code:'news'},
component: () =>
import(/* webpackChunkName: "views" */ '@/views/tenant/news/index')
}]
},
{
path: '/tenant/account',
component: Layout,
redirect: 'tenant/account/index',
children: [{
path: 'index',
2024-04-25 17:10:55 +08:00
name: '账户信息',
2024-02-02 15:04:47 +08:00
meta: {i18n: 'accountsafe', code: 'accountsafe'},
component: () =>
import(/* webpackChunkName: "views" */ '@/views/tenant/account/index')
}]
},
// {
// path: '/tenant/set',
// component: Layout,
// redirect: 'tenant/set/index',
// children: [{
// path: 'index',
// name: '设置',
// meta: { i18n: 'set' },
// component: () =>
// import(/* webpackChunkName: "views" */ '@/views/tenant/set/index')
// }]
// },
// {
// path: '/tenant/company',
// component: Layout,
// redirect: 'tenant/company/index',
// children: [{
// path: 'index',
// name: '公司主页',
// meta: { i18n: 'companyindex' },
// component: () =>
// import(/* webpackChunkName: "views" */
// '@/views/tenant/company/index')
// }]
// },
{
path: '/news',
name: '文章管理',
component: Layout,
meta: {
i18n: 'index',
isTab: false,
},
children: [
{
path: 'index/:type/:id',
name: '添加/修改文章',
meta: {
i18n: 'index',
isTab: false,
},
props: true,
component: () => import(
/* webpackChunkName: "views" */ '@/views/manage/jlhome/news/addNews')
}
]
},
{
path: '/article',
name: '文章管理',
component: Layout,
meta: {
i18n: 'index',
isTab: false,
},
children: [
{
path: 'index/:type/:id',
name: '添加/修改文章article',
meta: {
i18n: 'index',
isTab: false,
},
props: true,
component: () => import(
/* webpackChunkName: "views" */ '@/views/manage/jlhome/article/allArticle/addNews')
}
]
},
2024-03-13 20:55:24 +08:00
{
path: '/log',
name: '日志管理',
component: Layout,
meta: {
i18n: 'index',
isTab: false,
},
children: [
{
path: 'index/:type/:id',
name: '添加/修改日志log',
meta: {
i18n: 'index',
isTab: false,
},
props: true,
component: () => import(
/* webpackChunkName: "views" */ '@/views/tenant/main/serve/Dialog/addLog')
}
]
},
2024-02-02 15:04:47 +08:00
{
path: '/recommend',
name: '推荐管理',
component: Layout,
meta: {
i18n: 'index',
isTab: false,
},
children: [
{
path: 'index/:type/:id',
name: '管理内容',
meta: {
i18n: 'index',
isTab: false,
},
props: true,
component: () => import(
/* webpackChunkName: "views" */ '@/views/manage/recommend/manageContent/contentManage')
}
]
},
{
path: '/allContent',
name: '全部内容',
component: Layout,
meta: {
i18n: 'index',
isTab: false,
},
children: [
{
path: 'index/:type/:id',
name: '添加/修改内容',
meta: {
i18n: 'index',
isTab: false,
},
props: true,
component: () => import(
/* webpackChunkName: "views" */ '@/views/manage/content/allContent/addContent')
}
]
},
]