Blame view

src/router/index.js 7.9 KB
任超 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
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' }
      }
    ]
  },
任超 committed
23 24 25 26
  // 监管首页
  {
    path: '/',
    component: Layout,
任超 committed
27
    redirect: '/home',
任超 committed
28 29 30
    meta: { title: '首页' },
    children: [
      {
任超 committed
31
        path: 'home',
任超 committed
32
        component: () => import('@/views/home/index'),
任超 committed
33
        name: 'home',
任超 committed
34
        meta: { title: '工作台', icon: 'workbench', affix: true }
任超 committed
35 36
      }
    ]
任超 committed
37 38 39 40 41 42 43
  }
]
/**
 * asyncRoutes
 * the routes that need to be dynamically loaded based on user roles
 */
export const asyncRoutes = [
任超 committed
44
  // 监管首页
任超 committed
45 46 47
  {
    path: '/',
    component: Layout,
任超 committed
48 49
    redirect: '/jgHome',
    meta: { title: '首页' },
任超 committed
50 51
    children: [
      {
任超 committed
52
        path: 'jgHome',
任超 committed
53
        component: () => import('@/views/home/index'),
任超 committed
54 55
        name: 'jgHome',
        meta: { title: '首页', icon: 'workbench', affix: true }
任超 committed
56 57 58
      }
    ]
  },
任超 committed
59 60 61 62 63 64 65
  // 接收报文查询
  {
    path: '/jsbwcx',
    component: Layout,
    children: [
      {
        path: 'index',
任超 committed
66
        component: () => import('@/views/jsbwcx/index.vue'),
任超 committed
67 68 69 70 71
        name: 'jsbwcx',
        meta: { title: '接收报文查询', icon: 'zsgl' }
      }
    ]
  },
任超 committed
72
  // 省厅汇交
任超 committed
73
  {
任超 committed
74
    path: '/sthj',
任超 committed
75 76 77
    component: Layout,
    children: [
      {
任超 committed
78
        path: 'sbbwcx',
任超 committed
79 80
        component: () => import('@/views/sbbwcx/index'),
        name: 'sbbwcx',
任超 committed
81 82
        meta: { title: '上报报文', icon: 'zsgl' }
      },
任超 committed
83
      {
任超 committed
84
        path: 'dbrzcx',
任超 committed
85 86
        component: () => import('@/views/dbrzcx/index'),
        name: 'dbrzcx',
任超 committed
87
        meta: { title: '登簿日志', icon: 'zsgl' }
任超 committed
88 89 90
      }
    ]
  },
任超 committed
91 92 93 94
  // 监控统计
  {
    path: '/jktj',
    component: Layout,
yangwei committed
95
    meta: { title: '统计监控', icon: 'sqcx'},
任超 committed
96 97
    children: [
      {
任超 committed
98 99 100 101 102 103 104 105
        path: 'ywltj',
        component: () => import('@/views/jktj/ywltj/index'),
        name: 'jktj',
        meta: { title: '业务量统计', icon: 'zhcx' }
      },
      {
        path: 'bsxljk',
        component: () => import('@/views/jktj/bsxljk/index'),
任超 committed
106
        name: 'jktj',
任超 committed
107
        meta: { title: '办事效率监控', icon: 'zhcx' }
任超 committed
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
      }
    ]
  },
  // 接入区域管理
  {
    path: '/jrqygl',
    component: Layout,
    children: [
      {
        path: 'index',
        component: () => import('@/views/jrqygl/index'),
        name: 'jrqygl',
        meta: { title: '接入区域管理', icon: 'zhcx' }
      }
    ]
  },
任超 committed
124 125 126 127 128 129 130 131 132 133 134 135 136
  // 接收规则管理
  {
    path: '/jsgzgl',
    component: Layout,
    children: [
      {
        path: 'index',
        component: () => import('@/views/jsgzgl/index'),
        name: 'jsgzgl',
        meta: { title: '接收规则管理', icon: 'zhcx' }
      }
    ]
  },
任超 committed
137 138 139 140 141 142 143 144 145 146 147 148 149
  // 接收报文重新入库
  {
    path: '/jsbwcxrk',
    component: Layout,
    children: [
      {
        path: 'index',
        component: () => import('@/views/jsbwcxrk/index'),
        name: 'jsbwcxrk',
        meta: { title: '接收报文重新入库', icon: 'zhcx' }
      }
    ]
  },
任超 committed
150 151 152 153 154 155 156 157 158 159 160 161 162
  // 报文重新入库日志
  {
    path: '/bwcxrkrz',
    component: Layout,
    children: [
      {
        path: 'index',
        component: () => import('@/views/bwcxrkrz/index'),
        name: 'bwcxrkrz',
        meta: { title: '报文重新入库日志', icon: 'zhcx' }
      }
    ]
  },
任超 committed
163 164 165 166 167 168 169 170 171 172 173 174 175
  // 中心日志
  {
    path: '/zxrz',
    component: Layout,
    children: [
      {
        path: 'index',
        component: () => import('@/views/zxrz/index'),
        name: 'zxrz',
        meta: { title: '中心日志', icon: 'zhcx' }
      }
    ]
  },
任超 committed
176
  // 接入业务信息-不动产数据
任超 committed
177 178 179
  {
    path: '/busineInfo',
    component: Layout,
yangwei committed
180
    meta: { title: '不动产数据', icon: 'sqcx'},
任超 committed
181 182 183 184 185
    redirect: '/busineInfo/landOwnership',
    alwaysShow: true,
    name: 'busineInfo',
    children: [
      {
jiaozeping@pashanhoo.com committed
186 187 188
        path: 'tdsyq',
        component: () => import('@/views/business-info/tdsyq/index'),
        name: 'tdsyq',
任超 committed
189 190 191
        meta: { title: '土地所有权' }
      },
      {
1  
jiaozeping@pashanhoo.com committed
192 193 194
        path: 'jsydzjdsyq',
        component: () => import('@/views/business-info/jsydzjdsyq/index'),
        name: 'jsydzjdsyq',
任超 committed
195 196 197
        meta: { title: '建设用地、宅基地使用权' }
      },
      {
1  
jiaozeping@pashanhoo.com committed
198 199 200
        path: 'fdcqdz',
        component: () => import('@/views/business-info/fdcqdz/index'),
        name: 'fdcqdz',
任超 committed
201 202 203
        meta: { title: '房地产权(项目内多幢房屋)' }
      },
      {
1  
jiaozeping@pashanhoo.com committed
204 205 206
        path: 'fdcqyz',
        component: () => import('@/views/business-info/fdcqyz/index'),
        name: 'fdcqyz',
任超 committed
207 208 209
        meta: { title: '房地产权(独幢、层、套、间、房屋)' }
      },
      {
1  
jiaozeping@pashanhoo.com committed
210 211 212
        path: 'fdcqqfsyq',
        component: () => import('@/views/business-info/fdcqqfsyq/index'),
        name: 'fdcqqfsyq',
任超 committed
213 214 215
        meta: { title: '建筑物区分所有权业主共有部分' }
      },
      {
jiaozeping@pashanhoo.com committed
216 217 218
        path: 'hysyq',
        component: () => import('@/views/business-info/hysyq/index'),
        name: 'hysyq',
1  
jiaozeping@pashanhoo.com committed
219
        meta: { title: '海域(含无居民海岛)使用权' }
任超 committed
220 221
      },
      {
1  
jiaozeping@pashanhoo.com committed
222 223 224
        path: 'gzwsyq',
        component: () => import('@/views/business-info/gzwsyq/index'),
        name: 'gzwsyq',
1  
jiaozeping@pashanhoo.com committed
225
        meta: { title: '构(建)筑物所有权' }
任超 committed
226 227
      },
      {
1  
jiaozeping@pashanhoo.com committed
228 229 230
        path: 'nydsyq',
        component: () => import('@/views/business-info/nydsyq/index'),
        name: 'nydsyq',
1  
jiaozeping@pashanhoo.com committed
231
        meta: { title: '农用地使用权(非林地)' }
任超 committed
232 233
      },
      {
1  
jiaozeping@pashanhoo.com committed
234 235 236
        path: 'lq',
        component: () => import('@/views/business-info/lq/index'),
        name: 'lq',
1  
jiaozeping@pashanhoo.com committed
237
        meta: { title: '林权' }
任超 committed
238 239
      },
      {
1  
jiaozeping@pashanhoo.com committed
240 241 242
        path: 'zxdj',
        component: () => import('@/views/business-info/zxdj/index'),
        name: 'zxdj',
1  
jiaozeping@pashanhoo.com committed
243
        meta: { title: '注销登记' }
任超 committed
244 245
      },
      {
1  
jiaozeping@pashanhoo.com committed
246 247 248 249
        path: 'yydj',
        component: () => import('@/views/business-info/yydj/index'),
        name: 'yydj',
        meta: { title: '异议登记' }
任超 committed
250 251
      },
      {
1  
jiaozeping@pashanhoo.com committed
252 253 254 255
        path: 'ygdj',
        component: () => import('@/views/business-info/ygdj/index'),
        name: 'ygdj',
        meta: { title: '预告登记' }
任超 committed
256 257
      },
      {
1  
jiaozeping@pashanhoo.com committed
258 259 260 261
        path: 'Cfdj',
        component: () => import('@/views/business-info/Cfdj/index'),
        name: 'Cfdj',
        meta: { title: '查封登记' }
任超 committed
262 263
      },
      {
1  
jiaozeping@pashanhoo.com committed
264 265 266
        path: 'dyaq',
        component: () => import('@/views/business-info/dyaq/index'),
        name: 'dyaq',
任超 committed
267 268 269
        meta: { title: ' 抵押权登记' }
      },
      {
1  
jiaozeping@pashanhoo.com committed
270 271 272
        path: 'dyiq',
        component: () => import('@/views/business-info/dyiq/index'),
        name: 'dyiq',
任超 committed
273 274 275 276
        meta: { title: ' 地役权登记' }
      }
    ]
  },
任超 committed
277 278 279 280
  // 系统管理
  {
    path: '/system',
    component: Layout,
yangwei committed
281
    meta: { title: '运维中心', icon: 'sqcx', breadcrumb: false },
任超 committed
282
    redirect: '/system/dictionaries',
任超 committed
283 284 285 286
    alwaysShow: true,
    name: 'system',
    children: [
      {
任超 committed
287 288 289
        path: 'dictionaries',
        component: () => import('@/views/system/dictionaries/dictionaries.vue'),
        name: 'dictionaries',
任超 committed
290 291 292 293
        meta: { title: '字典管理' }
      },
      {
        path: 'validationRule',
任超 committed
294
        component: () => import('@/views/system/validationRule/index'),
任超 committed
295 296 297 298 299
        name: 'validationRule',
        meta: { title: '上报效验规则配置' }
      },
      {
        path: 'timedTask',
任超 committed
300
        component: () => import('@/views/system/timedTask/index'),
任超 committed
301 302 303 304 305
        name: 'timedTask',
        meta: { title: '定时任务' }
      }
    ]
  }
任超 committed
306 307 308 309 310
]

const createRouter = () =>
  new Router({
    scrollBehavior: () => ({ y: 0 }),
任超 committed
311
    routes: [...constantRoutes, ...asyncRoutes]
任超 committed
312 313 314 315 316 317 318 319 320
  })

const router = createRouter()
export function resetRouter () {
  const newRouter = createRouter()
  router.matcher = newRouter.matcher // reset router
}

export default router