router.js 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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. path: '/journal/journal/add',
  88. component: () => import('./views/journalQun/AddJournal.vue'),
  89. name: '中科院全刊'
  90. }]
  91. },
  92. {
  93. path: '/journal/organizer',
  94. name: '主办单位',
  95. icon: 'iconfont icondanwei3',
  96. component: () => import('./views/Home.vue'),
  97. show: 0,
  98. isLeaf: 1,
  99. children: [{
  100. path: '/journal/organizer',
  101. component: () => import('./views/journalQun/Organizer.vue'),
  102. name: '主办单位'
  103. }, ]
  104. },
  105. {
  106. path: '/journal/subject',
  107. name: '学科',
  108. icon: 'iconfont iconshuben',
  109. component: () => import('./views/Home.vue'),
  110. show: 0,
  111. isLeaf: 1,
  112. children: [{
  113. path: '/journal/subject',
  114. component: () => import('./views/journalQun/Subject.vue'),
  115. name: '学科'
  116. }, ]
  117. },
  118. {
  119. path: '/learning/activity',
  120. name: '活动管理',
  121. icon: 'iconfont iconhuodong',
  122. component: () => import('./views/Home.vue'),
  123. show: 0,
  124. isLeaf: 1,
  125. children: [{
  126. path: '/learning/activity',
  127. component: () => import('./views/activity/Activity.vue'),
  128. name: '活动管理'
  129. },{
  130. path: '/learning/activity/add',
  131. component: () => import('./views/activity/AddActivity.vue'),
  132. name: '新增活动'
  133. }, ]
  134. },
  135. {
  136. path: '/article/article',
  137. name: '文章管理',
  138. icon: 'iconfont iconwenzhang',
  139. component: () => import('./views/Home.vue'),
  140. show: 0,
  141. isLeaf: 1,
  142. children: [{
  143. path: '/article/article',
  144. component: () => import('./views/article/Article.vue'),
  145. name: '文章管理'
  146. },
  147. {
  148. path: '/article/article/add',
  149. component: () => import('./views/article/AddArticle.vue'),
  150. name: '新增文章'
  151. },
  152. ]
  153. },
  154. {
  155. path: '/conference/conference',
  156. name: '会议管理',
  157. icon: 'iconfont iconhuiyizichan',
  158. component: () => import('./views/Home.vue'),
  159. show: 0,
  160. isLeaf: 1,
  161. children: [{
  162. path: '/conference/conference',
  163. component: () => import('./views/conference/Manage.vue'),
  164. name: '会议管理'
  165. },
  166. {
  167. path: '/conference/conference/add',
  168. component: () => import('./views/conference/AddConference.vue'),
  169. name: '新增会议'
  170. },
  171. ]
  172. },
  173. {
  174. path: '/conference/signup',
  175. name: '报名管理',
  176. icon: 'iconfont iconbaoming-08',
  177. component: () => import('./views/Home.vue'),
  178. show: 0,
  179. isLeaf: 1,
  180. children: [{
  181. path: '/conference/signup',
  182. component: () => import('./views/conference/Apply.vue'),
  183. name: '报名管理'
  184. }, ]
  185. },
  186. {
  187. path: '/conference/checker',
  188. name: '核销员管理',
  189. icon: 'iconfont iconhexiao',
  190. component: () => import('./views/Home.vue'),
  191. show: 0,
  192. isLeaf: 1,
  193. children: [{
  194. path: '/conference/checker',
  195. component: () => import('./views/conference/Checker.vue'),
  196. name: '核销员管理'
  197. }, ]
  198. },
  199. {
  200. path: '/conference/hotel',
  201. name: '酒店管理',
  202. icon: 'iconfont icondanwei3',
  203. component: () => import('./views/Home.vue'),
  204. show: 0,
  205. isLeaf: 1,
  206. children: [{
  207. path: '/conference/hotel',
  208. component: () => import('./views/conference/Hotel.vue'),
  209. name: '酒店管理'
  210. }, ]
  211. },
  212. // {
  213. // path: '/message/survey',
  214. // name: '调查问卷',
  215. // icon: 'el-icon-chat-dot-square',
  216. // component: () => import('./views/Home.vue'),
  217. // show: 0,
  218. // isLeaf: 1,
  219. // children: [{
  220. // path: '/message/survey',
  221. // component: () => import('./views/message/investigation.vue'),
  222. // name: '调查问卷'
  223. // }, ]
  224. // },
  225. {
  226. path: '/message/template',
  227. name: '问卷模板',
  228. icon: 'iconfont iconwenjuanmoban-',
  229. component: () => import('./views/Home.vue'),
  230. show: 0,
  231. isLeaf: 1,
  232. children: [{
  233. path: '/message/template',
  234. component: () => import('./views/message/templateList.vue'),
  235. name: '问卷模板'
  236. }, {
  237. path: '/message/template/add',
  238. component: () => import('./views/message/modelForm.vue'),
  239. name: '新增表单'
  240. }]
  241. },
  242. {
  243. path: '/system/account',
  244. name: '账号管理',
  245. icon: 'iconfont iconzhanghaoguanli1',
  246. component: () => import('./views/Home.vue'),
  247. show: 0,
  248. isLeaf: 1,
  249. children: [{
  250. path: '/system/account',
  251. component: () => import('./views/system/Account.vue'),
  252. name: '消息管理'
  253. }, ]
  254. },
  255. {
  256. path: '/system/role',
  257. name: '角色管理',
  258. icon: 'iconfont iconzhanghaoguanli',
  259. component: () => import('./views/Home.vue'),
  260. show: 0,
  261. isLeaf: 1,
  262. children: [{
  263. path: '/system/role',
  264. component: () => import('./views/system/Role.vue'),
  265. name: '角色管理'
  266. }, ]
  267. },
  268. ]
  269. })