mallBackend/src/router/index.ts

166 lines
5.5 KiB
TypeScript
Raw Normal View History

2023-12-02 11:33:44 +08:00
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
2023-12-03 14:23:45 +08:00
2023-12-02 11:33:44 +08:00
const routes: Array<RouteRecordRaw> = [
{
path: '/index',
name: 'index',
2023-12-02 14:51:09 +08:00
component: () => import('views/AppMain.vue'),
2023-12-02 11:33:44 +08:00
meta: {
2023-12-02 14:51:09 +08:00
title: '主页面',
2023-12-02 11:33:44 +08:00
keepAlive: true,
2023-12-03 14:23:45 +08:00
AuthFlag: true,
routeListRoot: true
2023-12-02 15:30:19 +08:00
},
2023-12-03 14:23:45 +08:00
children:[
{
path: 'swiperConfig',
name: 'swiperConfig',
2023-12-04 19:10:26 +08:00
component: () => import('views/configuration/swiperConfig/index.vue'),
2023-12-03 14:23:45 +08:00
meta: {
title: '轮播图配置',
keepAlive: true,
AuthFlag: true
}
},
{
path: 'specialInformationConfiguration',
name: 'specialInformationConfiguration',
2023-12-04 19:10:26 +08:00
component: () => import('views/configuration/specialInformationConfiguration/index.vue'),
2023-12-03 14:23:45 +08:00
meta: {
title: '专题资讯配置',
keepAlive: true,
AuthFlag: true
}
},
{
path: 'privacyAgreement',
name: 'privacyAgreement',
2023-12-04 19:10:26 +08:00
component: () => import('views/configuration/privacyAgreement/index.vue'),
2023-12-03 14:23:45 +08:00
meta: {
title: '隐私协议模板管理',
keepAlive: true,
AuthFlag: true
}
},
2023-12-04 19:10:26 +08:00
// {
// path: 'enterpriseManagement',
// name: 'enterpriseManagement',
// component: () => import('views/enterpriseManagement/AppMain.vue'),
// meta: {
// title: '企业管理',
// keepAlive: true,
// AuthFlag: true
// },
// },
2023-12-03 14:23:45 +08:00
{
path: 'enterpriseType',
name: 'configuration',
2023-12-05 14:05:20 +08:00
component: () => import('views/enterpriseManagement/enterpriseType/index.vue'),
2023-12-03 14:23:45 +08:00
meta: {
title: '企业类型',
keepAlive: true,
AuthFlag: true
}
2023-12-02 15:30:19 +08:00
},
2023-12-03 14:23:45 +08:00
{
path: 'enterpriseEntryReview',
name: 'enterpriseEntryReview',
2023-12-05 14:05:20 +08:00
component: () => import('views/enterpriseManagement/enterpriseEntryReview/index.vue'),
2023-12-03 14:23:45 +08:00
meta: {
title: '企业入驻审核',
keepAlive: true,
AuthFlag: true
},
},
{
path: 'businessReview',
name: 'businessReview',
2023-12-05 14:05:20 +08:00
component: () => import('views/enterpriseManagement/businessReview/index.vue'),
2023-12-03 14:23:45 +08:00
meta: {
title: '企业业务开通审核',
keepAlive: true,
AuthFlag: true
}
},
{
path: 'enterpriseInfo',
name: 'enterpriseInfo',
2023-12-05 14:05:20 +08:00
component: () => import('views/enterpriseManagement/enterpriseInfo/index.vue'),
2023-12-03 14:23:45 +08:00
meta: {
title: '企业信息',
keepAlive: true,
AuthFlag: true
}
2023-12-05 14:05:20 +08:00
},
// 企业装备管理
{
path: 'equipmentTypeTemplate',
name: 'equipmentTypeTemplate',
component: () => import('views/enterpriseEquipmentManage/equipmentTypeTemplate/index.vue'),
meta: {
title: '装备类型模板',
keepAlive: true,
AuthFlag: true
},
},
{
path: 'equipmentListingApproval',
name: 'equipmentListingApproval',
component: () => import('views/enterpriseEquipmentManage/equipmentListingApproval/index.vue'),
meta: {
title: '装备上架审批',
keepAlive: true,
AuthFlag: true
}
},
{
path: 'iotEquipmentManagement',
name: 'iotEquipmentManagement',
component: () => import('views/enterpriseEquipmentManage/iotEquipmentManagement/index.vue'),
meta: {
title: 'iot设备管理',
keepAlive: true,
AuthFlag: true
}
2023-12-05 15:13:45 +08:00
},
{
path: 'orderManagement',
name: 'orderManagement',
component: () => import('views/enterpriseEquipmentManage/iotEquipmentManagement/index.vue'),
meta: {
title: 'iot设备管理',
keepAlive: true,
AuthFlag: true
}
},
{
name: "orderManagement",
path: 'orderManagement',
component: () => import('views/orderManagement/index.vue'),
meta: {
title: '订单管理',
keepAlive: true,
AuthFlag: true
},
children: []
2023-12-03 14:23:45 +08:00
}
2023-12-02 15:30:19 +08:00
]
2023-12-03 14:23:45 +08:00
},
2023-12-05 15:13:45 +08:00
2023-12-03 14:23:45 +08:00
2023-12-02 11:33:44 +08:00
]
const router = createRouter({
// 路由模式
history: createWebHashHistory(),
routes
})
export default router