|
|
|
import Vue from 'vue'
|
|
|
|
import Router from 'vue-router'
|
|
|
|
|
|
|
|
Vue.use(Router)
|
|
|
|
|
|
|
|
/* Layout */
|
|
|
|
import Layout from '@/layout'
|
|
|
|
/* 所有角色可以访问/没有权限要求的基页 */
|
|
|
|
|
|
|
|
export const constantRoutes = [
|
|
|
|
{
|
|
|
|
path: '/redirect',
|
|
|
|
component: Layout,
|
|
|
|
hidden: true,
|
|
|
|
children: [{
|
|
|
|
path: '/redirect/:path(.*)',
|
|
|
|
component: () => import('@/views/redirect/index.vue')
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
redirect: 'index'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/index',
|
|
|
|
component: Layout,
|
|
|
|
redirect: '/index',
|
|
|
|
children: [{
|
|
|
|
path: '/index',
|
|
|
|
component: () =>
|
|
|
|
import('@/views/index.vue'),
|
|
|
|
name: 'index',
|
|
|
|
meta: {
|
|
|
|
title: '主页',
|
|
|
|
noCache: true,
|
|
|
|
affix: true
|
|
|
|
}
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/404',
|
|
|
|
component: () =>
|
|
|
|
import('@/views/404'),
|
|
|
|
hidden: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/capital',
|
|
|
|
component: Layout,
|
|
|
|
redirect: '/capital',
|
|
|
|
meta: {
|
|
|
|
title: '资方管理'
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '/capital/capital',
|
|
|
|
component: () => import('@/views/capital/capital.vue'),
|
|
|
|
name: 'Capital',
|
|
|
|
meta: { title: '资方管理', noCache: true }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/financialpolicymanagement',
|
|
|
|
component: Layout,
|
|
|
|
redirect: '/financialpolicymanagement',
|
|
|
|
meta: {
|
|
|
|
title: '金融产品政策管理'
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '/financialpolicymanagement/financialpolicymanagement',
|
|
|
|
component: () => import('@/views/financialpolicymanagement/financialpolicymanagement.vue'),
|
|
|
|
name: 'FinancialPolicyManagement',
|
|
|
|
meta: { title: '金融产品政策管理', noCache: true }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/financialpolicyreporting',
|
|
|
|
component: Layout,
|
|
|
|
redirect: '/financialpolicyreporting',
|
|
|
|
meta: {
|
|
|
|
title: '金融产品政策报备'
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '/financialpolicyreporting/financialpolicyreporting',
|
|
|
|
component: () => import('@/views/financialpolicyreporting/financialpolicyreporting.vue'),
|
|
|
|
name: 'FinancialPolicyrReporting',
|
|
|
|
meta: { title: '金融产品政策报备', noCache: true }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/otherfinancialproductsreport',
|
|
|
|
component: Layout,
|
|
|
|
redirect: '/otherfinancialproductsreport',
|
|
|
|
meta: {
|
|
|
|
title: '其它融产品报备'
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '/otherfinancialproductsreport/otherfinancialproductsreport',
|
|
|
|
component: () => import('@/views/otherfinancialproductsreport/otherfinancialproductsreport.vue'),
|
|
|
|
name: 'OtherFinancialProductsReport',
|
|
|
|
meta: { title: '其它融产品报备', noCache: true }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// path: '/customizedfinancialsolutions',
|
|
|
|
// component: Layout,
|
|
|
|
// redirect: '/customizedfinancialsolutions',
|
|
|
|
// meta: {
|
|
|
|
// title: '公司定制金融方案'
|
|
|
|
// },
|
|
|
|
// children: [
|
|
|
|
// {
|
|
|
|
// path: '/customizedfinancialsolutions/customizedfinancialsolutions',
|
|
|
|
// component: () => import('@/views/customizedfinancialsolutions/customizedfinancialsolutions.vue'),
|
|
|
|
// name: 'CustomizedFinancialSolutions',
|
|
|
|
// meta: { title: '公司定制金融方案', noCache: true }
|
|
|
|
// }
|
|
|
|
// ]
|
|
|
|
// },
|
|
|
|
{
|
|
|
|
path: '/creditauditmanagement',
|
|
|
|
component: Layout,
|
|
|
|
redirect: '/creditauditmanagement',
|
|
|
|
meta: {
|
|
|
|
title: '贷前信用审核管理'
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '/creditauditmanagement/creditauditmanagement',
|
|
|
|
component: () => import('@/views/creditauditmanagement/creditauditmanagement.vue'),
|
|
|
|
name: 'CreditAuditManagement',
|
|
|
|
meta: { title: '贷前信用审核管理', noCache: true }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/financialclerkbycreditvetting',
|
|
|
|
component: Layout,
|
|
|
|
redirect: '/financialclerkbycreditvetting',
|
|
|
|
meta: {
|
|
|
|
title: '金融内勤信用审核管理'
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '/financialclerkbycreditvetting/financialclerkbycreditvetting',
|
|
|
|
component: () => import('@/views/financialclerkbycreditvetting/financialclerkbycreditvetting.vue'),
|
|
|
|
name: 'FinancialClerkByCreditVetting',
|
|
|
|
meta: { title: '金融内勤信用审核管理', noCache: true }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/creditauditappeal',
|
|
|
|
component: Layout,
|
|
|
|
redirect: '/creditauditappeal',
|
|
|
|
meta: {
|
|
|
|
title: '贷前信用审核申诉'
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '/creditauditappeal/creditauditappeal',
|
|
|
|
component: () => import('@/views/creditauditappeal/creditauditappeal.vue'),
|
|
|
|
name: 'CreditAuditAppeal',
|
|
|
|
meta: { title: '贷前信用审核申诉', noCache: true }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
// 流程审批
|
|
|
|
// 金融产品政策报备--编辑
|
|
|
|
{
|
|
|
|
path: '/jinrongzhengceFlow/financialpolicyreportingEdit',
|
|
|
|
component: () =>
|
|
|
|
import('@/views/workFlow/jinrongzhengceFlow/financialpolicyreportingEdit.vue'),
|
|
|
|
name: 'FinancialPolicyReportingEdit'
|
|
|
|
},
|
|
|
|
// 金融产品政策报备--待办
|
|
|
|
{
|
|
|
|
path: '/jinrongzhengceFlow/financialpolicyreportingDaiBanInfo',
|
|
|
|
component: () =>
|
|
|
|
import('@/views/workFlow/jinrongzhengceFlow/financialpolicyreportingDaiBanInfo.vue'),
|
|
|
|
name: 'FinancialPolicyReportingBaiBanInfo'
|
|
|
|
},
|
|
|
|
// 金融产品政策报备--待办--总经理跳转风控中心
|
|
|
|
{
|
|
|
|
path: '/jinrongzhengceFlow/financialpolicyreportingByDivisionOperateInfo',
|
|
|
|
component: () =>
|
|
|
|
import('@/views/workFlow/jinrongzhengceFlow/financialpolicyreportingByDivisionOperateInfo.vue'),
|
|
|
|
name: 'FinancialPolicyReportingByDivisionOperateInfo'
|
|
|
|
},
|
|
|
|
// 金融产品政策报备--已办
|
|
|
|
{
|
|
|
|
path: '/jinrongzhengceFlow/financialpolicyreportingYiBanInfo',
|
|
|
|
component: () =>
|
|
|
|
import('@/views/workFlow/jinrongzhengceFlow/financialpolicyreportingYiBanInfo.vue'),
|
|
|
|
name: 'FinancialPolicyReportingYiBanInfo'
|
|
|
|
},
|
|
|
|
|
|
|
|
// 流程审批
|
|
|
|
// 其它融产品报备--编辑
|
|
|
|
{
|
|
|
|
path: '/qitarongchanpinFlow/otherfinancialproductsreportEdit',
|
|
|
|
component: () =>
|
|
|
|
import('@/views/workFlow/qitarongchanpinFlow/otherfinancialproductsreportEdit.vue'),
|
|
|
|
name: 'OtherFinancialProductsReportEdit'
|
|
|
|
},
|
|
|
|
// 其它融产品报备--待办
|
|
|
|
{
|
|
|
|
path: '/qitarongchanpinFlow/otherfinancialproductsreportDaiBan',
|
|
|
|
component: () =>
|
|
|
|
import('@/views/workFlow/qitarongchanpinFlow/otherfinancialproductsreportDaiBan.vue'),
|
|
|
|
name: 'OtherFinancialProductsReportDaiBan'
|
|
|
|
},
|
|
|
|
// 其它融产品报备--待办--总经理跳转风控中心
|
|
|
|
{
|
|
|
|
path: '/qitarongchanpinFlow/otherfinancialproductsreportByDivisionOperate',
|
|
|
|
component: () =>
|
|
|
|
import('@/views/workFlow/qitarongchanpinFlow/otherfinancialproductsreportByDivisionOperate.vue'),
|
|
|
|
name: 'OtherFinancialProductsReportByDivisionOperate'
|
|
|
|
},
|
|
|
|
// 其它融产品报备--已办
|
|
|
|
{
|
|
|
|
path: '/qitarongchanpinFlow/otherfinancialproductsreportYiBan',
|
|
|
|
component: () =>
|
|
|
|
import('@/views/workFlow/qitarongchanpinFlow/otherfinancialproductsreportYiBan.vue'),
|
|
|
|
name: 'OtherFinancialProductsReportYiBan'
|
|
|
|
},
|
|
|
|
// 信用申诉--编辑
|
|
|
|
{
|
|
|
|
path: '/xinyongshensuFlow/creditauditappealEdit',
|
|
|
|
component: () =>
|
|
|
|
import('@/views/workFlow/xinyongshensuFlow/creditauditappealEdit.vue'),
|
|
|
|
name: 'CreditAuditAppealEdit'
|
|
|
|
},
|
|
|
|
// 信用申诉--待办
|
|
|
|
{
|
|
|
|
path: '/xinyongshensuFlow/creditauditappealDaiBan',
|
|
|
|
component: () =>
|
|
|
|
import('@/views/workFlow/xinyongshensuFlow/creditauditappealDaiBan.vue'),
|
|
|
|
name: 'CreditAuditAppealDaiBan'
|
|
|
|
},
|
|
|
|
// 信用申诉--已办
|
|
|
|
{
|
|
|
|
path: '/xinyongshensuFlow/creditauditappealYiBan',
|
|
|
|
component: () =>
|
|
|
|
import('@/views/workFlow/xinyongshensuFlow/creditauditappealYiBan.vue'),
|
|
|
|
name: 'CreditAuditAppealYiBan'
|
|
|
|
}
|
|
|
|
// 404 page must be placed at the end !!!
|
|
|
|
// { path: '*', redirect: '/404', hidden: true }
|
|
|
|
]
|
|
|
|
|
|
|
|
const createRouter = () => new Router({
|
|
|
|
// mode: 'history', // require service support
|
|
|
|
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
|