text: import Login from './views/Login.vue'
  import NotFound from './views/404.vue'
  import Home from './views/Home.vue'
  import Main from './views/Main.vue'
  import userInfo from './views/nav1/userInfo.vue'
  import user from './views/nav1/user.vue'
  import staff from './views/nav1/staff.vue'
  import order from './views/nav2/order.vue'
  import orderDetail from './views/nav2/order_detail.vue'
  import userStatistic from './views/nav3/userStatistic.vue'
  import orderStatistic from './views/nav3/orderStatistic.vue'
  import takeTicket from './views/nav3/takeTicket.vue'
  import rewardStatistic from './views/nav3/rewardStatistic.vue'
  
  class RouterUtil{
      constructor(){
      }
  
      //获取具体路由数据
      findRoutes(adminFlag){
          return [{
              path: '/login',
              component: Login,
              name: '',
              hidden: true
          },
              {
                  path: '/404',
                  component: NotFound,
                  name: '',
                  hidden: true
              },
              {
                  path: '/',
                  component: Home,
                  name: '用户管理',
                  iconCls: 'el-icon-message',//图标样式class
                  children: [
                      { path: '/main', component: Main, name: '主页', hidden: true },
                      { path: '/staff', component: staff, name: '员工管理',hidden:!adminFlag },
                      { path: '/user', component: user, name: '用户管理' },
                      { path: '/userInfo', component: userInfo, name: '用户详情',hidden: true },
  
                  ]
              },
              {
                  path: '/',
                  component: Home,
                  name: '订单管理',
                  iconCls: 'fa fa-id-card-o',
                  children: [
                      { path: '/order', component: order, name: '普通订单' },
                      { path: '/orderDetail', component: orderDetail, name: '订单详情',hidden: true  },
                  ]
              },
              {
                  path: '/',
                  component: Home,
                  name: '数据统计',
                  iconCls: 'fa fa-id-card-o',
                  children: [
                      { path: '/userStatistic', component: userStatistic, name: '用户数据' },
                      { path: '/orderStatistic', component: orderStatistic, name: '出票数据' },
                      { path: '/rewardStatistic', component: rewardStatistic, name: '派奖数据' },
                      { path: '/takeTicket', component: takeTicket, name: '取票数据' }
                  ]
              }];
      }
  }
  
  
  export default new RouterUtil();