import Vue from 'vue'
import Router from 'vue-router'
import index from '@/views/indexHX.vue'
import indexQX from '@/views/indexQX.vue'
import SafetyCross from '@/views/SafetyCross.vue'
import LineStatus from '@/views/LineStatus.vue'
import AlarmSearch from '@/views/AlarmSearch.vue'
import AlarmSearchExport from '@/views/AlarmSearchExport.vue'
import AlarmSet from '@/views/AlarmSet.vue'
import AccidentSearch from '@/views/AccidentSearch.vue'
import AccidentEdit from '@/views/AccidentEdit.vue'
import ChangeSearchExport from '@/views/ChangeSearchExport.vue'
import OrderSearch from '@/views/OrderSearch.vue'
import VisualFile from '@/views/VisualFile.vue'
import ProcessFile from '@/views/ProcessFile.vue'
import LineInfoSet from '@/views/LineInfoSet.vue'
import ClassInfoSet from '@/views/ClassInfoSet.vue'
import LineInfoExport from '@/views/LineInfoExport.vue'
import PeopleStatus from '@/views/PeopleStatus.vue'
import KPI from '@/views/KPI.vue'
import About from '@/views/About.vue'
Vue.use(Router)
export const constantRouterMap = [
  {
    path: '/VisualFile',
    name: 'VisualFile',
    component: VisualFile,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/ProcessFile',
    name: 'ProcessFile',
    component: ProcessFile,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/indexHX',
    name: 'indexHX',
    component: index,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/',
    name: 'indexQX',
    component: indexQX,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/SafetyCross',
    name: 'SafetyCross',
    component: SafetyCross,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/LineStatus',
    name: 'LineStatus',
    component: LineStatus,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/AlarmSearch',
    name: 'AlarmSearch',
    component: AlarmSearch,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/AlarmSearchExport',
    name: 'AlarmSearchExport',
    component: AlarmSearchExport,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/AlarmSet',
    name: 'AlarmSet',
    component: AlarmSet,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/AccidentSearch',
    name: 'AccidentSearch',
    component: AccidentSearch,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/AccidentEdit',
    name: 'AccidentEdit',
    component: AccidentEdit,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/About',
    name: 'About',
    component: About,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/ChangeSearchExport',
    name: 'ChangeSearchExport',
    component: ChangeSearchExport,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/OrderSearch',
    name: 'OrderSearch',
    component: OrderSearch,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/LineInfoSet',
    name: 'LineInfoSet',
    component: LineInfoSet,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/ClassInfoSet',
    name: 'ClassInfoSet',
    component: ClassInfoSet,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/LineInfoExport',
    name: 'LineInfoExport',
    component: LineInfoExport,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/PeopleStatus',
    name: 'PeopleStatus',
    component: PeopleStatus,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/KPI',
    name: 'KPI',
    component: KPI,
    meta: {
      keepAlive: true
    }
  }
]
export default new Router({
  scrollBehavior: () => ({ y: 0 }),
  routes: constantRouterMap
})

