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.
pingAnQiYeWeb/src/router/index.js

138 lines
3.9 KiB

2 years ago
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'),
},
2 years ago
{
path: 'safetyIndex',
name: 'safetyIndex',
component: () => import('@/views/safetyIndex'),
},
2 years ago
{
path: 'companyCanban',
name: 'companyCanban',
component: () => import('@/views/companyCanban'),
},
1 year ago
//企业排名
2 years ago
{
path: 'enterpriseRank',
name: 'enterpriseRank',
component: () => import('@/views/enterpriseRank'),
2 years ago
2 years ago
},
1 year ago
//实时预警
{
path: 'realtimeWarning',
name: 'realtimeWarning',
component: () => import('@/views/realtimeWarning'),
},
1 year ago
//要素资源
{
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'),
},
1 year ago
// 企业赋分详情
{
1 year ago
path: 'companyDetails',
name: 'companyDetails',
component: () => import('@/views/systemManagement/companyScore/components/companyDetails'),
},
1 year ago
// 企业名单
// {
// path: 'companyList',
// name: 'companyList',
// component: () => import('@/views/systemManagement/companyList'),
// },
// 关联设备
{
path: 'correlationEquipment',
name: 'correlationEquipment',
component: () => import('@/views/systemManagement/correlationEquipment'),
},
1 year ago
{
path: 'correlationEquipment2',
name: 'correlationEquipment2',
component: () => import('@/views/systemManagement/correlationEquipment2'),
},
2 years ago
// 企业名单
{
path: 'companyList',
name: 'companyList',
component: () => import('@/views/systemManagement/companyList'),
}
]
1 year ago
},
// 闭环处置
{
path: 'closeLoopDispose',
name: 'closeLoopDispose',
component: () => import('@/views/closeLoopDispose'),
},
1 year ago
// 应用超市
{
path:'applySupermarket',
name:'applySupermarket',
component: () => import('@/views/applySupermarket')
},
2 years ago
]
},
{
path: 'login',
name: 'login',
component: () => import('@/components/login'),
},
]
}]
const router = new VueRouter({
2 years ago
mode: 'hash',
2 years ago
routes
})
export default router