---index.js

import Vue from 'vue'
import Router from 'vue-router'
import App from '@/App'
import HelloWorld from '@/components/HelloWorld'
import login from '@/components/loginSys'
import notFoundWrapper from '@/components/notFoundWrapper'

//用户
import user_assetManagement from '@/components/user/assetManagement'
import user_userManagement from '@/components/user/userManagement'
import user_userRecharge from '@/components/user/userRecharge'
import user_withdrawCash from '@/components/user/withdrawCash'
import user_friendManagement from '@/components/user/friendManagement'    //    新增---好友管理
import user_headImageAuthentication from '@/components/user/headImageAuthentication'    //    头像认证
//会所
import clubHouse_clubManagement from '@/components/clubHouse/clubManagement'
import clubHouse_orderSet from '@/components/clubHouse/orderSet'
import clubHouse_AdminSet from '@/components/clubHouse/clubAdminSet'
import clubHouse_orderManagement from '@/components/clubHouse/orderManagement'
import clubHouse_doorlockManagement from '@/components/clubHouse/doorlockManagement'
import clubHouse_inoroutManagement from '@/components/clubHouse/inoroutManagement'
import clubHouse_heartRateWall from '@/components/clubHouse/heartRateWall'


//功能区管理
import functionalAreas_functionalAreasManagement from '@/components/functionalAreas/functionalAreasManagement'
import functionalAreas_deviceTypeManagement from '@/components/functionalAreas/deviceTypeManagement'

//课程管理
import course_HeartRateCourse from '@/components/course/HeartRateCourse'
//系统
import system_administratorSetting from '@/components/system/administratorSetting'
import system_clientSet from '@/components/system/clientSet'
import system_organizationalStructure from '@/components/system/organizationalStructure'
//设备
import device_devManagement from '@/components/deviceManagement/devManagement'

//实景管理realManagement
import real_lineManagement from '@/components/realManagement/lineManagement'

//活动管理
import activity_operatingActivities from '@/components/ activityManagement/operatingActivities'
import activity_sportsEvents from '@/components/ activityManagement/sportsEvents'

Vue.use(Router)

export default new Router({
    //mode: 'history',
  routes: [
  {
      path: '/App',
      name: 'app',
      component:App
    },
  //欢迎页面
    {
      path: '/HelloWorld',
      name: 'HelloWorld',
      component: HelloWorld
    },
 //
    {
      path: '/',
      name: 'login',
      component: login
    },
    {
      path: '/404',
      name: 'notFoundWrapper',
      component: notFoundWrapper
    },
    {
        path:'*',
//    hidden:true,
      redirect:{path:'/404'}
    },
//  用户管理
    {
      path: '/user/assetManagement',
      name: 'user_assetManagement',
      component: user_assetManagement 
    }, 
    {
      path: '/user/userManagement',
      name: 'user_userManagement',
      component: user_userManagement
    },
    {
      path: '/user/userRecharge',
      name: 'user_userRecharge',
      component: user_userRecharge
    },
    {
      path: '/user/withdrawCash',
      name: 'user_withdrawCash',
      component: user_withdrawCash
    },
    {
      path: '/user/friendManagement',//新增---好友管理
      name: 'user_friendManagement',
      component:user_friendManagement
    },
    {
      path: '/user/headImageAuthentication',//新增---头像认证
      name: 'user_headImageAuthentication',
      component:user_headImageAuthentication
    },
    
// 会所
    {
      path: '/clubHouse/clubManagement',//
      name: 'clubHouse_clubManagement',
      component: clubHouse_clubManagement
    },
     {
      path: '/clubHouse/orderSet',
      name: 'clubHouse_orderSet',
      component: clubHouse_orderSet
    },
    {
        path:'/clubHouse/clubAdminSet',
        name:'clubHouse_AdminSet',
        component:clubHouse_AdminSet
    },
    {
      path: '/deviceManagement/devManagement',   //设备管理 
      name: 'device_devManagement',
      component: device_devManagement
    },
    
    {
      path: '/clubHouse/heartRateWall',   //心率墙管理 
      name: 'clubHouse_heartRateWall',
      component:clubHouse_heartRateWall
    },
    {
      path: '/clubHouse/orderManagement',  
      name: 'clubHouse_orderManagement',
      component:clubHouse_orderManagement
    },
    {
      path: '/clubHouse/doorlockManagement',  
      name: 'clubHouse_doorlockManagement',
      component:clubHouse_doorlockManagement
    },
    {
      path: '/clubHouse/inoroutManagement',  
      name: 'clubHouse_inoroutManagement',
      component:clubHouse_inoroutManagement
    },
    
    //功能区管理
    {
      path: '/functionalAreas/functionalAreasManagement',  
      name: 'functionalAreas_functionalAreasManagement',
      component:functionalAreas_functionalAreasManagement
    },
    {
      path: '/functionalAreas/deviceTypeManagement',  
      name: 'functionalAreas_deviceTypeManagement',
      component:functionalAreas_deviceTypeManagement
    },
 //课程管理course_HeartRateCourse
   {
      path: '/course/HeartRateCourse',  
      name: 'course_HeartRateCourse',
      component:course_HeartRateCourse
    },
// 系统 
    {
      path: '/system/administratorSetting',
      name: 'system_administratorSetting',
      component: system_administratorSetting
    },
   
    {
      path: '/system/clientSet',
      name: 'system_clientSet',
      component: system_clientSet
    },
     {
      path: '/system/organizationalStructure',
      name: 'system_organizationalStructure',
      component: system_organizationalStructure
    },
   
   //实景管理
   {
      path: '/realManagement/lineManagement',
      name: 'real_lineManagement',
      component: real_lineManagement
    },
    //活动管理
    {
      path: '/activityManagement/operatingActivities',
      name: 'activity_operatingActivities',
      component: activity_operatingActivities
    },
    {
      path: '/activityManagement/sportsEvents',
      name: 'activity_sportsEvents',
      component: activity_sportsEvents
    },
  ]
})

Logo

前往低代码交流专区

更多推荐