123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239 |
- import {
- UserLayout,
- BasicLayout,
- RouteView,
- PageView
- } from '@/layouts'
- export const asyncRouterMap = [{
- path: '/',
- name: 'index',
- component: BasicLayout,
- meta: {
- title: '首页'
- },
- redirect: '/home',
- children: [{
- path: '/home',
- name: 'home',
- redirect: '/home',
- component: PageView,
- meta: {
- title: '首页',
- icon: 'home'
- },
- hideChildrenInMenu: true,
- children: [{
- path: '/home',
- name: 'home',
- component: () => import(/* webpackChunkName: "home" */ '@/views/Home'),
- meta: {
- title: '首页',
- icon: 'home',
- hidden: true
- }
- },
- {
- path: '/changePwd',
- name: 'changePwd',
- component: () => import(/* webpackChunkName: "home" */ '@/views/user/ChangePwd'),
- meta: {
- title: '修改密码',
- icon: 'home',
- hidden: true
- }
- }
- ]
- },
- {
- path: '/SetmealSales',
- redirect: '/SetmealSales/VerificationRecords',
- name: 'SetmealSales',
- component: PageView,
- meta: {
- title: '套餐销售',
- icon: 'snippets',
- permission: 'M_bundel_saller'
- },
- children: [
- {
- path: '/SetmealSales/BuySetmeal',
- name: 'BuySetmeal',
- component: () => import('@/views/SetmealSales/BuySetmeal.vue'),
- meta: {
- title: '购买套餐',
- icon: 'file-text',
- permission: 'M_buy_bundel'
- }
- },
- {
- path: '/SetmealSales/PurchasedSetmeal',
- name: 'PurchasedSetmeal',
- component: () => import('@/views/SetmealSales/PurchasedSetmeal.vue'),
- meta: {
- title: '已购套餐',
- icon: 'file-text',
- permission: 'M_bundel_buyRecord'
- }
- },
- {
- path: '/SetmealSales/SetmealAttr',
- name: 'SetmealAttr',
- component: () => import('@/views/SetmealSales/SetmealAttr.vue'),
- meta: {
- title: '套餐属性',
- icon: 'file-text'
- // permission: 'M_bundel_buyRecord'
- }
- }
- ]
- },
- // 服务
- {
- path: '/Service',
- redirect: '/Service/PurchasedService',
- component: PageView,
- meta: {
- title: '服务',
- icon: 'profile',
- permission: 'M_Service'
- },
- children: [
- {
- path: '/Service/PurchasedService',
- redirect: '/Service/PurchasedService/list',
- name: 'PurchasedService',
- component: RouteView,
- meta: {
- title: '已购服务',
- icon: 'profile',
- permission: 'M_Service_list'
- },
- hideChildrenInMenu: true,
- children: [
- {
- path: '/Service/PurchasedService/list',
- name: 'PurchasedServiceList',
- component: () => import(/* webpackChunkName: "order" */ '@/views/Service/PurchasedServiceList.vue'),
- meta: {
- title: '服务列表',
- icon: 'shopping',
- hidden: true
- }
- },
- {
- path: '/Service/PurchasedService/detail/:id',
- name: 'PurchasedServiceDetail',
- component: () => import(/* webpackChunkName: "order" */ '@/views/Service/PurchasedServiceDetail.vue'),
- meta: {
- title: '服务详情',
- icon: 'profile',
- hidden: true
- }
- }
- ]
- }
- ]
- },
- {
- path: '/FinancialManagement',
- name: 'FinancialManagement',
- component: PageView,
- meta: { title: '财务管理', icon: 'account-book', permission: 'M_cwgn' },
- children: [
- {
- path: '/SetmealSales/VerificationRecords',
- name: 'VerificationRecords',
- component: () => import('@/views/SetmealSales/VerificationRecords.vue'),
- meta: {
- title: '核销记录',
- icon: 'file-text',
- permission: 'M_hxjl_list'
- }
- },
- {
- path: 'PaySettlementRecords/list',
- name: 'PaySettlementRecords',
- component: () => import(/* webpackChunkName: "writeOff" */ '@/views/FinancialManagement/PaySettlementRecords.vue'),
- meta: { title: '应付结算记录-套餐', icon: 'form', permission: 'M_yfjs_js_list' }
- }
- ]
- },
- {
- path: '/auth',
- redirect: '/auth/userList',
- component: PageView,
- meta: {
- title: '运营平台权限管理',
- icon: 'apartment',
- permission: 'M_power_auth'
- },
- children: [
- {
- path: '/auth/userList',
- name: 'powerUserList',
- component: () => import(/* webpackChunkName: "auth" */ '@/views/power/user/userList.vue'),
- meta: {
- title: '用户管理',
- icon: 'user',
- permission: 'M_power_user_list'
- }
- },
- {
- path: '/auth/roleList',
- name: 'powerRoleList',
- component: () => import(/* webpackChunkName: "auth" */ '@/views/power/role/roleList.vue'),
- meta: {
- title: '角色管理',
- icon: 'solution',
- permission: 'M_power_role_list'
- }
- }
- ]
- }
- ]
- },
- {
- path: '*',
- redirect: '/404',
- hidden: true
- }
- ]
- /**
- * 基础路由
- * @type { *[] }
- */
- export const constantRouterMap = [{
- path: '/user',
- component: UserLayout,
- redirect: '/user/login',
- hidden: true,
- children: [{
- path: 'login',
- name: 'login',
- component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
- },
- {
- path: 'register',
- name: 'register',
- component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
- },
- {
- path: 'register-result',
- name: 'registerResult',
- component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
- },
- {
- path: 'recover',
- name: 'recover',
- component: undefined
- }
- ]
- },
- {
- path: '/404',
- component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
- }
- ]
|