quoteConfig.ts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. import type { RouteRecordRaw } from 'vue-router'
  2. const Layout = () => import('@/layouts/index.vue')
  3. const routes: RouteRecordRaw = {
  4. path: '/quoteConfig/agreement',
  5. component: Layout,
  6. redirect: '/quoteConfig/agreement/agreementIndex',
  7. name: 'QuoteConfig',
  8. meta: {
  9. title: '报价配置',
  10. },
  11. children: [
  12. {
  13. path: 'agreementIndex',
  14. name: 'AgreementIndex',
  15. component: () => import('@/views/quoteConfig/agreement/agreementIndex.vue'),
  16. meta: {
  17. title: '协议管理',
  18. },
  19. children:[
  20. {
  21. path: 'agreementAdd',
  22. name: 'AgreementAdd',
  23. component: () => import('@/views/quoteConfig/agreement/agreementAdd.vue'),
  24. meta: {
  25. title: '协议添加',
  26. menu:false,
  27. activeMenu: '/quoteConfig/agreement/agreementIndex',
  28. },
  29. },
  30. {
  31. path: 'agreementCopy',
  32. name: 'AgreementCopy',
  33. component: () => import('@/views/quoteConfig/agreement/agreementCopy.vue'),
  34. meta: {
  35. title: '复制协议',
  36. menu:false,
  37. activeMenu: '/quoteConfig/agreement/agreementIndex',
  38. },
  39. },
  40. // {
  41. // path: 'agreementDetails',
  42. // name: 'AgreementDetails',
  43. // component: () => import('@/views/quoteConfig/agreement/agreementDetails.vue'),
  44. // meta: {
  45. // title: '协议详情',
  46. // menu:false,
  47. // activeMenu: '/quoteConfig/agreement/agreementIndex',
  48. // },
  49. // },
  50. ]
  51. },
  52. {
  53. path: 'solutionManagement',
  54. name: 'SolutionManagement',
  55. component: () => import('@/views/quoteConfig/solutionManagement.vue'),
  56. meta: {
  57. title: '方案管理',
  58. // auth:['role.add','role.view','role.delete','role.edit']
  59. },
  60. },
  61. {
  62. path: 'costManagement',
  63. name: 'CostManagement',
  64. component: () => import('@/views/quoteConfig/costManagement.vue'),
  65. meta: {
  66. title: '费用管理',
  67. // auth:['role.add','role.view','role.delete','role.edit']
  68. },
  69. },
  70. {
  71. path: 'insuranceCompanyAccount',
  72. name: 'InsuranceCompanyAccount',
  73. component: () => import('@/views/quoteConfig/insuranceCompanyAccount/insuranceCompanyAccount.vue'),
  74. meta: {
  75. title: '保司账号',
  76. // auth:['role.add','role.view','role.delete','role.edit']
  77. },
  78. children: [
  79. {
  80. path: 'insuranceAccountAdd',
  81. name: 'InsuranceAccountAdd',
  82. component: () => import('@/views/quoteConfig/insuranceCompanyAccount/modules/insuranceAccountAdd.vue'),
  83. meta: {
  84. title: '保司账号',
  85. menu:false,
  86. auth: []
  87. },
  88. }
  89. ]
  90. },
  91. {
  92. path: 'project',
  93. name: 'Project',
  94. component: () => import('@/views/quoteConfig/project/index.vue'),
  95. meta: {
  96. title: '方案管理',
  97. // auth:['role.add','role.view','role.delete','role.edit']
  98. },
  99. children: [
  100. {
  101. path: 'projectAdd',
  102. name: 'ProjectAdd',
  103. component: () => import('@/views/quoteConfig/project/modules/projectAdd.vue'),
  104. meta: {
  105. title: '方案管理',
  106. menu:false,
  107. auth: []
  108. },
  109. }
  110. ]
  111. },
  112. ],
  113. }
  114. export default routes