import type { RouteRecordRaw } from 'vue-router' const Layout = () => import('@/layouts/index.vue') const routes: RouteRecordRaw = { path: '/quoteConfig/agreement', component: Layout, redirect: '/quoteConfig/agreement/agreementIndex', name: 'QuoteConfig', meta: { title: '报价配置', }, children: [ { path: 'agreementIndex', name: 'AgreementIndex', component: () => import('@/views/quoteConfig/agreement/agreementIndex.vue'), meta: { title: '协议管理', }, children:[ { path: 'agreementAdd', name: 'AgreementAdd', component: () => import('@/views/quoteConfig/agreement/agreementAdd.vue'), meta: { title: '协议添加', menu:false, activeMenu: '/quoteConfig/agreement/agreementIndex', }, }, { path: 'agreementCopy', name: 'AgreementCopy', component: () => import('@/views/quoteConfig/agreement/agreementCopy.vue'), meta: { title: '复制协议', menu:false, activeMenu: '/quoteConfig/agreement/agreementIndex', }, }, { path: 'agreementDetails', name: 'AgreementDetails', component: () => import('@/views/quoteConfig/agreement/agreementDetails.vue'), meta: { title: '协议详情', menu:false, activeMenu: '/quoteConfig/agreement/agreementIndex', }, }, ] }, { path: 'solutionManagement', name: 'SolutionManagement', component: () => import('@/views/quoteConfig/solutionManagement.vue'), meta: { title: '方案管理', // auth:['role.add','role.view','role.delete','role.edit'] }, }, { path: 'costManagement', name: 'CostManagement', component: () => import('@/views/quoteConfig/costManagement.vue'), meta: { title: '费用管理', // auth:['role.add','role.view','role.delete','role.edit'] }, }, { path: 'insuranceCompanyAccount', name: 'InsuranceCompanyAccount', component: () => import('@/views/quoteConfig/insuranceCompanyAccount/insuranceCompanyAccount.vue'), meta: { title: '保司账号', // auth:['role.add','role.view','role.delete','role.edit'] }, children: [ { path: 'insuranceAccountAdd', name: 'InsuranceAccountAdd', component: () => import('@/views/quoteConfig/insuranceCompanyAccount/modules/insuranceAccountAdd.vue'), meta: { title: '保司账号', menu:false, auth: [] }, } ] }, { path: 'project', name: 'Project', component: () => import('@/views/quoteConfig/project/index.vue'), meta: { title: '方案管理', // auth:['role.add','role.view','role.delete','role.edit'] }, children: [ { path: 'projectAdd', name: 'ProjectAdd', component: () => import('@/views/quoteConfig/project/modules/projectAdd.vue'), meta: { title: '方案管理', menu:false, auth: [] }, } ] }, ], } export default routes