router.js 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. Vue.use(Router)
  4. export default new Router({
  5. routes: [{
  6. path: '/',
  7. name: 'login',
  8. component: () => import('./views/Login.vue'),
  9. show: 0,
  10. },
  11. {
  12. path: '/index/index',
  13. name: '首页',
  14. icon: 'el-icon-s-home',
  15. component: () => import('./views/Home.vue'),
  16. show: 1,
  17. isLeaf: 1,
  18. children: [{
  19. path: '/index/index',
  20. component: () => import('./views/Index.vue'),
  21. name: '首页'
  22. }, ]
  23. },
  24. {
  25. path: '/message/message',
  26. name: '消息管理',
  27. icon: 'el-icon-chat-dot-square',
  28. component: () => import('./views/Home.vue'),
  29. show: 0,
  30. isLeaf: 1,
  31. children: [{
  32. path: '/message/message',
  33. component: () => import('./views/message/Message.vue'),
  34. name: '消息管理'
  35. }, {
  36. path: '/message/message/analyse',
  37. component: () => import('./views/message/MessageAnalyse.vue'),
  38. name: '问卷统计'
  39. }]
  40. },
  41. {
  42. path: '/journal/journal',
  43. name: '中科院全刊',
  44. icon: 'el-icon-chat-dot-square',
  45. component: () => import('./views/Home.vue'),
  46. show: 0,
  47. isLeaf: 1,
  48. children: [{
  49. path: '/journal/journal',
  50. component: () => import('./views/journalQun/Journal.vue'),
  51. name: '中科院全刊'
  52. }, ]
  53. },
  54. {
  55. path: '/journal/organizer',
  56. name: '主办单位',
  57. icon: 'el-icon-chat-dot-square',
  58. component: () => import('./views/Home.vue'),
  59. show: 0,
  60. isLeaf: 1,
  61. children: [{
  62. path: '/journal/organizer',
  63. component: () => import('./views/journalQun/Organizer.vue'),
  64. name: '主办单位'
  65. }, ]
  66. },
  67. {
  68. path: '/journal/subject',
  69. name: '学科',
  70. icon: 'el-icon-chat-dot-square',
  71. component: () => import('./views/Home.vue'),
  72. show: 0,
  73. isLeaf: 1,
  74. children: [{
  75. path: '/journal/subject',
  76. component: () => import('./views/journalQun/Subject.vue'),
  77. name: '学科'
  78. }, ]
  79. },
  80. {
  81. path: '/learning/activity',
  82. name: '活动管理',
  83. icon: 'el-icon-chat-dot-square',
  84. component: () => import('./views/Home.vue'),
  85. show: 0,
  86. isLeaf: 1,
  87. children: [{
  88. path: '/learning/activity',
  89. component: () => import('./views/message/Message.vue'),
  90. name: '活动管理'
  91. }, ]
  92. },
  93. {
  94. path: '/article/article',
  95. name: '文章管理',
  96. icon: 'el-icon-chat-dot-square',
  97. component: () => import('./views/Home.vue'),
  98. show: 0,
  99. isLeaf: 1,
  100. children: [{
  101. path: '/article/article',
  102. component: () => import('./views/message/Message.vue'),
  103. name: '文章管理'
  104. }, ]
  105. },
  106. {
  107. path: '/conference/conference',
  108. name: '会议管理',
  109. icon: 'el-icon-chat-dot-square',
  110. component: () => import('./views/Home.vue'),
  111. show: 0,
  112. isLeaf: 1,
  113. children: [{
  114. path: '/conference/conference',
  115. component: () => import('./views/conference/Manage.vue'),
  116. name: '会议管理'
  117. },
  118. {
  119. path: '/conference/conference/add',
  120. component: () => import('./views/conference/AddConference.vue'),
  121. name: '新增会议'
  122. },
  123. ]
  124. },
  125. {
  126. path: '/conference/signup',
  127. name: '报名管理',
  128. icon: 'el-icon-chat-dot-square',
  129. component: () => import('./views/Home.vue'),
  130. show: 0,
  131. isLeaf: 1,
  132. children: [{
  133. path: '/conference/signup',
  134. component: () => import('./views/message/Message.vue'),
  135. name: '报名管理'
  136. }, ]
  137. },
  138. {
  139. path: '/conference/checker',
  140. name: '核销员管理',
  141. icon: 'el-icon-chat-dot-square',
  142. component: () => import('./views/Home.vue'),
  143. show: 0,
  144. isLeaf: 1,
  145. children: [{
  146. path: '/conference/checker',
  147. component: () => import('./views/message/Message.vue'),
  148. name: '核销员管理'
  149. }, ]
  150. },
  151. {
  152. path: '/conference/hotel',
  153. name: '酒店管理',
  154. icon: 'el-icon-chat-dot-square',
  155. component: () => import('./views/Home.vue'),
  156. show: 0,
  157. isLeaf: 1,
  158. children: [{
  159. path: '/conference/hotel',
  160. component: () => import('./views/message/Message.vue'),
  161. name: '酒店管理'
  162. }, ]
  163. },
  164. // {
  165. // path: '/message/survey',
  166. // name: '调查问卷',
  167. // icon: 'el-icon-chat-dot-square',
  168. // component: () => import('./views/Home.vue'),
  169. // show: 0,
  170. // isLeaf: 1,
  171. // children: [{
  172. // path: '/message/survey',
  173. // component: () => import('./views/message/investigation.vue'),
  174. // name: '调查问卷'
  175. // }, ]
  176. // },
  177. {
  178. path: '/message/template',
  179. name: '问卷模板',
  180. icon: 'el-icon-chat-dot-square',
  181. component: () => import('./views/Home.vue'),
  182. show: 0,
  183. isLeaf: 1,
  184. children: [{
  185. path: '/message/template',
  186. component: () => import('./views/message/templateList.vue'),
  187. name: '问卷模板'
  188. }, {
  189. path: '/message/template/add',
  190. component: () => import('./views/message/modelForm.vue'),
  191. name: '新增表单'
  192. }]
  193. },
  194. {
  195. path: '/system/account',
  196. name: '账号管理',
  197. icon: 'el-icon-chat-dot-square',
  198. component: () => import('./views/Home.vue'),
  199. show: 0,
  200. isLeaf: 1,
  201. children: [{
  202. path: '/system/account',
  203. component: () => import('./views/system/Account.vue'),
  204. name: '消息管理'
  205. }, ]
  206. },
  207. {
  208. path: '/system/role',
  209. name: '角色管理',
  210. icon: 'el-icon-chat-dot-square',
  211. component: () => import('./views/Home.vue'),
  212. show: 0,
  213. isLeaf: 1,
  214. children: [{
  215. path: '/system/role',
  216. component: () => import('./views/system/Role.vue'),
  217. name: '角色管理'
  218. }, ]
  219. },
  220. ]
  221. })