You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

408 lines
12 KiB

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: '/otherfinancialpolicymanagement',
component: Layout,
redirect: '/otherfinancialpolicymanagement',
meta: {
title: '其它融产品管理'
},
children: [
{
path: '/otherfinancialpolicymanagement/otherfinancialpolicymanagement',
component: () => import('@/views/otherfinancialpolicymanagement/otherfinancialpolicymanagement.vue'),
name: 'OtherFinancialPolicyManagement',
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: '/homevisitpreparation',
component: Layout,
redirect: '/homevisitpreparation',
meta: {
title: '家访准备管理'
},
children: [
{
path: '/homevisitpreparation/homevisittobeprepared',
component: () => import('@/views/homevisitpreparation/homevisittobeprepared.vue'),
name: 'HomeVisitToBePrepared',
meta: { title: '家访准备管理', noCache: true }
}
]
},
{
path: '/riskcontrolparameter',
component: Layout,
redirect: '/riskcontrolparameter',
meta: {
title: '风控参数设置'
},
children: [
{
path: '/riskcontrolparameter/riskcontrolparameter',
component: () => import('@/views/riskcontrolparameter/riskcontrolparameter.vue'),
name: 'RiskControlParameter',
meta: { title: '风控参数设置', noCache: true }
}
]
},
{
path: '/homevisitdatareview',
component: Layout,
redirect: '/homevisitdatareview',
meta: {
title: '家访资料审核'
},
children: [
{
path: '/homevisitdatareview/homevisitdatatobereviewed',
component: () => import('@/views/homevisitdatareview/homevisitdatatobereviewed.vue'),
name: 'HomeVisitDataReview',
meta: { title: '家访资料审核', noCache: true }
}
]
},
{
path: '/managementcreditaudit',
component: Layout,
redirect: '/managementcreditaudit',
meta: {
title: '资方信审终审结果'
},
children: [
{
path: '/managementcreditaudit/managementcreditaudit',
component: () => import('@/views/managementcreditaudit/managementcreditaudit.vue'),
name: 'ManagementCreditAudit',
meta: { title: '资方信审终审结果', noCache: true }
}
]
},
{
path: '/warrantinformation',
component: Layout,
redirect: '/warrantinformation',
meta: {
title: '权证资料管理'
},
children: [
{
path: '/warrantinformation/warrantinformation',
component: () => import('@/views/warrantinformation/warrantinformation.vue'),
name: 'WarrantInformation',
meta: { title: '权证资料管理', noCache: true }
}
]
},
{
path: '/repaymentschedule',
component: Layout,
redirect: '/repaymentschedule',
meta: {
title: '还款计划表'
},
children: [
{
path: '/repaymentschedule/repaymentschedule',
component: () => import('@/views/repaymentschedule/repaymentschedule.vue'),
name: 'RepaymentSchedule',
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'
},
// 公司定制金融方案--编辑
{
path: '/dingzhijinrongFlow/customizedfinancialsolutionsEdit',
component: () =>
import('@/views/workFlow/dingzhijinrongFlow/customizedfinancialsolutionsEdit.vue'),
name: 'CustomizedFinancialSolutionsEdit'
},
// 公司定制金融方案--待办
{
path: '/dingzhijinrongFlow/customizedfinancialsolutionsDaiBan',
component: () =>
import('@/views/workFlow/dingzhijinrongFlow/customizedfinancialsolutionsDaiBan.vue'),
name: 'CustomizedFinancialSolutionsDaiBan'
},
// 公司定制金融方案--已办
{
path: '/dingzhijinrongFlow/customizedfinancialsolutionsYiban',
component: () =>
import('@/views/workFlow/dingzhijinrongFlow/customizedfinancialsolutionsYiban.vue'),
name: 'CustomizedFinancialSolutionsYiBan'
}
// 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