You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
138 lines
3.9 KiB
138 lines
3.9 KiB
import Vue from 'vue'
|
|
import VueRouter from 'vue-router'
|
|
import box from '../components/box'
|
|
// import Home from '../views/Home.vue'
|
|
Vue.use(VueRouter)
|
|
const routes = [
|
|
{
|
|
path: '/',
|
|
name: 'box',
|
|
component: box,
|
|
redirect: '/login',
|
|
children: [
|
|
{
|
|
path: 'home',
|
|
name: 'home',
|
|
component: () => import('@/views/head'),
|
|
children: [
|
|
{
|
|
path: 'enterpriseArchives',
|
|
name: 'enterpriseArchives',
|
|
component: () => import('@/views/enterpriseArchives'),
|
|
|
|
},
|
|
{
|
|
path: 'archives',
|
|
name: 'archives',
|
|
component: () => import('@/views/archives'),
|
|
},
|
|
{
|
|
path: 'safetyIndex',
|
|
name: 'safetyIndex',
|
|
component: () => import('@/views/safetyIndex'),
|
|
},
|
|
{
|
|
path: 'companyCanban',
|
|
name: 'companyCanban',
|
|
component: () => import('@/views/companyCanban'),
|
|
},
|
|
//企业排名
|
|
{
|
|
path: 'enterpriseRank',
|
|
name: 'enterpriseRank',
|
|
component: () => import('@/views/enterpriseRank'),
|
|
|
|
},
|
|
//实时预警
|
|
{
|
|
path: 'realtimeWarning',
|
|
name: 'realtimeWarning',
|
|
component: () => import('@/views/realtimeWarning'),
|
|
|
|
},
|
|
//要素资源
|
|
{
|
|
path: 'factorResources',
|
|
name: 'factorResources',
|
|
component: () => import('@/views/factorResources'),
|
|
|
|
},
|
|
|
|
// 系统管理
|
|
{
|
|
path: 'systemManagement',
|
|
name: 'systemManagement',
|
|
component: () => import('@/views/systemManagement'),
|
|
children: [
|
|
// 平安指数
|
|
{
|
|
path: 'safeIndex',
|
|
name: 'safeIndex',
|
|
component: () => import('@/views/systemManagement/safeIndex'),
|
|
},
|
|
// 企业赋分
|
|
{
|
|
path: 'companyScore',
|
|
name: 'companyScore',
|
|
component: () => import('@/views/systemManagement/companyScore'),
|
|
},
|
|
// 企业赋分详情
|
|
{
|
|
path: 'companyDetails',
|
|
name: 'companyDetails',
|
|
component: () => import('@/views/systemManagement/companyScore/components/companyDetails'),
|
|
},
|
|
// 企业名单
|
|
// {
|
|
// path: 'companyList',
|
|
// name: 'companyList',
|
|
// component: () => import('@/views/systemManagement/companyList'),
|
|
// },
|
|
// 关联设备
|
|
{
|
|
path: 'correlationEquipment',
|
|
name: 'correlationEquipment',
|
|
component: () => import('@/views/systemManagement/correlationEquipment'),
|
|
},
|
|
{
|
|
path: 'correlationEquipment2',
|
|
name: 'correlationEquipment2',
|
|
component: () => import('@/views/systemManagement/correlationEquipment2'),
|
|
},
|
|
// 企业名单
|
|
{
|
|
path: 'companyList',
|
|
name: 'companyList',
|
|
component: () => import('@/views/systemManagement/companyList'),
|
|
}
|
|
]
|
|
},
|
|
// 闭环处置
|
|
{
|
|
path: 'closeLoopDispose',
|
|
name: 'closeLoopDispose',
|
|
component: () => import('@/views/closeLoopDispose'),
|
|
},
|
|
// 应用超市
|
|
{
|
|
path:'applySupermarket',
|
|
name:'applySupermarket',
|
|
component: () => import('@/views/applySupermarket')
|
|
},
|
|
]
|
|
},
|
|
{
|
|
path: 'login',
|
|
name: 'login',
|
|
component: () => import('@/components/login'),
|
|
},
|
|
]
|
|
}]
|
|
|
|
const router = new VueRouter({
|
|
mode: 'hash',
|
|
routes
|
|
})
|
|
|
|
export default router
|