123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288 |
- import Vue from 'vue';
- import VueRouter from 'vue-router';
- import checkLogin from '@common/router/before';
- Vue.use(VueRouter);
- const routes = [
- {
- path: '/',
- name: 'home',
- component: () => import('../views/home/index.vue'),
- },
- // 科技政务
- {
- path: '/government/index',
- component: () => import('../views/government/index.vue'),
- },
- // 科技政务-栏目列表
- {
- path: '/government/columnDetail',
- component: () => import('../views/government/columnDetail.vue'),
- },
- // 科技政务-信息列表
- {
- path: '/government/messageInfoDetail',
- component: () => import('../views/government/messageInfoDetail.vue'),
- },
- // 科技政策
- {
- path: '/policy/index',
- component: () => import('../views/policy/index.vue'),
- },
- // 科技政策-栏目列表
- {
- path: '/policy/columnDetail',
- component: () => import('../views/policy/columnDetail.vue'),
- },
- // 科技政策-信息列表
- {
- path: '/policy/messageInfoDetail',
- component: () => import('../views/policy/messageInfoDetail.vue'),
- },
- // 科技数据
- {
- path: '/record/index',
- component: () => import('../views/record/index.vue'),
- },
- // 科技数据-栏目列表
- {
- path: '/record/columnDetail',
- component: () => import('../views/record/columnDetail.vue'),
- },
- // 科技数据-信息列表
- {
- path: '/record/messageInfoDetail',
- component: () => import('../views/record/messageInfoDetail.vue'),
- },
- // 科技服务
- {
- path: '/serve/index',
- component: () => import('../views/serve/index.vue'),
- },
- // 科技服务-栏目列表
- {
- path: '/serve/columnDetail',
- component: () => import('../views/serve/columnDetail.vue'),
- },
- // 科技服务-信息列表
- {
- path: '/serve/messageInfoDetail',
- component: () => import('../views/serve/messageInfoDetail.vue'),
- },
- // 科技资源
- {
- path: '/resource/index',
- component: () => import('../views/resource/index.vue'),
- },
- // 科技人才-栏目管理
- {
- path: '/personnel/column',
- component: () => import('../views/personnel/column.vue'),
- },
- // 科技人才-添加栏目
- {
- path: '/personnel/columnDetail',
- component: () => import('../views/personnel/columnDetail.vue'),
- },
- // 科技人才-招聘信息管理
- {
- path: '/personnel/recruit',
- component: () => import('../views/personnel/recruit.vue'),
- },
- // 科技人才-添加招聘信息
- {
- path: '/personnel/recruitDetail',
- component: () => import('../views/personnel/recruitDetail.vue'),
- },
- // 科技人才-人才信息管理
- {
- path: '/personnel/resume',
- component: () => import('../views/personnel/resume.vue'),
- },
- // 科技人才-添加人才
- {
- path: '/personnel/resumeDetail',
- component: () => import('../views/personnel/resumeDetail.vue'),
- },
- // 科技人才-专家信息管理
- {
- path: '/personnel/experts',
- component: () => import('../views/personnel/experts.vue'),
- },
- // 科技人才-添加专家
- {
- path: '/personnel/expertsDetail',
- component: () => import('../views/personnel/expertsDetail.vue'),
- },
- // 科技人才-基本信息管理
- {
- path: '/personnel/informate',
- component: () => import('../views/personnel/informate.vue'),
- },
- // 科技人才-添加基本信息
- {
- path: '/personnel/informateDetail',
- component: () => import('../views/personnel/informateDetail.vue'),
- },
- //科技超市企业状态审核管理
- {
- path: '/enterprise/index',
- component: () => import('../views/enterprise/index.vue'),
- },
- //科技超市交易审核管理
- {
- path: '/enterprise/transaction',
- component: () => import('../views/enterprise/transaction.vue'),
- },
- //科技超市发起交易审核详情
- {
- path: '/enterprise/detail',
- component: () => import('../views/enterprise/detail.vue'),
- },
- //科技超市交易审核管理
- {
- path: '/enterprise/jiaoyidetail',
- component: () => import('../views/enterprise/jiaoyidetail.vue'),
- },
- // 站点信息
- {
- path: '/site/index',
- meta: { title: '网站设置' },
- component: () => import('../views/site/index.vue'),
- },
- // 用户管理
- {
- path: '/user/index',
- meta: { title: '用户设置' },
- component: () => import('../views/user/index.vue'),
- },
- {
- path: '/user/detail',
- meta: { title: '添加用户' },
- component: () => import('../views/user/detail.vue'),
- },
- // 友情链接管理
- {
- path: '/links/index',
- meta: { title: '友情链接' },
- component: () => import('../views/links/index.vue'),
- },
- {
- path: '/links/detail',
- meta: { title: '友情链接' },
- component: () => import('../views/links/detail.vue'),
- },
- // 产品类型字典表
- {
- path: '/supermaket/chanpinType',
- component: () => import('../views/supermaket/chanpinType.vue'),
- },
- // 添加产品类型字典表
- {
- path: '/supermaket/chanpinTypeDetail',
- component: () => import('../views/supermaket/chanpinTypeDetail.vue'),
- },
- {
- path: '/dictionary',
- meta: { title: '字典管理' },
- component: () => import('../views/dictionary/index.vue'),
- },
- {
- path: '/present',
- meta: { title: '礼物管理' },
- component: () => import('../views/present/index.vue'),
- },
- //对接会
- //对接会列表
- {
- path: '/duijiehui/index',
- component: () => import('../views/duijiehui/index.vue'),
- },
- //对接会详情
- {
- path: '/duijiehui/detail',
- component: () => import('../views/duijiehui/detail.vue'),
- },
- //对接会审核
- {
- path: '/duijiehui/duijieshenhe',
- component: () => import('../views/duijiehui/duijieshenhe.vue'),
- },
- //对接会管理员审核详情
- {
- path: '/duijiehui/duijiehuiexamine',
- component: () => import('../views/duijiehui/duijiehuiexamine.vue'),
- },
- //对接会是否开始
- {
- path: '/duijiehui/duijiehuistatus',
- component: () => import('../views/duijiehui/duijiehuistatus.vue'),
- },
- //权限管理
- //权限管理-权限列表
- {
- path: '/permission/index',
- component: () => import('../views/permission/index.vue'),
- },
- //权限管理-分配权限
- {
- path: '/permission/detail',
- component: () => import('../views/permission/detail.vue'),
- },
- //模块
- {
- path: '/lanmu/detali',
- component: () => import('../views/lanmu/detali.vue'),
- },
- {
- path: '/menu',
- meta: { title: '菜单管理' },
- component: () => import('../views/menu/index.vue'),
- },
- {
- path: '/adminUser',
- meta: { title: '子管理员管理' },
- component: () => import('../views/admin-user/index.vue'),
- },
- // vip用户
- {
- path: '/vip/index',
- meta: { title: 'vip管理' },
- component: () => import('../views/vip-user/index.vue'),
- },
- // 5-12新增
- // 技术培训
- {
- path: '/technical/index',
- component: () => import('../views/technical/index.vue'),
- },
- // 技术培训-栏目列表
- {
- path: '/technical/columnDetail',
- component: () => import('../views/technical/columnDetail.vue'),
- },
- // 技术培训-信息列表
- {
- path: '/technical/messageInfoDetail',
- component: () => import('../views/technical/messageInfoDetail.vue'),
- },
- ];
- const router = new VueRouter({
- mode: 'history',
- base: process.env.NODE_ENV === 'development' ? '' : process.env.VUE_APP_ROUTER,
- routes,
- });
- checkLogin(router, () => {
- let url = process.env.NODE_ENV === 'development' ? null : `/platlive/login`;
- if (url) window.location.href = url;
- else console.log('开发环境自己弄');
- });
- export default router;
|