index.js
8.82 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
/* Layout */
import Layout from '@/layout'
/* Router Modules */
// import componentsRouter from './modules/components'
export const constantRoutes = [
{
path: '/404',
component: Layout,
hidden: true,
redirect: '/404/index',
children: [
{
path: '/index',
component: () => import('@/views/error-page/404'),
name: '404',
meta: { title: '404' }
}
]
},
// 业务流程框架
{
path: '/workFrame',
component: () => import('@/views/workflow/workFrame.vue'),
name: 'workFrame',
hidden: true,
meta: { title: '发起申请' }
},
// 业务流程框架
{
path: '/workFramecs',
component: () => import('@/views/workflow/workFrame1.vue'),
name: 'workFramecs',
hidden: true,
meta: { title: '发起申请1' }
},
// 业务流程只读框架
{
path: '/workFrameViewcs',
component: () => import('@/views/workflow/workFrameView1.vue'),
name: 'workFrameViewcs',
hidden: true,
meta: { title: '发起申请2' }
},
// 业务流程只读框架
{
path: '/workFrameView',
component: () => import('@/views/workflow/workFrameView.vue'),
name: 'workFrameView',
hidden: true,
meta: { title: '发起申请' }
},
{
path: '/',
component: Layout,
redirect: '/home',
meta: { title: '首页' },
children: [
{
path: 'home',
component: () => import('@/views/home/index'),
name: 'home',
meta: { title: '工作台', icon: 'workbench', affix: true }
}
]
},
]
/**
* asyncRoutes
* the routes that need to be dynamically loaded based on user roles
*/
export const asyncRoutes = [
{
path: '/ywbl',
id: '2',
parentId: null,
component: Layout,
meta: { title: '业务办理', icon: 'ywbl' },
redirect: '/ywbl/ywsq',
name: 'ywbl',
children: [
{
path: 'ywsq',
id: '21',
parentId: '2',
component: () => import('@/views/ywbl/ywsq/ywsq.vue'),
name: 'ywsq',
meta: { title: '业务申请' }
},
{
path: 'dbx',
id: '22',
parentId: '2',
component: () => import('@/views/ywbl/dbx/dbx.vue'),
name: 'dbx',
meta: { title: '待办箱' }
},
{
path: 'ybx',
id: '23',
parentId: '2',
component: () => import('@/views/ywbl/ybx/ybx.vue'),
name: 'ybx',
meta: { title: '已办箱' }
},
]
},
{
path: '/sqcx',
id: '3',
parentId: null,
component: Layout,
meta: { title: '申请查询', icon: 'sqcx' },
redirect: '/sqcx/jtfc',
alwaysShow: true,
name: 'sqcx',
children: [
{
path: 'jtfc',
id: '31',
parentId: '3',
component: () => import('@/views/sqcx/jtfc/jtfc.vue'),
name: 'jtfc',
meta: { title: '家庭房产' }
},
{
path: 'dydjb',
id: '32',
parentId: '3',
component: () => import('@/views/sqcx/dydjb/dydjb.vue'),
name: 'dydjb',
meta: { title: '打印登记薄' }
},
{
path: 'sqcxjl',
id: '33',
parentId: '3',
component: () => import('@/views/sqcx/sqcxjl/sqcxjl.vue'),
name: 'cxjl',
meta: { title: '申请查询记录' }
}
]
},
{
path: '/zhcx',
id: '4',
parentId: null,
component: Layout,
meta: { title: '综合查询', icon: 'zhcx' },
redirect: '/zhcx/jdcx',
alwaysShow: true,
name: 'zhcx',
children: [
{
path: 'jdcx',
id: '41',
parentId: '4',
component: () => import('@/views/zhcx/jdcx/jdcx.vue'),
name: 'jdcx',
meta: { title: '进度查询' }
},
{
path: 'djbcx',
id: '42',
parentId: '4',
component: () => import('@/views/zhcx/djbcx/djbcx.vue'),
name: 'djbcx',
meta: { title: '登记簿查询' }
},
{
path: 'lpcx',
id: '43',
parentId: '4',
component: () => import('@/views/zhcx/lpcx/lpcx.vue'),
name: 'lpcx',
meta: { title: '楼盘查询' }
},
{
path: 'zslqcx',
id: '45',
parentId: '4',
component: () => import('@/views/zhcx/zslqcx/zslqcx.vue'),
name: 'zslqcx',
meta: { title: '证书领取查询' }
},
// 在建工程抵押查询
{
path: 'zxgcdycx',
id: '46',
parentId: '4',
component: () => import('@/views/zhcx/zxgcdycx/zxgcdycx.vue'),
name: 'zxgcdycx',
meta: { title: '在建工程抵押' }
},
]
},
{
path: '/zsgl',
id: '5',
parentId: null,
component: Layout,
meta: { title: '证书管理', icon: 'zsgl' },
redirect: '/zsgl/zsrk',
alwaysShow: true,
name: 'zsgl',
children: [
{
path: 'zsrk',
id: '51',
parentId: '5',
component: () => import('@/views/zsgl/zsrk/zsrk.vue'),
name: 'zsrk',
meta: { title: '证书入库' }
},
{
path: 'zsff',
id: '52',
parentId: '5',
component: () => import('@/views/zsgl/zsff/zsff.vue'),
name: 'zsff',
meta: { title: '证书分发' }
},
{
path: 'zssyjl',
id: '53',
parentId: '5',
component: () => import('@/views/zsgl/zssyjl/zssyjl.vue'),
name: 'zssyjl',
meta: { title: '证书使用记录' }
},
]
},
{
path: '/system',
id: '9',
parentId: null,
component: Layout,
meta: { title: '系统管理', icon: 'system' },
redirect: '/system/dictionaries',
alwaysShow: true,
name: 'system',
children: [
{
path: 'dictionaries',
id: '91',
parentId: '9',
component: () => import('@/views/system/dictionaries/dictionaries.vue'),
name: 'dictionaries',
meta: { title: '字典管理' }
},
{
path: 'sqywgz',
id: '92',
parentId: '9',
component: () => import('@/views/system/sqywgz/sqywgz.vue'),
name: 'sqywgz',
meta: { title: '申请业务规则' }
},
{
path: 'qtjfjmb',
id: '93',
parentId: '9',
component: () => import('@/views/system/qtjfjmb/qtjfjmb.vue'),
name: 'qtjfjmb',
meta: { title: '其他及附记模板' }
},
{
path: 'dymbgl',
id: '94',
parentId: '9',
component: () => import('@/views/system/dymbgl/dymbgl.vue'),
name: 'dymbgl',
meta: { title: '打印模板管理' }
},
{
path: 'xttz',
id: '95',
parentId: '9',
component: () => import('@/views/system/xttz/xttz.vue'),
name: 'xttz',
meta: { title: '系统通知' }
},
{
path: 'flfg',
id: '96',
parentId: '9',
component: () => import('@/views/system/flfg/flfg.vue'),
name: 'flfg',
meta: { title: '法律法规' }
},
{
path: 'gxhpz',
id: '97',
parentId: '9',
component: () => import('@/views/system/gxhpz/gxhpz.vue'),
name: 'gxhpz',
meta: { title: '个性化配置' }
},
]
},
{
path: '/xtjk',
id: '6',
parentId: null,
component: Layout,
meta: { title: '系统监控', icon: 'system' },
redirect: '/xtjk/cwrz',
alwaysShow: true,
name: 'xtjk',
children: [
{
path: 'cwrz',
id: '61',
parentId: '6',
component: () => import('@/views/xtjk/cwrz/cwrz.vue'),
name: 'cwrz',
meta: { title: '错误日志' }
},
{
path: 'czrz',
id: '62',
parentId: '6',
component: () => import('@/views/xtjk/czrz/czrz.vue'),
name: 'czrz',
meta: { title: '操作日志' }
},
{
path: 'zjjk',
id: '63',
parentId: '6',
component: () => import('@/views/xtjk/zjjk/zjjk.vue'),
name: 'zjjk',
meta: { title: '主机监控' }
},
]
},
{
path: '/jkfw',
id: '7',
parentId: null,
component: Layout,
meta: { title: '接口服务', icon: 'system' },
redirect: '/jkfw/ptjk',
alwaysShow: true,
name: 'jkfw',
children: [
{
path: 'ptjk',
id: '71',
parentId: '7',
component: () => import('@/views/jkfw/ptjk/ptjk.vue'),
name: 'ptjk',
meta: { title: '平台接口' }
},
]
}
]
const createRouter = () =>
new Router({
scrollBehavior: () => ({ y: 0 }),
routes: [...constantRoutes]
})
const router = createRouter()
// Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
export function resetRouter () {
const newRouter = createRouter()
router.matcher = newRouter.matcher // reset router
}
export default router