project init

This commit is contained in:
zxy
2024-02-02 10:23:22 +08:00
commit dc7051417b
681 changed files with 142886 additions and 0 deletions

248
src/router/views/index.js Normal file
View File

@@ -0,0 +1,248 @@
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')
}]
},
{
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: '/work/process/leave',
component: Layout,
redirect: '/work/process/leave/form',
children: [
{
path: 'form/:processDefinitionId',
name: '请假流程',
meta: {i18n: 'work'},
component: () => import(
/* webpackChunkName: "views" */ '@/views/work/process/leave/form')
},
{
path: 'handle/:taskId/:processInstanceId/:businessId',
name: '处理请假流程',
meta: {i18n: 'work'},
component: () => import(
/* webpackChunkName: "views" */ '@/views/work/process/leave/handle')
},
{
path: 'detail/:processInstanceId/:businessId',
name: '请假流程详情',
meta: {i18n: 'work'},
component: () => import(
/* webpackChunkName: "views" */ '@/views/work/process/leave/detail')
}
]
},
{
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',
name: '账户安全',
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')
}
]
},
{
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')
}
]
},
]