|
@@ -5,12 +5,14 @@ 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
|
|
@@ -39,6 +41,7 @@ import nestedRouter from './modules/nested'
|
|
|
* all roles can be accessed
|
|
|
*/
|
|
|
export const constantRoutes = [
|
|
|
+ ...dangyunlong,
|
|
|
{
|
|
|
path: '/redirect',
|
|
|
component: Layout,
|
|
@@ -91,246 +94,6 @@ 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,
|
|
@@ -348,15 +111,15 @@ export const constantRoutes = [
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: '/topic',
|
|
|
+ path: '/webRule',
|
|
|
component: Layout,
|
|
|
children: [
|
|
|
{
|
|
|
name: '',
|
|
|
path: '',
|
|
|
- component: () => import('@/views/chat/topic'),
|
|
|
+ component: () => import('@/views/crawler/webRule'),
|
|
|
meta: {
|
|
|
- title: '课题',
|
|
|
+ title: '规则列表',
|
|
|
hidden: true,
|
|
|
breadcrumb: true
|
|
|
}
|
|
@@ -364,31 +127,31 @@ export const constantRoutes = [
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: '/webRule',
|
|
|
+ path: '/webCrawlerList',
|
|
|
component: Layout,
|
|
|
children: [
|
|
|
{
|
|
|
name: '',
|
|
|
path: '',
|
|
|
- component: () => import('@/views/crawler/webRule'),
|
|
|
+ component: () => import('@/views/crawler/webCrawlerList'),
|
|
|
meta: {
|
|
|
- title: '规则列表',
|
|
|
+ title: '采集列表',
|
|
|
hidden: true,
|
|
|
breadcrumb: true
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: '/creatTopic',
|
|
|
+ path: '/webCrawlerListEdit',
|
|
|
component: Layout,
|
|
|
children: [
|
|
|
{
|
|
|
name: '',
|
|
|
path: '',
|
|
|
- component: () => import('@/views/chat/creatTopic'),
|
|
|
+ component: () => import('@/views/crawler/webCrawlerListEdit'),
|
|
|
meta: {
|
|
|
- title: '编辑课题',
|
|
|
+ title: '编辑资讯',
|
|
|
hidden: true,
|
|
|
breadcrumb: true
|
|
|
}
|
|
@@ -396,15 +159,15 @@ export const constantRoutes = [
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: '/webCrawlerList',
|
|
|
+ path: '/adList',
|
|
|
component: Layout,
|
|
|
children: [
|
|
|
{
|
|
|
name: '',
|
|
|
path: '',
|
|
|
- component: () => import('@/views/crawler/webCrawlerList'),
|
|
|
+ component: () => import('@/views/advertise/advertiseList'),
|
|
|
meta: {
|
|
|
- title: '采集列表',
|
|
|
+ title: '广告列表',
|
|
|
hidden: true,
|
|
|
breadcrumb: true
|
|
|
}
|
|
@@ -412,15 +175,15 @@ export const constantRoutes = [
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: '/webCrawlerListEdit',
|
|
|
+ path: '/adPlaceList',
|
|
|
component: Layout,
|
|
|
children: [
|
|
|
{
|
|
|
name: '',
|
|
|
path: '',
|
|
|
- component: () => import('@/views/crawler/webCrawlerListEdit'),
|
|
|
+ component: () => import('@/views/advertise/adPlaceList'),
|
|
|
meta: {
|
|
|
- title: '编辑资讯',
|
|
|
+ title: '广告位管理',
|
|
|
hidden: true,
|
|
|
breadcrumb: true
|
|
|
}
|
|
@@ -428,15 +191,15 @@ export const constantRoutes = [
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: '/adList',
|
|
|
+ path: '/blogroll',
|
|
|
component: Layout,
|
|
|
children: [
|
|
|
{
|
|
|
name: '',
|
|
|
path: '',
|
|
|
- component: () => import('@/views/advertise/advertiseList'),
|
|
|
+ component: () => import('@/views/website/blogroll.vue'),
|
|
|
meta: {
|
|
|
- title: '广告列表',
|
|
|
+ title: '友情链接',
|
|
|
hidden: true,
|
|
|
breadcrumb: true
|
|
|
}
|
|
@@ -444,21 +207,102 @@ export const constantRoutes = [
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: '/adPlaceList',
|
|
|
+ path: '/adPlaceDetail',
|
|
|
component: Layout,
|
|
|
children: [
|
|
|
{
|
|
|
name: '',
|
|
|
path: '',
|
|
|
- component: () => import('@/views/advertise/adPlaceList'),
|
|
|
+ component: () => import('@/views/advertise/adPlaceDetail'),
|
|
|
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,
|
|
@@ -484,24 +328,7 @@ 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
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
+
|
|
|
]
|
|
|
|
|
|
/**
|