|
@@ -5,14 +5,12 @@ Vue.use(Router)
|
|
|
|
|
|
/* Layout */
|
|
|
import Layout from '@/layout'
|
|
|
-import creatWebsite from '@/layout/creatWebsite'
|
|
|
|
|
|
/* Router Modules */
|
|
|
import componentsRouter from './modules/components'
|
|
|
import chartsRouter from './modules/charts'
|
|
|
import tableRouter from './modules/table'
|
|
|
import nestedRouter from './modules/nested'
|
|
|
-import dangyunlong from './modules/dangyunlong'
|
|
|
|
|
|
/**
|
|
|
* Note: sub-menu only appear when route children.length >= 1
|
|
@@ -41,7 +39,6 @@ import dangyunlong from './modules/dangyunlong'
|
|
|
* all roles can be accessed
|
|
|
*/
|
|
|
export const constantRoutes = [
|
|
|
- ...dangyunlong,
|
|
|
{
|
|
|
path: '/redirect',
|
|
|
component: Layout,
|
|
@@ -94,6 +91,246 @@ export const constantRoutes = [
|
|
|
//增加新的路由 站点列表
|
|
|
//注意必须含有component:Layout项目否则会导致页面找不到模板
|
|
|
//必须含有children中的path且两个path必须一致
|
|
|
+ {
|
|
|
+ path: '/website',
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ name: '', //直接就是根目录所以为空
|
|
|
+ path: '',
|
|
|
+ component: () => import('@/views/website/WebsiteList'),
|
|
|
+ meta: {
|
|
|
+ title: '网站管理', // 设置菜单和面包屑显示的标题
|
|
|
+ hidden: true, // 不在侧边菜单显示
|
|
|
+ breadcrumb: true // 强制在面包屑中显示
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/categoryList',
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ name: '',
|
|
|
+ path: '',
|
|
|
+ component: () => import('@/views/website/categoryList'),
|
|
|
+ meta: {
|
|
|
+ title: '导航池',
|
|
|
+ hidden: true,
|
|
|
+ breadcrumb: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/websiteColumn',
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ name: '',
|
|
|
+ path: '',
|
|
|
+ component: () => import('@/views/website/websiteColumn'),
|
|
|
+ meta: {
|
|
|
+ title: '网站导航',
|
|
|
+ hidden: true,
|
|
|
+ breadcrumb: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/editNavigation',
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ name: '',
|
|
|
+ path: '',
|
|
|
+ component: () => import('@/views/website/editNavigation'),
|
|
|
+ meta: {
|
|
|
+ title: '导航详情',
|
|
|
+ hidden: true,
|
|
|
+ breadcrumb: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/articleList',
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ name: '',
|
|
|
+ path: '',
|
|
|
+ component: () => import('@/views/news/NewList'),
|
|
|
+ meta: {
|
|
|
+ title: '资讯列表',
|
|
|
+ hidden: true,
|
|
|
+ breadcrumb: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/creatNews',
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ name: '',
|
|
|
+ path: '',
|
|
|
+ component: () => import('@/views/news/creatNews'),
|
|
|
+ meta: {
|
|
|
+ title: '添加资讯',
|
|
|
+ hidden: true,
|
|
|
+ breadcrumb: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/menuList',
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ name: '',
|
|
|
+ path: '',
|
|
|
+ component: () => import('@/views/menu/menulist'),
|
|
|
+ meta: {
|
|
|
+ title: '菜单列表',
|
|
|
+ hidden: true,
|
|
|
+ breadcrumb: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/complaintList',
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ name: '',
|
|
|
+ path: '',
|
|
|
+ component: () => import('@/views/complaint/complaintList'),
|
|
|
+ meta: {
|
|
|
+ title: '投诉举报',
|
|
|
+ hidden: true,
|
|
|
+ breadcrumb: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/roleList',
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ name: '',
|
|
|
+ path: '',
|
|
|
+ component: () => import('@/views/role/roleList'),
|
|
|
+ meta: {
|
|
|
+ title: '角色管理',
|
|
|
+ hidden: true,
|
|
|
+ breadcrumb: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/userList',
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ name: '',
|
|
|
+ path: '',
|
|
|
+ component: () => import('@/views/role/userList'),
|
|
|
+ meta: {
|
|
|
+ title: '用户管理',
|
|
|
+ hidden: true,
|
|
|
+ breadcrumb: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/creatUser',
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ name: '',
|
|
|
+ path: '',
|
|
|
+ component: () => import('@/views/role/creatUser'),
|
|
|
+ meta: {
|
|
|
+ title: '添加用户',
|
|
|
+ hidden: true,
|
|
|
+ breadcrumb: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/department',
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ name: '',
|
|
|
+ path: '',
|
|
|
+ component: () => import('@/views/menu/department'),
|
|
|
+ meta: {
|
|
|
+ title: '行政职能',
|
|
|
+ hidden: true,
|
|
|
+ breadcrumb: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/hall',
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ name: '',
|
|
|
+ path: '',
|
|
|
+ component: () => import('@/views/chat/hall'),
|
|
|
+ meta: {
|
|
|
+ title: '聊天',
|
|
|
+ hidden: true,
|
|
|
+ breadcrumb: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/creatWebsite',
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ name: '',
|
|
|
+ path: '',
|
|
|
+ component: () => import('@/views/website/creatWebsite'),
|
|
|
+ meta: {
|
|
|
+ title: '搭建网站',
|
|
|
+ hidden: true,
|
|
|
+ breadcrumb: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/contacts',
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ name: '',
|
|
|
+ path: '',
|
|
|
+ component: () => import('@/views/chat/contacts'),
|
|
|
+ meta: {
|
|
|
+ title: '通讯录',
|
|
|
+ hidden: true,
|
|
|
+ breadcrumb: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
{
|
|
|
path: '/webCrawler',
|
|
|
component: Layout,
|
|
@@ -111,15 +348,15 @@ export const constantRoutes = [
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: '/webRule',
|
|
|
+ path: '/topic',
|
|
|
component: Layout,
|
|
|
children: [
|
|
|
{
|
|
|
name: '',
|
|
|
path: '',
|
|
|
- component: () => import('@/views/crawler/webRule'),
|
|
|
+ component: () => import('@/views/chat/topic'),
|
|
|
meta: {
|
|
|
- title: '规则列表',
|
|
|
+ title: '课题',
|
|
|
hidden: true,
|
|
|
breadcrumb: true
|
|
|
}
|
|
@@ -127,31 +364,31 @@ export const constantRoutes = [
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: '/webCrawlerList',
|
|
|
+ path: '/webRule',
|
|
|
component: Layout,
|
|
|
children: [
|
|
|
{
|
|
|
name: '',
|
|
|
path: '',
|
|
|
- component: () => import('@/views/crawler/webCrawlerList'),
|
|
|
+ component: () => import('@/views/crawler/webRule'),
|
|
|
meta: {
|
|
|
- title: '采集列表',
|
|
|
+ title: '规则列表',
|
|
|
hidden: true,
|
|
|
breadcrumb: true
|
|
|
}
|
|
|
- },
|
|
|
+ }
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: '/webCrawlerListEdit',
|
|
|
+ path: '/creatTopic',
|
|
|
component: Layout,
|
|
|
children: [
|
|
|
{
|
|
|
name: '',
|
|
|
path: '',
|
|
|
- component: () => import('@/views/crawler/webCrawlerListEdit'),
|
|
|
+ component: () => import('@/views/chat/creatTopic'),
|
|
|
meta: {
|
|
|
- title: '编辑资讯',
|
|
|
+ title: '编辑课题',
|
|
|
hidden: true,
|
|
|
breadcrumb: true
|
|
|
}
|
|
@@ -159,15 +396,15 @@ export const constantRoutes = [
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: '/adList',
|
|
|
+ path: '/webCrawlerList',
|
|
|
component: Layout,
|
|
|
children: [
|
|
|
{
|
|
|
name: '',
|
|
|
path: '',
|
|
|
- component: () => import('@/views/advertise/advertiseList'),
|
|
|
+ component: () => import('@/views/crawler/webCrawlerList'),
|
|
|
meta: {
|
|
|
- title: '广告列表',
|
|
|
+ title: '采集列表',
|
|
|
hidden: true,
|
|
|
breadcrumb: true
|
|
|
}
|
|
@@ -175,15 +412,15 @@ export const constantRoutes = [
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: '/adPlaceList',
|
|
|
+ path: '/webCrawlerListEdit',
|
|
|
component: Layout,
|
|
|
children: [
|
|
|
{
|
|
|
name: '',
|
|
|
path: '',
|
|
|
- component: () => import('@/views/advertise/adPlaceList'),
|
|
|
+ component: () => import('@/views/crawler/webCrawlerListEdit'),
|
|
|
meta: {
|
|
|
- title: '广告位管理',
|
|
|
+ title: '编辑资讯',
|
|
|
hidden: true,
|
|
|
breadcrumb: true
|
|
|
}
|
|
@@ -191,15 +428,15 @@ export const constantRoutes = [
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: '/blogroll',
|
|
|
+ path: '/adList',
|
|
|
component: Layout,
|
|
|
children: [
|
|
|
{
|
|
|
name: '',
|
|
|
path: '',
|
|
|
- component: () => import('@/views/website/blogroll.vue'),
|
|
|
+ component: () => import('@/views/advertise/advertiseList'),
|
|
|
meta: {
|
|
|
- title: '友情链接',
|
|
|
+ title: '广告列表',
|
|
|
hidden: true,
|
|
|
breadcrumb: true
|
|
|
}
|
|
@@ -207,102 +444,21 @@ export const constantRoutes = [
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: '/adPlaceDetail',
|
|
|
+ path: '/adPlaceList',
|
|
|
component: Layout,
|
|
|
children: [
|
|
|
{
|
|
|
name: '',
|
|
|
path: '',
|
|
|
- component: () => import('@/views/advertise/adPlaceDetail'),
|
|
|
+ component: () => import('@/views/advertise/adPlaceList'),
|
|
|
meta: {
|
|
|
- title: '广告位详情',
|
|
|
+ title: '广告位管理',
|
|
|
hidden: true,
|
|
|
breadcrumb: true
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
- // {
|
|
|
- // path: '/tabbar',
|
|
|
- // component: Layout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // name: '',
|
|
|
- // path: '',
|
|
|
- // component: () => import('@/views/tabbar/tabbar.vue'),
|
|
|
- // meta: {
|
|
|
- // title: '底部导航栏',
|
|
|
- // hidden: true,
|
|
|
- // breadcrumb: true
|
|
|
- // }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: '/tabbarDetail',
|
|
|
- // component: Layout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // name: '',
|
|
|
- // path: '',
|
|
|
- // component: () => import('@/views/tabbar/tabbarDetail.vue'),
|
|
|
- // meta: {
|
|
|
- // title: '导航详情',
|
|
|
- // hidden: true,
|
|
|
- // breadcrumb: true
|
|
|
- // }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: '/style',
|
|
|
- // component: Layout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // name: '',
|
|
|
- // path: '',
|
|
|
- // component: () => import('@/views/componentGallery/style.vue'),
|
|
|
- // meta: {
|
|
|
- // title: '风格',
|
|
|
- // hidden: true,
|
|
|
- // breadcrumb: true
|
|
|
- // }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: '/plate',
|
|
|
- // component: Layout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // name: '',
|
|
|
- // path: '',
|
|
|
- // component: () => import('@/views/componentGallery/plate.vue'),
|
|
|
- // meta: {
|
|
|
- // title: '版块',
|
|
|
- // hidden: true,
|
|
|
- // breadcrumb: true
|
|
|
- // }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: '/module',
|
|
|
- // component: Layout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // name: '',
|
|
|
- // path: '',
|
|
|
- // component: () => import('@/views/componentGallery/module.vue'),
|
|
|
- // meta: {
|
|
|
- // title: '组件',
|
|
|
- // hidden: true,
|
|
|
- // breadcrumb: true
|
|
|
- // }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
-
|
|
|
// {
|
|
|
// path: '/documentation',
|
|
|
// component: Layout,
|
|
@@ -328,7 +484,24 @@ export const constantRoutes = [
|
|
|
// }
|
|
|
// ]
|
|
|
// },
|
|
|
-
|
|
|
+ {
|
|
|
+ path: '/profile',
|
|
|
+ component: Layout,
|
|
|
+ redirect: '/profile/index',
|
|
|
+ hidden: true,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'index',
|
|
|
+ component: () => import('@/views/profile/index'),
|
|
|
+ name: 'Profile',
|
|
|
+ meta: {
|
|
|
+ title: '个人中心',
|
|
|
+ hidden: true,
|
|
|
+ breadcrumb: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
]
|
|
|
|
|
|
/**
|