index.js 7.31 KB
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'specialShop',
    component: () => import('../views/specialShop/index.vue'),
    meta: {
      title: '特约店列表',
      keepAlive: true
    }
  },
  {
    path: '/todo',
    name: 'toDo',
    component: () => import('../views/toDo/index.vue'),
    meta: {
      title: '待办列表',
      keepAlive: true
    }
  },
  {
    path: '/otherTodo',
    name: 'otherTodo',
    component: () => import('../views/toDo/otherToDo/index.vue'),
    meta: {
      title: '待办列表',
      keepAlive: true
    }
  },
  {
    path: '/vehicleManage',
    name: 'vehicleManage',
    component: () => import('../views/vehicleManage/index.vue'),
    meta: {
      title: '试驾车辆列表',
      keepAlive: true
    }
  },
  {
    path: '/vehicleManage/vehicleList',
    name: 'vehicleManage',
    component: () => import('../views/vehicleManage/vehicleList.vue'),
    meta: {
      title: '列表',
      keepAlive: true
    }
  },
  {
    path: '/vehicleSubmit',
    name: 'vehicleSubmit',
    component: () => import('../views/vehicleSubmit/index.vue'),
    meta: {
      title: '上牌资料提交',
      keepAlive: true
    }
  },
  {
    path: '/vehicleSubmit/addVehicle',
    name: 'addVehicle',
    component: () => import('../views/vehicleSubmit/addVehicle/index.vue'),
    meta: {
      title: '上牌资料详情',
      pushState: true,
      keepAlive: true
    }
  },
  {
    path: '/vehicleCheck',
    name: 'vehicleCheck',
    component: () => import('../views/vehicleSubmit/vehicleCheck/index.vue'),
    meta: {
      title: '上牌资料审核',
      keepAlive: true
    }
  },
  {
    path: '/reportManage',
    name: 'reportManage',
    component: () => import('../views/reportManage/index.vue'),
    meta: {
      title: '有效试驾',
      keepAlive: true
    }
  },
  {
    path: '/reportManage/outStore',
    name: 'outStore',
    component: () => import('../views/reportManage/outStore.vue'),
    meta: {
      title: '无在店统计',
      keepAlive: true
    }
  },
  {
    path: '/reportManage/mileage',
    name: 'mileage',
    component: () => import('../views/reportManage/mileage.vue'),
    meta: {
      title: '里程统计',
      keepAlive: true
    }
  },
  {
    path: '/reportManage/mileageDetail',
    name: 'mileageDetail',
    component: () => import('../views/reportManage/mileageDetail.vue'),
    meta: {
      title: '里程详情',
      pushState: true,
      keepAlive: true
    }
  },
  {
    path: '/reportManage/oil',
    name: 'oil',
    component: () => import('../views/reportManage/oil.vue'),
    meta: {
      title: '油耗统计',
      keepAlive: true
    }
  },
  {
    path: '/reportManage/driverDetail',
    name: 'driverDetail',
    component: () => import('../views/reportManage/driverDetail.vue'),
    meta: {
      title: '试驾详情',
      keepAlive: true
    }
  },
  {
    path: '/reportManage/summary',
    name: 'summary',
    component: () => import('../views/reportManage/summary.vue'),
    meta: {
      title: '汇总统计',
      keepAlive: true
    }
  },
  {
    path: '/reportManage/actived',
    name: 'deviceActived',
    component: () => import('../views/reportManage/actived.vue'),
    meta: {
      title: '设备激活',
      keepAlive: true
    }
  },
  {
    path: '/reportManage/lastLocation',
    name: 'lastLocation',
    component: () => import('../views/reportManage/lastLocation.vue'),
    meta: {
      title: '最后定位报表',
      keepAlive: true
    }
  },
  {
    path: '/reportManage/mileageGeneral',
    name: 'mileageGeneral',
    component: () => import('../views/reportManage/mileageGeneral.vue'),
    meta: {
      title: '里程统计(通用)',
      keepAlive: true
    }
  },
  {
    path: '/reportManage/mileageGeneralDetail',
    name: 'mileageGeneralDetail',
    component: () => import('../views/reportManage/mileageGeneralDetail.vue'),
    meta: {
      title: '里程详情(通用)',
      pushState: true,
      keepAlive: true
    }
  },
  {
    path: '/reportManage/offline',
    name: 'pseudoOfflineReport',
    component: () => import('../views/reportManage/offline.vue'),
    meta: {
      title: '假性离线报表',
      keepAlive: true
    }
  },
  {
    path: '/reportManage/electricity',
    name: 'pseudoOfflineReport',
    component: () => import('../views/reportManage/electricity.vue'),
    meta: {
      title: '电量统计',
      keepAlive: true
    }
  },
  {
    path: '/specialShop',
    name: 'specialShop',
    component: () => import('../views/specialShop/index.vue'),
    meta: {
      title: '特约店列表',
      keepAlive: true
    }
  },
  {
    path: '/specialShop/addShop',
    name: 'addShop',
    component: () => import('../views/specialShop/addShop/index.vue'),
    meta: {
      title: '新增特约店',
      pushState: true,
      keepAlive: false
    }
  },
  {
    path: '/testDrive/checkList',
    name: 'testDriveCheckList',
    component: () => import('../views/testDrive/checkList.vue'),
    meta: {
      title: '试驶线路审核',
      keepAlive: true
    }
  },
  {
    path: '/alarmCenter/removeAlarm',
    name: 'removeAlarm',
    component: () => import('../views/alarmCenter/removeAlarm.vue'),
    meta: {
      title: '拆除预警',
      keepAlive: true
    }
  },
  {
    path: '/alarmCenter/hadoop',
    name: 'hadoopAlarm',
    component: () => import('../views/alarmCenter/hadoop.vue'),
    meta: {
      title: '大数据研判警情',
      keepAlive: true
    }
  },
  {
    path: '/alarmCenter/tamper',
    name: 'tamperAlarm',
    component: () => import('../views/alarmCenter/tamper.vue'),
    meta: {
      title: '防拆报警(通用)',
      keepAlive: true
    }
  },
  {
    path: '/alarmCenter/offline',
    name: 'offlineAlarm',
    component: () => import('../views/alarmCenter/offline.vue'),
    meta: {
      title: '离线报警',
      keepAlive: true
    }
  },
  {
    path: '/alarmCenter/alarm',
    name: 'synthesisAlarm',
    component: () => import('../views/alarmCenter/alarm.vue'),
    meta: {
      title: '警情研判',
      keepAlive: true
    }
  },
  {
    path: '/alarmCenter/alarm/detail',
    name: 'synthesisAlarmDetail',
    component: () => import('../views/alarmCenter/alarmDetail.vue'),
    meta: {
      title: '详情',
      keepAlive: true
    }
  },
  {
    path: '/alarmCenter/fence',
    name: 'fenceAlarm',
    component: () => import('../views/alarmCenter/fence.vue'),
    meta: {
      title: '围栏报警',
      keepAlive: true
    }
  },
  {
    path: '/alarmCenter/shutdown',
    name: 'shutdownAlarm',
    component: () => import('../views/alarmCenter/shutdown.vue'),
    meta: {
      title: '停驶报警',
      keepAlive: true
    }
  },
  {
    path: '/fence/index',
    name: 'fenceIndex',
    component: () => import('../views/fence/index.vue'),
    meta: {
      title: '围栏列表',
      keepAlive: true
    }
  },
  {
    path: '/alarmCenter/speed',
    name: 'speedAlarm',
    component: () => import('../views/alarmCenter/speed.vue'),
    meta: {
      title: '超速报警',
      keepAlive: true
    }
  },
  {
    path: '/reportManage/statistics',
    name: 'statisticsAlarm',
    component: () => import('../views/reportManage/statistics.vue'),
    meta: {
      title: '运营统计报表',
      keepAlive: true
    }
  }
]

export default routes