|
@@ -1,7 +1,7 @@
|
|
|
import Vue from 'vue'
|
|
import Vue from 'vue'
|
|
|
import Router from 'vue-router'
|
|
import Router from 'vue-router'
|
|
|
Vue.use(Router)
|
|
Vue.use(Router)
|
|
|
-
|
|
|
|
|
|
|
+import { canIShow } from '@/permission'
|
|
|
import Layout from '@/layout'
|
|
import Layout from '@/layout'
|
|
|
export const constantRoutes = [
|
|
export const constantRoutes = [
|
|
|
{
|
|
{
|
|
@@ -14,7 +14,17 @@ export const constantRoutes = [
|
|
|
path: 'dashboard',
|
|
path: 'dashboard',
|
|
|
component: () => import('@/views/dashboard/index'),
|
|
component: () => import('@/views/dashboard/index'),
|
|
|
name: 'Dashboard',
|
|
name: 'Dashboard',
|
|
|
- meta: { title: '首页看板', icon: 'el-icon-house', roles: 'dashboard' }
|
|
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '首页看板',
|
|
|
|
|
+ icon: 'el-icon-house',
|
|
|
|
|
+ roles: 'dashboard',
|
|
|
|
|
+ func: [
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '头部概览',
|
|
|
|
|
+ roles: 'dashboard.head'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: 'audience',
|
|
path: 'audience',
|
|
@@ -26,16 +36,24 @@ export const constantRoutes = [
|
|
|
roles: 'audience',
|
|
roles: 'audience',
|
|
|
func: [
|
|
func: [
|
|
|
{
|
|
{
|
|
|
- name: '添加观众',
|
|
|
|
|
- roles: 'audience.add'
|
|
|
|
|
|
|
+ name: '搜索观众',
|
|
|
|
|
+ roles: 'audience.search'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- name: '导入',
|
|
|
|
|
- roles: 'audience.import'
|
|
|
|
|
|
|
+ name: '按展会筛选',
|
|
|
|
|
+ roles: 'audience.select'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- name: '导出',
|
|
|
|
|
- roles: 'audience.export'
|
|
|
|
|
|
|
+ roles: 'audience.sendInvite',
|
|
|
|
|
+ name: '发送邀请函'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'audience.changePage',
|
|
|
|
|
+ name: '观众换页'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '观众导入',
|
|
|
|
|
+ roles: 'audience.import'
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
}
|
|
}
|
|
@@ -44,7 +62,11 @@ export const constantRoutes = [
|
|
|
path: 'preRegister',
|
|
path: 'preRegister',
|
|
|
component: () => import('@/views/preRegManage/index'),
|
|
component: () => import('@/views/preRegManage/index'),
|
|
|
name: 'preRegManage',
|
|
name: 'preRegManage',
|
|
|
- meta: { title: '预登记表单', icon: 'el-icon-tickets', roles: 'preReg' },
|
|
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '预登记表单',
|
|
|
|
|
+ icon: 'el-icon-tickets',
|
|
|
|
|
+ roles: 'preReg'
|
|
|
|
|
+ },
|
|
|
redirect: '/preRegister/list',
|
|
redirect: '/preRegister/list',
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
@@ -60,6 +82,26 @@ export const constantRoutes = [
|
|
|
{
|
|
{
|
|
|
roles: 'preReg.creat',
|
|
roles: 'preReg.creat',
|
|
|
name: '创建表单'
|
|
name: '创建表单'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'preReg.search',
|
|
|
|
|
+ name: '搜索表单'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'preReg.handelEdit',
|
|
|
|
|
+ name: '表单编辑'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'preReg.handelDisable',
|
|
|
|
|
+ name: '表单禁用'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'preReg.handelDelete',
|
|
|
|
|
+ name: '表单删除'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'preReg.changePage',
|
|
|
|
|
+ name: '表单换页'
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
}
|
|
}
|
|
@@ -68,19 +110,72 @@ export const constantRoutes = [
|
|
|
path: 'edit/:id',
|
|
path: 'edit/:id',
|
|
|
component: () => import('@/views/preRegManage/edit.vue'),
|
|
component: () => import('@/views/preRegManage/edit.vue'),
|
|
|
name: 'preRegManagEdit',
|
|
name: 'preRegManagEdit',
|
|
|
- meta: { title: '表单编辑', icon: 'el-icon-edit', hidden: true, roles: 'preReg.edit', collapse: true }
|
|
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '表单编辑',
|
|
|
|
|
+ icon: 'el-icon-edit',
|
|
|
|
|
+ hidden: true,
|
|
|
|
|
+ roles: 'preReg.edit',
|
|
|
|
|
+ collapse: true,
|
|
|
|
|
+ func: [
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'preReg.save',
|
|
|
|
|
+ name: '表单保存'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'preReg.copy',
|
|
|
|
|
+ name: '表单复制'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'preReg.editEdit',
|
|
|
|
|
+ name: '表单内容编辑'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'preReg.editName',
|
|
|
|
|
+ name: '表单名称编辑'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'preReg.editDesc',
|
|
|
|
|
+ name: '表单描述编辑'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'preReg.saveCompEdit',
|
|
|
|
|
+ name: '保存组件'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: 'add',
|
|
path: 'add',
|
|
|
component: () => import('@/views/preRegManage/edit'),
|
|
component: () => import('@/views/preRegManage/edit'),
|
|
|
name: 'preRegManagAdd',
|
|
name: 'preRegManagAdd',
|
|
|
- meta: { title: '表单新增', icon: 'el-icon-document-add', roles: 'preReg.edit', collapse: true }
|
|
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '表单新增',
|
|
|
|
|
+ icon: 'el-icon-document-add',
|
|
|
|
|
+ roles: 'preReg.addNew',
|
|
|
|
|
+ collapse: true
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: 'comp',
|
|
path: 'comp',
|
|
|
component: () => import('@/views/preRegManage/compEdit.vue'),
|
|
component: () => import('@/views/preRegManage/compEdit.vue'),
|
|
|
name: 'preRegManagcomp',
|
|
name: 'preRegManagcomp',
|
|
|
- meta: { title: '我的组件', icon: 'el-icon-menu', roles: 'preReg.comp' }
|
|
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '我的组件',
|
|
|
|
|
+ icon: 'el-icon-menu',
|
|
|
|
|
+ roles: 'preReg.comp',
|
|
|
|
|
+ func: [
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'preReg.saveComp',
|
|
|
|
|
+ name: '保存组件'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ roles: 'preReg.copyComp',
|
|
|
|
|
+ name: '复制组件'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ roles: 'preReg.addComp',
|
|
|
|
|
+ name: '新增组件'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
@@ -88,39 +183,86 @@ export const constantRoutes = [
|
|
|
path: 'exhibitor',
|
|
path: 'exhibitor',
|
|
|
component: () => import('@/views/exhibitorManage/index'),
|
|
component: () => import('@/views/exhibitorManage/index'),
|
|
|
name: 'ExhibitorManage',
|
|
name: 'ExhibitorManage',
|
|
|
- meta: { title: '展会管理', icon: 'el-icon-office-building', roles: 'exhibitor' },
|
|
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '展会管理',
|
|
|
|
|
+ icon: 'el-icon-office-building',
|
|
|
|
|
+ roles: 'exhibitor'
|
|
|
|
|
+ },
|
|
|
redirect: '/exhibitor/list',
|
|
redirect: '/exhibitor/list',
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
|
component: () => import('@/views/exhibitorManage/exhibitorList'),
|
|
component: () => import('@/views/exhibitorManage/exhibitorList'),
|
|
|
path: 'list',
|
|
path: 'list',
|
|
|
name: 'exhibitorManageList',
|
|
name: 'exhibitorManageList',
|
|
|
- meta: { title: '展会管理', icon: 'el-icon-edit', roles: 'exhibitor', func: [
|
|
|
|
|
- {
|
|
|
|
|
- roles: 'exhibitor.add',
|
|
|
|
|
- name: '添加展会'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- roles: 'exhibitor.import',
|
|
|
|
|
- name: '导入'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- roles: 'exhibitor.export',
|
|
|
|
|
- name: '导出'
|
|
|
|
|
- }
|
|
|
|
|
- ] }
|
|
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '展会管理',
|
|
|
|
|
+ icon: 'el-icon-edit',
|
|
|
|
|
+ roles: 'exhibitor.list',
|
|
|
|
|
+ func: [
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'exhibitor.addList',
|
|
|
|
|
+ name: '添加展会'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'exhibitor.search',
|
|
|
|
|
+ name: '搜索展会'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'exhibitor.handelView',
|
|
|
|
|
+ name: '预览展会'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'exhibitor.copyLink',
|
|
|
|
|
+ name: '复制表单连接'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'exhibitor.handelEdit',
|
|
|
|
|
+ name: '编辑展会'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'exhibitor.handelDisable',
|
|
|
|
|
+ name: '禁用展会'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'exhibitor.handelDelete',
|
|
|
|
|
+ name: '删除展会'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'exhibitor.handel',
|
|
|
|
|
+ name: '展会翻页'
|
|
|
|
|
+ }
|
|
|
|
|
+ ] }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
component: () => import('@/views/exhibitorManage/exhibitorSetting'),
|
|
component: () => import('@/views/exhibitorManage/exhibitorSetting'),
|
|
|
name: 'exhibitorEdit',
|
|
name: 'exhibitorEdit',
|
|
|
path: 'edit/:id',
|
|
path: 'edit/:id',
|
|
|
- meta: { title: '配置展会', icon: 'el-icon-setting', roles: 'exhibitor.setting', hidden: true }
|
|
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '配置展会',
|
|
|
|
|
+ icon: 'el-icon-setting',
|
|
|
|
|
+ roles: 'exhibitor.setting',
|
|
|
|
|
+ hidden: true,
|
|
|
|
|
+ func: [
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'exhibitor.save',
|
|
|
|
|
+ name: '保存展会'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'exhibitor.copyright',
|
|
|
|
|
+ name: '是否显示底部信息开关'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
component: () => import('@/views/exhibitorManage/exhibitorSetting'),
|
|
component: () => import('@/views/exhibitorManage/exhibitorSetting'),
|
|
|
name: 'exhibitorAdd',
|
|
name: 'exhibitorAdd',
|
|
|
path: 'add',
|
|
path: 'add',
|
|
|
- meta: { title: '添加展会', icon: 'el-icon-document-add', roles: 'exhibitor.add' }
|
|
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '添加展会',
|
|
|
|
|
+ icon: 'el-icon-document-add',
|
|
|
|
|
+ roles: 'exhibitor.add'
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
@@ -128,25 +270,81 @@ export const constantRoutes = [
|
|
|
path: 'invitation',
|
|
path: 'invitation',
|
|
|
component: () => import('@/views/invitationManage/index'),
|
|
component: () => import('@/views/invitationManage/index'),
|
|
|
name: 'invitationManage',
|
|
name: 'invitationManage',
|
|
|
- meta: { title: '邀请函模板管理', icon: 'el-icon-files', roles: 'invitation' },
|
|
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '邀请函模板管理',
|
|
|
|
|
+ icon: 'el-icon-files',
|
|
|
|
|
+ roles: 'invitation'
|
|
|
|
|
+ },
|
|
|
redirect: '/invitation/list',
|
|
redirect: '/invitation/list',
|
|
|
children: [{
|
|
children: [{
|
|
|
path: 'list',
|
|
path: 'list',
|
|
|
component: () => import('@/views/invitationManage/list'),
|
|
component: () => import('@/views/invitationManage/list'),
|
|
|
name: 'invitationManageList',
|
|
name: 'invitationManageList',
|
|
|
- meta: { title: '邀请函模板管理', icon: 'el-icon-edit', roles: 'invitation',collapse: false }
|
|
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '邀请函模板管理',
|
|
|
|
|
+ icon: 'el-icon-edit',
|
|
|
|
|
+ roles: 'invitation.index',
|
|
|
|
|
+ collapse: false,
|
|
|
|
|
+ func: [
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'invitation.addList',
|
|
|
|
|
+ name: '添加邀请函模板'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'invitation.goto',
|
|
|
|
|
+ name: '点击进入模板'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'invitation.changePage',
|
|
|
|
|
+ name: '邀请函模板翻页'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: 'add',
|
|
path: 'add',
|
|
|
component: () => import('@/views/invitationManage/edit'),
|
|
component: () => import('@/views/invitationManage/edit'),
|
|
|
name: 'invitationAdd',
|
|
name: 'invitationAdd',
|
|
|
- meta: { title: '邀请函模板新增', icon: 'el-icon-document-add', roles: 'invitation.add',collapse: true }
|
|
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '邀请函模板新增',
|
|
|
|
|
+ icon: 'el-icon-document-add',
|
|
|
|
|
+ roles: 'invitation.add',
|
|
|
|
|
+ collapse: true
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: 'edit/:id',
|
|
path: 'edit/:id',
|
|
|
component: () => import('@/views/invitationManage/edit'),
|
|
component: () => import('@/views/invitationManage/edit'),
|
|
|
name: 'invitationEdit',
|
|
name: 'invitationEdit',
|
|
|
- meta: { title: '邀请函模板编辑', icon: 'el-icon-edit', hidden: true, roles: 'invitation.edit',collapse: true }
|
|
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '邀请函模板编辑',
|
|
|
|
|
+ icon: 'el-icon-edit',
|
|
|
|
|
+ hidden: true,
|
|
|
|
|
+ roles: 'invitation.edit',
|
|
|
|
|
+ collapse: true,
|
|
|
|
|
+ func: [
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'invitation.save',
|
|
|
|
|
+ name: '修改邀请函模板'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'invitation.desc',
|
|
|
|
|
+ name: '修改邀请函描述'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'invitation.rename',
|
|
|
|
|
+ name: '重命名邀请函模板'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'invitation.select',
|
|
|
|
|
+ name: '选择展会'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ roles: 'invitation.editor',
|
|
|
|
|
+ name: '允许操作编辑器'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
@@ -154,7 +352,11 @@ export const constantRoutes = [
|
|
|
path: 'setting',
|
|
path: 'setting',
|
|
|
component: () => import('@/views/setting/index'),
|
|
component: () => import('@/views/setting/index'),
|
|
|
name: 'setting',
|
|
name: 'setting',
|
|
|
- meta: { title: '信息与配置', icon: 'el-icon-setting', roles: 'setting' },
|
|
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '信息与配置',
|
|
|
|
|
+ icon: 'el-icon-setting',
|
|
|
|
|
+ roles: 'setting'
|
|
|
|
|
+ },
|
|
|
redirect: '/setting/exhibitor',
|
|
redirect: '/setting/exhibitor',
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
@@ -169,6 +371,18 @@ export const constantRoutes = [
|
|
|
{
|
|
{
|
|
|
name: '添加账号',
|
|
name: '添加账号',
|
|
|
roles: 'setting.account.add'
|
|
roles: 'setting.account.add'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '操作账号',
|
|
|
|
|
+ roles: 'setting.account.handel'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '搜索账号',
|
|
|
|
|
+ roles: 'setting.account.search'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '账号翻页',
|
|
|
|
|
+ roles: 'setting.account.changePage'
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
}
|
|
}
|
|
@@ -185,6 +399,25 @@ export const constantRoutes = [
|
|
|
{
|
|
{
|
|
|
name: '添加角色',
|
|
name: '添加角色',
|
|
|
roles: 'setting.roles.add'
|
|
roles: 'setting.roles.add'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ name: '操作角色',
|
|
|
|
|
+ roles: 'setting.roles.handel'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '搜索角色',
|
|
|
|
|
+ roles: 'setting.roles.search'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '角色翻页',
|
|
|
|
|
+ roles: 'setting.roles.changePage'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '角色权限配置',
|
|
|
|
|
+ roles: 'setting.roles.permission'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '角色权限保存',
|
|
|
|
|
+ roles: 'setting.roles.save'
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
}
|
|
}
|
|
@@ -193,7 +426,36 @@ export const constantRoutes = [
|
|
|
path: 'system',
|
|
path: 'system',
|
|
|
component: () => import('@/views/setting/systemSetting'),
|
|
component: () => import('@/views/setting/systemSetting'),
|
|
|
name: 'systemSetting',
|
|
name: 'systemSetting',
|
|
|
- meta: { title: '系统信息配置', icon: 'el-icon-setting', roles: 'setting.system' }
|
|
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '系统信息配置',
|
|
|
|
|
+ icon: 'el-icon-setting',
|
|
|
|
|
+ roles: 'setting.system',
|
|
|
|
|
+ func: [
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '修改发件邮箱地址',
|
|
|
|
|
+ roles: 'setting.system.sentEmailAddress'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '修改发件邮箱密码/授权码',
|
|
|
|
|
+ roles: 'setting.system.sentEmailPassword'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '修改发件邮箱服务器地址',
|
|
|
|
|
+ roles: 'setting.system.sentEmailServer'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '修改发件邮箱SMTP端口号',
|
|
|
|
|
+ roles: 'setting.system.sentEmailPort'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '修改发件邮箱SSL加密',
|
|
|
|
|
+ roles: 'setting.system.sentEmailSSL'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ name: '保存设置',
|
|
|
|
|
+ roles: 'setting.system.save'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
@@ -201,27 +463,61 @@ export const constantRoutes = [
|
|
|
path: '404',
|
|
path: '404',
|
|
|
component: () => import('@/views/errorPage/404'),
|
|
component: () => import('@/views/errorPage/404'),
|
|
|
name: '404',
|
|
name: '404',
|
|
|
- meta: { title: '页面不存在哦', icon: 'el-icon-delete-location', hidden: true }
|
|
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '页面不存在哦',
|
|
|
|
|
+ icon: 'el-icon-delete-location',
|
|
|
|
|
+ hidden: true,
|
|
|
|
|
+ roles: '404'
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '401',
|
|
|
|
|
+ component: () => import('@/views/errorPage/401'),
|
|
|
|
|
+ name: '401',
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '页面无权限哦',
|
|
|
|
|
+ icon: 'el-icon-delete-location',
|
|
|
|
|
+ hidden: true,
|
|
|
|
|
+ roles: '401'
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- path: '/login-new',
|
|
|
|
|
|
|
+ path: '/login',
|
|
|
name: 'login',
|
|
name: 'login',
|
|
|
component: () => import('@/views/login/index'),
|
|
component: () => import('@/views/login/index'),
|
|
|
- hidden: true
|
|
|
|
|
|
|
+ hidden: true,
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '登录',
|
|
|
|
|
+ icon: 'el-icon-user',
|
|
|
|
|
+ hidden: true,
|
|
|
|
|
+ roles: 'login'
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/user/form/:url',
|
|
path: '/user/form/:url',
|
|
|
name: 'userForm',
|
|
name: 'userForm',
|
|
|
component: () => import('@/views/user/form.vue'),
|
|
component: () => import('@/views/user/form.vue'),
|
|
|
- hidden: true
|
|
|
|
|
|
|
+ hidden: true,
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '用户表单',
|
|
|
|
|
+ icon: 'el-icon-user',
|
|
|
|
|
+ hidden: true,
|
|
|
|
|
+ roles: 'user.form'
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/user/register',
|
|
path: '/user/register',
|
|
|
name: 'userRegister',
|
|
name: 'userRegister',
|
|
|
component: () => import('@/views/user/register.vue'),
|
|
component: () => import('@/views/user/register.vue'),
|
|
|
- hidden: true
|
|
|
|
|
|
|
+ hidden: true,
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '用户注册',
|
|
|
|
|
+ icon: 'el-icon-user',
|
|
|
|
|
+ hidden: true,
|
|
|
|
|
+ roles: 'user.register'
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
{ path: '*', redirect: '/404', hidden: true }
|
|
{ path: '*', redirect: '/404', hidden: true }
|
|
|
]
|
|
]
|
|
@@ -231,4 +527,15 @@ const createRouter = () => new Router({
|
|
|
routes: constantRoutes
|
|
routes: constantRoutes
|
|
|
})
|
|
})
|
|
|
const router = createRouter()
|
|
const router = createRouter()
|
|
|
|
|
+router.beforeEach((to, from, next) => {
|
|
|
|
|
+ canIShow(to.meta.roles).then((res) => {
|
|
|
|
|
+ if (res) {
|
|
|
|
|
+ next()
|
|
|
|
|
+ } else {
|
|
|
|
|
+ next({
|
|
|
|
|
+ name: '401'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+})
|
|
|
export default router
|
|
export default router
|