Blame view

src/router/index.js 11.1 KB
1 2 3
/*
 * @Description: 全局路由
 * @Autor: renchao
renchao@pashanhoo.com committed
4
 * @LastEditTime: 2023-08-25 09:09:25
5
 */
赵千 committed
6 7 8 9 10 11 12 13 14 15
import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
import Layout from '@/layout'
/* Router Modules */
// import componentsRouter from './modules/components'

export const constantRoutes = [
  {
任超 committed
16
    path: '/404',
任超 committed
17 18
    component: Layout,
    hidden: true,
任超 committed
19
    redirect: '/404/index',
任超 committed
20 21
    children: [
      {
任超 committed
22
        path: '/index',
任超 committed
23 24 25 26 27
        component: () => import('@/views/error-page/404'),
        name: '404',
        meta: { title: '404' }
      }
    ]
任超 committed
28
  },
29
  // 业务流程框架
任超 committed
30
  {
任超 committed
31 32 33
    path: '/workFrame',
    component: () => import('@/views/workflow/workFrame.vue'),
    name: 'workFrame',
任超 committed
34
    hidden: true,
任超 committed
35
    meta: { title: '发起申请' }
任超 committed
36
  },
renchao@pashanhoo.com committed
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
  // 登记簿补录
  {
    path: '/djbworkFrame',
    component: () => import('@/views/djbworkflow/workFrame.vue'),
    name: 'djbworkFrame',
    hidden: true,
    meta: { title: '登记簿补录' }
  },
  // 登记簿补录只读框架
  {
    path: '/djbworkFrameView',
    component: () => import('@/views/djbworkflow/workFrameView.vue'),
    name: 'djbworkFrameView',
    hidden: true,
    meta: { title: '登记簿补录' }
  },
xiaomiao committed
53 54 55 56 57 58 59 60
  //登记簿详情
  {
    path: '/djbFrameall',
    component: () => import('@/views/registerBook/djbFrameall.vue'),
    name: 'djbFrameall',
    hidden: true,
    meta: { title: '登记簿详情' }
  },
61 62
  // 业务流程只读框架
  {
任超 committed
63 64 65
    path: '/workFrameView',
    component: () => import('@/views/workflow/workFrameView.vue'),
    name: 'workFrameView',
任超 committed
66
    hidden: true,
67
    meta: { title: '发起申请' }
任超 committed
68
  },
任超 committed
69
  {
赵千 committed
70 71 72
    path: '/',
    component: Layout,
    redirect: '/home',
任超 committed
73
    meta: { title: '首页' },
赵千 committed
74 75 76 77
    children: [
      {
        path: 'home',
        component: () => import('@/views/home/index'),
任超 committed
78
        name: 'home',
任超 committed
79
        meta: { title: '工作台', icon: 'workbench', affix: true }
赵千 committed
80 81 82
      }
    ]
  },
yangwei committed
83 84 85 86 87 88 89 90
  // 登录页
  {
    path: '/login',
    component: () => import('@/views/login/index'),
    name: 'login',
    hidden: true,
    meta: { title: '登录' }
  },
任超 committed
91 92 93 94 95 96
]
/**
 * asyncRoutes
 * the routes that need to be dynamically loaded based on user roles
 */
export const asyncRoutes = [
赵千 committed
97
  {
98
    path: '/ywbl',
99
    id: '2',
赵千 committed
100 101
    parentId: null,
    component: Layout,
任超 committed
102
    meta: { title: '业务办理', icon: 'ywbl' },
任超 committed
103
    redirect: '/ywbl/ywsq',
104
    name: 'ywbl',
赵千 committed
105 106
    children: [
      {
107
        path: 'ywsq',
108 109
        id: '21',
        parentId: '2',
110
        component: () => import('@/views/ywbl/ywsq/guidePage.vue'),
111
        name: 'ywsq',
任超 committed
112
        meta: { title: '业务申请' }
任超 committed
113 114
      },
      {
115
        path: 'dbx',
116 117
        id: '22',
        parentId: '2',
118
        component: () => import('@/views/ywbl/dbx/dbx.vue'),
119
        name: 'dbx',
任超 committed
120 121 122
        meta: { title: '待办箱' }
      },
      {
123
        path: 'ybx',
124 125
        id: '23',
        parentId: '2',
126
        component: () => import('@/views/ywbl/ybx/ybx.vue'),
127
        name: 'ybx',
任超 committed
128
        meta: { title: '已办箱' }
129 130 131 132 133 134 135
      },   {
        path: 'ycsl',
        id: '24',
        parentId: '2',
        component: () => import('@/views/ywbl/ycsl/ycsl.vue'),
        name: 'ycsl',
        meta: { title: '一窗受理' }
任超 committed
136
      },
任超 committed
137 138 139
    ]
  },
  {
140
    path: '/sqcx',
141
    id: '3',
任超 committed
142 143
    parentId: null,
    component: Layout,
任超 committed
144
    meta: { title: '申请查询', icon: 'sqcx' },
145
    redirect: '/sqcx/jtfc',
任超 committed
146
    alwaysShow: true,
147
    name: 'sqcx',
任超 committed
148 149
    children: [
      {
150
        path: 'jtfc',
151 152
        id: '31',
        parentId: '3',
153
        component: () => import('@/views/sqcx/jtfc/jtfc.vue'),
154
        name: 'jtfc',
任超 committed
155 156 157
        meta: { title: '家庭房产' }
      },
      {
158
        path: 'dydjb',
159 160
        id: '32',
        parentId: '3',
161
        component: () => import('@/views/sqcx/dydjb/dydjb.vue'),
162
        name: 'dydjb',
任超 committed
163 164 165
        meta: { title: '打印登记薄' }
      },
      {
jiaozeping@pashanhoo.com committed
166
        path: 'sqcxjl',
167 168
        id: '33',
        parentId: '3',
jiaozeping@pashanhoo.com committed
169
        component: () => import('@/views/sqcx/sqcxjl/sqcxjl.vue'),
170
        name: 'cxjl',
jiaozeping@pashanhoo.com committed
171
        meta: { title: '申请查询记录' }
任超 committed
172 173 174 175
      }
    ]
  },
  {
176
    path: '/zhcx',
177
    id: '4',
任超 committed
178 179
    parentId: null,
    component: Layout,
任超 committed
180
    meta: { title: '综合查询', icon: 'zhcx' },
181
    redirect: '/zhcx/jdcx',
任超 committed
182
    alwaysShow: true,
183
    name: 'zhcx',
任超 committed
184 185
    children: [
      {
186
        path: 'jdcx',
187 188
        id: '41',
        parentId: '4',
189
        component: () => import('@/views/zhcx/jdcx/jdcx.vue'),
190
        name: 'jdcx',
任超 committed
191 192 193
        meta: { title: '进度查询' }
      },
      {
194
        path: 'djbcx',
195 196
        id: '42',
        parentId: '4',
197
        component: () => import('@/views/zhcx/djbcx/djbcx.vue'),
198
        name: 'djbcx',
任超 committed
199 200 201
        meta: { title: '登记簿查询' }
      },
      {
202
        path: 'lpcx',
203 204
        id: '43',
        parentId: '4',
205
        component: () => import('@/views/zhcx/lpcx/lpcx.vue'),
206
        name: 'lpcx',
任超 committed
207
        meta: { title: '楼盘查询' }
任超 committed
208 209 210 211 212 213 214 215
      },
      {
        path: 'zslqcx',
        id: '45',
        parentId: '4',
        component: () => import('@/views/zhcx/zslqcx/zslqcx.vue'),
        name: 'zslqcx',
        meta: { title: '证书领取查询' }
任超 committed
216 217 218 219 220 221 222 223 224 225
      },
      // 在建工程抵押查询
      {
        path: 'zxgcdycx',
        id: '46',
        parentId: '4',
        component: () => import('@/views/zhcx/zxgcdycx/zxgcdycx.vue'),
        name: 'zxgcdycx',
        meta: { title: '在建工程抵押' }
      },
任超 committed
226 227 228
    ]
  },
  {
229
    path: '/zsgl',
230
    id: '5',
任超 committed
231 232
    parentId: null,
    component: Layout,
任超 committed
233
    meta: { title: '证书管理', icon: 'zsgl' },
234
    redirect: '/zsgl/zsrk',
任超 committed
235
    alwaysShow: true,
236
    name: 'zsgl',
任超 committed
237 238
    children: [
      {
239
        path: 'zsrk',
240 241
        id: '51',
        parentId: '5',
242
        component: () => import('@/views/zsgl/zsrk/zsrk.vue'),
243
        name: 'zsrk',
任超 committed
244 245 246
        meta: { title: '证书入库' }
      },
      {
247
        path: 'zsff',
248 249
        id: '52',
        parentId: '5',
250
        component: () => import('@/views/zsgl/zsff/zsff.vue'),
251
        name: 'zsff',
任超 committed
252 253 254
        meta: { title: '证书分发' }
      },
      {
255
        path: 'zssyjl',
256 257
        id: '53',
        parentId: '5',
258
        component: () => import('@/views/zsgl/zssyjl/zssyjl.vue'),
259
        name: 'zssyjl',
任超 committed
260
        meta: { title: '证书使用记录' }
任超 committed
261
      },
任超 committed
262 263 264
    ]
  },
  {
renchao@pashanhoo.com committed
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
    path: '/xxba',
    parentId: null,
    component: Layout,
    meta: { title: '信息备案', icon: 'xxba' },
    redirect: '/xxba/qyxxba',
    alwaysShow: true,
    name: 'xxba',
    children: [
      {
        path: 'qyxxba',
        component: () => import('@/views/xxba/qyxxba/index.vue'),
        name: 'qyxxba',
        meta: { title: '企业信息备案' }
      },
      {
        path: 'lpxmba',
        component: () => import('@/views/xxba/lpxmba/index.vue'),
        name: 'lpxmba',
        meta: { title: '楼盘项目备案' }
      },
      {
        path: 'yhjgba',
        component: () => import('@/views/xxba/yhjgba/index.vue'),
        name: 'yhjgba',
        meta: { title: '银行机构备案' }
      },
    ]
  },
  // 统计分析
  {
    path: '/tjfx',
    parentId: null,
    component: Layout,
    meta: { title: '统计分析', icon: 'tjfx' },
    redirect: '/tjfx/ywltj',
    alwaysShow: true,
    name: 'tjfx',
    children: [
      {
“miaofang committed
304 305 306 307 308 309 310 311 312 313
        path: 'bdcdjtjfx',
        component: () => import('@/views/tjfx/bdcdjtjfx/index.vue'),
        name: 'bdcdjtjfx',
        meta: { title: '不动产登记统计分析' }
      },
      {
        path: 'tjltj',
        component: () => import('@/views/tjfx/tjltj/index.vue'),
        name: 'tjltj',
        meta: { title: '退件率统计' }
renchao@pashanhoo.com committed
314 315
      },
      {
“miaofang committed
316 317 318 319
        path: 'cstj',
        component: () => import('@/views/tjfx/cstj/index.vue'),
        name: 'cstj',
        meta: { title: '超时统计' }
renchao@pashanhoo.com committed
320 321 322 323
      }
    ]
  },
  {
任超 committed
324
    path: '/system',
325
    id: '9',
任超 committed
326 327
    parentId: null,
    component: Layout,
任超 committed
328
    meta: { title: '系统管理', icon: 'system' },
任超 committed
329 330 331 332 333 334
    redirect: '/system/dictionaries',
    alwaysShow: true,
    name: 'system',
    children: [
      {
        path: 'dictionaries',
335 336
        id: '91',
        parentId: '9',
任超 committed
337
        component: () => import('@/views/system/dictionaries/dictionaries.vue'),
任超 committed
338 339
        name: 'dictionaries',
        meta: { title: '字典管理' }
340 341 342 343 344 345 346 347
      },
      {
        path: 'sqywgz',
        id: '92',
        parentId: '9',
        component: () => import('@/views/system/sqywgz/sqywgz.vue'),
        name: 'sqywgz',
        meta: { title: '申请业务规则' }
348 349 350 351 352 353 354 355
      },
      {
        path: 'qtjfjmb',
        id: '93',
        parentId: '9',
        component: () => import('@/views/system/qtjfjmb/qtjfjmb.vue'),
        name: 'qtjfjmb',
        meta: { title: '其他及附记模板' }
任超 committed
356 357 358 359 360 361 362 363 364
      },
      {
        path: 'dymbgl',
        id: '94',
        parentId: '9',
        component: () => import('@/views/system/dymbgl/dymbgl.vue'),
        name: 'dymbgl',
        meta: { title: '打印模板管理' }
      },
蔡俊立 committed
365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380
      {
        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: '法律法规' }
      },
381 382 383 384 385 386 387 388
      {
        path: 'gxhpz',
        id: '97',
        parentId: '9',
        component: () => import('@/views/system/gxhpz/gxhpz.vue'),
        name: 'gxhpz',
        meta: { title: '个性化配置' }
      },
赵千 committed
389
    ]
蔡俊立 committed
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416
  },
  {
    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: '操作日志' }
      },
蔡俊立 committed
417 418 419 420 421 422 423 424
      {
        path: 'zjjk',
        id: '63',
        parentId: '6',
        component: () => import('@/views/xtjk/zjjk/zjjk.vue'),
        name: 'zjjk',
        meta: { title: '主机监控' }
      },
蔡俊立 committed
425
    ]
蔡俊立 committed
426
  },
renchao@pashanhoo.com committed
427
  // jkfw
蔡俊立 committed
428 429 430 431
  {
    path: '/jkfw',
    parentId: null,
    component: Layout,
renchao@pashanhoo.com committed
432 433
    meta: { title: '接口服务', icon: 'jkfw' },
    redirect: '/jkfw/ywltj',
蔡俊立 committed
434 435 436 437
    alwaysShow: true,
    name: 'jkfw',
    children: [
      {
renchao@pashanhoo.com committed
438 439 440 441 442 443
        path: 'yyjk',
        component: () => import('@/views/jkfw/yyjk/index.vue'),
        name: 'yyjk',
        meta: { title: '引用接口' }
      },
      {
蔡俊立 committed
444
        path: 'ptjk',
renchao@pashanhoo.com committed
445
        component: () => import('@/views/jkfw/ptjk/index.vue'),
蔡俊立 committed
446 447
        name: 'ptjk',
        meta: { title: '平台接口' }
renchao@pashanhoo.com committed
448
      }
蔡俊立 committed
449
    ]
renchao@pashanhoo.com committed
450
  },
赵千 committed
451 452 453 454 455
]

const createRouter = () =>
  new Router({
    scrollBehavior: () => ({ y: 0 }),
任超 committed
456
    routes: [...constantRoutes]
赵千 committed
457 458 459 460 461 462 463 464 465 466
  })

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