router.js 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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: 0,
  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: 'iconfont iconxiaoxi',
  28. component: () => import('./views/Home.vue'),
  29. show: 0,
  30. isLeaf: 1,
  31. children: [{
  32. path: '/message/message',
  33. component: () => import('./views/message/Notice.vue'),
  34. name: '内部消息'
  35. }, {
  36. path: '/message/message/analyse',
  37. component: () => import('./views/message/MessageAnalyse.vue'),
  38. name: '问卷统计'
  39. }]
  40. },
  41. {
  42. path: '/message/innerSurvey',
  43. name: '内部问卷',
  44. icon: 'iconfont iconwenjuan',
  45. component: () => import('./views/Home.vue'),
  46. show: 0,
  47. isLeaf: 1,
  48. children: [{
  49. path: '/message/innerSurvey',
  50. component: () => import('./views/message/InnerSurvey.vue'),
  51. name: '内部问卷'
  52. }, {
  53. path: '/message/innerSurvey/analyse',
  54. component: () => import('./views/message/MessageAnalyse.vue'),
  55. name: '问卷统计'
  56. }]
  57. },
  58. {
  59. path: '/message/outSurvey',
  60. name: '外部问卷',
  61. icon: 'iconfont iconwenjuan1',
  62. component: () => import('./views/Home.vue'),
  63. show: 0,
  64. isLeaf: 1,
  65. children: [{
  66. path: '/message/outSurvey',
  67. component: () => import('./views/message/OutSurvey.vue'),
  68. name: '外部问卷'
  69. }, {
  70. path: '/message/outSurvey/analyse',
  71. component: () => import('./views/message/MessageAnalyse.vue'),
  72. name: '问卷统计'
  73. }]
  74. },
  75. {
  76. path: '/journal/journal',
  77. name: '中科院全刊',
  78. icon: 'iconfont iconkanwuguanli',
  79. component: () => import('./views/Home.vue'),
  80. show: 0,
  81. isLeaf: 1,
  82. children: [{
  83. path: '/journal/journal',
  84. component: () => import('./views/journalQun/Journal.vue'),
  85. name: '中科院全刊'
  86. }, ]
  87. },
  88. {
  89. path: '/journal/organizer',
  90. name: '主办单位',
  91. icon: 'iconfont icondanwei3',
  92. component: () => import('./views/Home.vue'),
  93. show: 0,
  94. isLeaf: 1,
  95. children: [{
  96. path: '/journal/organizer',
  97. component: () => import('./views/journalQun/Organizer.vue'),
  98. name: '主办单位'
  99. }, ]
  100. },
  101. {
  102. path: '/journal/subject',
  103. name: '学科',
  104. icon: 'iconfont iconshuben',
  105. component: () => import('./views/Home.vue'),
  106. show: 0,
  107. isLeaf: 1,
  108. children: [{
  109. path: '/journal/subject',
  110. component: () => import('./views/journalQun/Subject.vue'),
  111. name: '学科'
  112. }, ]
  113. },
  114. {
  115. path: '/learning/activity',
  116. name: '活动管理',
  117. icon: 'iconfont iconhuodong',
  118. component: () => import('./views/Home.vue'),
  119. show: 0,
  120. isLeaf: 1,
  121. children: [{
  122. path: '/learning/activity',
  123. component: () => import('./views/message/Message.vue'),
  124. name: '活动管理'
  125. }, ]
  126. },
  127. {
  128. path: '/article/article',
  129. name: '文章管理',
  130. icon: 'iconfont iconwenzhang',
  131. component: () => import('./views/Home.vue'),
  132. show: 0,
  133. isLeaf: 1,
  134. children: [{
  135. path: '/article/article',
  136. component: () => import('./views/message/Message.vue'),
  137. name: '文章管理'
  138. }, ]
  139. },
  140. {
  141. path: '/conference/conference',
  142. name: '会议管理',
  143. icon: 'iconfont iconhuiyizichan',
  144. component: () => import('./views/Home.vue'),
  145. show: 0,
  146. isLeaf: 1,
  147. children: [{
  148. path: '/conference/conference',
  149. component: () => import('./views/conference/Manage.vue'),
  150. name: '会议管理'
  151. },
  152. {
  153. path: '/conference/conference/add',
  154. component: () => import('./views/conference/AddConference.vue'),
  155. name: '新增会议'
  156. },
  157. ]
  158. },
  159. {
  160. path: '/conference/signup',
  161. name: '报名管理',
  162. icon: 'iconfont iconbaoming-08',
  163. component: () => import('./views/Home.vue'),
  164. show: 0,
  165. isLeaf: 1,
  166. children: [{
  167. path: '/conference/signup',
  168. component: () => import('./views/conference/Apply.vue'),
  169. name: '报名管理'
  170. }, ]
  171. },
  172. {
  173. path: '/conference/checker',
  174. name: '核销员管理',
  175. icon: 'iconfont iconhexiao',
  176. component: () => import('./views/Home.vue'),
  177. show: 0,
  178. isLeaf: 1,
  179. children: [{
  180. path: '/conference/checker',
  181. component: () => import('./views/conference/Checker.vue'),
  182. name: '核销员管理'
  183. }, ]
  184. },
  185. {
  186. path: '/conference/hotel',
  187. name: '酒店管理',
  188. icon: 'iconfont icondanwei3',
  189. component: () => import('./views/Home.vue'),
  190. show: 0,
  191. isLeaf: 1,
  192. children: [{
  193. path: '/conference/hotel',
  194. component: () => import('./views/conference/Hotel.vue'),
  195. name: '酒店管理'
  196. }, ]
  197. },
  198. // {
  199. // path: '/message/survey',
  200. // name: '调查问卷',
  201. // icon: 'el-icon-chat-dot-square',
  202. // component: () => import('./views/Home.vue'),
  203. // show: 0,
  204. // isLeaf: 1,
  205. // children: [{
  206. // path: '/message/survey',
  207. // component: () => import('./views/message/investigation.vue'),
  208. // name: '调查问卷'
  209. // }, ]
  210. // },
  211. {
  212. path: '/message/template',
  213. name: '问卷模板',
  214. icon: 'iconfont iconwenjuanmoban-',
  215. component: () => import('./views/Home.vue'),
  216. show: 0,
  217. isLeaf: 1,
  218. children: [{
  219. path: '/message/template',
  220. component: () => import('./views/message/templateList.vue'),
  221. name: '问卷模板'
  222. }, {
  223. path: '/message/template/add',
  224. component: () => import('./views/message/modelForm.vue'),
  225. name: '新增表单'
  226. }]
  227. },
  228. {
  229. path: '/system/account',
  230. name: '账号管理',
  231. icon: 'iconfont iconzhanghaoguanli1',
  232. component: () => import('./views/Home.vue'),
  233. show: 0,
  234. isLeaf: 1,
  235. children: [{
  236. path: '/system/account',
  237. component: () => import('./views/system/Account.vue'),
  238. name: '消息管理'
  239. }, ]
  240. },
  241. {
  242. path: '/system/role',
  243. name: '角色管理',
  244. icon: 'iconfont iconzhanghaoguanli',
  245. component: () => import('./views/Home.vue'),
  246. show: 0,
  247. isLeaf: 1,
  248. children: [{
  249. path: '/system/role',
  250. component: () => import('./views/system/Role.vue'),
  251. name: '角色管理'
  252. }, ]
  253. },
  254. ]
  255. })