index.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. import Vue from 'vue'
  2. import VueRouter from 'vue-router'
  3. // 上传记录
  4. import UploadRecord from '../views/data/UploadRecord.vue'
  5. // 厂商链接上传
  6. import UploadLinks from '../views/data/UploadLinks.vue'
  7. // 经销商链接上传
  8. import UploadLink from '../views/data/UploadLink.vue'
  9. // 上传资料
  10. import UploadInfor from '../views/data/UploadInfor.vue'
  11. // 资料下载
  12. import InforList from '../views/data/InforList.vue'
  13. // 厂商账号管理
  14. import AccountIndex from '../views/account/AccountIndex.vue'
  15. // 经销商账号管理
  16. import AccountManage from '../views/account/AccountManage.vue'
  17. // 参数设置
  18. import ParameterIndex from '../views/parameter/ParameterIndex.vue'
  19. // 车系车型
  20. import CarSeries from '../views/parameter/CarSeries'
  21. // 平台模块
  22. import PlatformModule from '../views/parameter/PlatformModule'
  23. //内容分类1
  24. import ContentCategory1 from '../views/parameter/ContentCategory1'
  25. //内容分类2
  26. import ContentCategory2 from '../views/parameter/ContentCategory2'
  27. // 媒体平台
  28. import MediaPlatform from '../views/parameter/MediaPlatform'
  29. // 权限分组
  30. import Grouping from '../views/parameter/Grouping'
  31. // 链接上传
  32. import LinkUpload from '../views/parameter/LinkUpload'
  33. // 常用参数
  34. import CommonParam from '../views/parameter/CommonParam'
  35. Vue.use(VueRouter)
  36. const routes = [
  37. {
  38. path: '/',
  39. component: InforList,
  40. redirect: '/inforList'
  41. },
  42. {
  43. path: '/uploadRecord',
  44. component: UploadRecord
  45. },
  46. {
  47. path: '/uploadLink',
  48. component: UploadLink
  49. },
  50. {
  51. path: '/uploadLinks',
  52. component:UploadLinks
  53. },
  54. {
  55. path: '/uploadInfor',
  56. component: UploadInfor
  57. },
  58. {
  59. path: '/inforList',
  60. component: InforList
  61. },
  62. {
  63. path: '/accountIndex',
  64. component: AccountIndex
  65. },
  66. {
  67. path: '/accountManage',
  68. component: AccountManage
  69. },
  70. {
  71. path: '/parameterIndex',
  72. component: ParameterIndex,
  73. children: [
  74. {
  75. path: '',
  76. component: CarSeries,
  77. redirect: 'carSeries'
  78. },
  79. {
  80. path: 'carSeries',
  81. component: CarSeries
  82. },
  83. {
  84. path: 'platformModule',
  85. component: PlatformModule
  86. },
  87. {
  88. path: 'contentCategory1',
  89. component: ContentCategory1
  90. },
  91. {
  92. path: 'contentCategory2',
  93. component: ContentCategory2
  94. },
  95. {
  96. path: 'mediaPlatform',
  97. component: MediaPlatform
  98. },
  99. {
  100. path: 'grouping',
  101. component: Grouping
  102. },
  103. {
  104. path: 'linkUpload',
  105. component: LinkUpload
  106. },
  107. {
  108. path: 'commonParam',
  109. component: CommonParam
  110. }
  111. ]
  112. }
  113. ]
  114. const router = new VueRouter({
  115. routes
  116. })
  117. export default router