index.ts
5.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
import {createRouter, createWebHistory} from "vue-router";
let routes = [
{
path: '/',
name: 'index',
//使用import可以路由懒加载,如果不使用,太多组件一起加载会造成白屏
component: () => import('../layout/layout.vue'),
children: [
{
//配置404页面
path: '/:catchAll(.*)',
name: '404',
// @ts-ignore
component: () => import('../view/404.vue'),
meta: {title: '404', icon: ''}
}, {
path: '/monitorNewIndex',
name: 'monitorNewIndex',
component: () => import('../view/creditService/monitorNewIndex.vue'),
meta: {title: '监控预警', noCache: true, affix: true}
}, {
path: '/monitorList',
name: 'monitorLists',
component: () => import('../view/creditService/monitorList.vue'),
meta: {title: '监控列表', noCache: true, affix: true}
}, {
path: '/monitorModel',
name: 'monitorModel',
component: () => import('../view/creditService/monitorModel.vue'),
meta: {title: '监控模板', noCache: true, affix: true}
}, {
path: '/monitorReport',
name: 'monitorReport',
component: () => import('../view/creditService/monitorReport.vue'),
meta: {title: '监控报告', noCache: true, affix: true}
}, {
path: '/monitorReportDetailDay',
name: 'monitorReportDetailDay',
component: () => import('../view/creditService/monitorReportDetailDay.vue'),
meta: {title: '监控日报告详情', noCache: true, affix: true}
}, {
path: '/monitorReportDetailWeek',
name: 'monitorReportDetailWeek',
component: () => import('../view/creditService/monitorReportDetailWeek.vue'),
meta: {title: '监控周报告详情', noCache: true, affix: true}
}, {
path: '/monitorReportDetailMonth',
name: 'monitorReportDetailMonth',
component: () => import('../view/creditService/monitorReportDetailMonth.vue'),
meta: {title: '监控月报告详情', noCache: true, affix: true}
}, {
path: '/monitorModelAdd',
name: 'monitorModelAdd',
component: () => import('../view/creditService/personCenter.vue'),
meta: {title: '监控模板新增', noCache: true, affix: true}
},
{
path: '/',
name: 'index',
component: () => import('../view/index.vue'),
meta: {title: '首页', noCache: true, affix: true}
},{
path: '/report',
name: 'report',
component: () => import('../view/report/index.vue'),
meta: {title: '信用报告', noCache: true, affix: true}
}, {
path: '/monitorIndex',
name: 'monitorIndex',
component: () => import('../view/creditService/monitorIndex.vue'),
meta: {title: '信用服务', noCache: true, affix: true}
},{
path: '/analysis',
name: 'analysis',
component: () => import('../view/analysis/index.vue'),
meta: {title: '统计分析', noCache: true, affix: true}
},{
path: '/database',
name: 'database',
component: () => import('../view/database/index.vue'),
meta: {title: '企业数据库', noCache: true, affix: true}
},{
path: '/databaseDetail',
name: 'databaseDetail',
component: () => import('../view/database/detail.vue'),
meta: {title: '企业详情', noCache: true, affix: true}
}, {
path: '/enterpriseRelations',
name: 'enterpriseRelations',
component: () => import('../view/creditService/enterpriseRelations.vue'),
meta: {title: '企业关联关系', noCache: true, affix: true}
}, {
path: '/personCenter',
name: 'personCenter',
component: () => import('../view/personCenter/personCenter.vue'),
meta: {title: '个人中心', noCache: true, affix: true},
children: [
{
path: 'monitorEnterprise',
name: 'monitorEnterprise',
component: () => import('../view/personCenter/monitorEnterprise.vue'),
meta: {title: '监控企业列表', noCache: true, affix: true},
children: [
{
path: '',
name: 'monitorList',
component: () => import('../view/personCenter/monitorList.vue'),
meta: {title: '当前账号监控企业列表', noCache: true, affix: true}
}, {
path: 'monitorListAll',
name: 'monitorListAll',
component: () => import('../view/personCenter/monitorListAll.vue'),
meta: {title: '全部监控企业列表', noCache: true, affix: true}
},
]
}, {
path: '',
name: 'monitorSetting',
component: () => import('../view/personCenter/monitorSetting.vue'),
meta: {title: '风险动态监控设置', noCache: true, affix: true}
}, {
path: 'monitorManager',
name: 'monitorManager',
component: () => import('../view/personCenter/monitorManager.vue'),
meta: {title: '风险动态监控维度', noCache: true, affix: true}
},
]
}
]
}, {
path: '/login',
name: 'login',
component: () => import('../view/login.vue'),
meta: {title: '登录', noCache: true, affix: true}
}, {
path: '/enterprise',
name: 'enterprise',
component: () => import('../view/creditService/enterpriseRelations.vue'),
meta: {title: '关联关系查询', noCache: true, affix: true}
},
]
// 路由
const router = createRouter({
history: createWebHistory(),
routes
})
// 导出
export default router