router.js 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  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. path: '/journal/journal/show',
  92. component: () => import('./views/journalQun/ShowJournal.vue'),
  93. name: '中科院全刊'
  94. }]
  95. },
  96. {
  97. path: '/journal/organizer',
  98. name: '主办单位',
  99. icon: 'iconfont icondanwei3',
  100. component: () => import('./views/Home.vue'),
  101. show: 0,
  102. isLeaf: 1,
  103. children: [{
  104. path: '/journal/organizer',
  105. component: () => import('./views/journalQun/Organizer.vue'),
  106. name: '主办单位'
  107. },{
  108. path: '/journal/organizer/detail',
  109. component: () => import('./views/journalQun/SubjectDetail.vue'),
  110. name: '主办单位详情'
  111. }, ]
  112. },
  113. {
  114. path: '/journal/subject',
  115. name: '学科',
  116. icon: 'iconfont iconshuben',
  117. component: () => import('./views/Home.vue'),
  118. show: 0,
  119. isLeaf: 1,
  120. children: [{
  121. path: '/journal/subject',
  122. component: () => import('./views/journalQun/Subject.vue'),
  123. name: '学科'
  124. }, {
  125. path: '/journal/subject/detail',
  126. component: () => import('./views/journalQun/SubjectDetail.vue'),
  127. name: '学科详情'
  128. },]
  129. },
  130. {
  131. path: '/learning/activity',
  132. name: '活动预告',
  133. icon: 'iconfont iconhuodong',
  134. component: () => import('./views/Home.vue'),
  135. show: 0,
  136. isLeaf: 1,
  137. children: [{
  138. path: '/learning/activity',
  139. component: () => import('./views/activity/Activity.vue'),
  140. name: '活动预告'
  141. },{
  142. path: '/learning/activity/add',
  143. component: () => import('./views/activity/AddActivity.vue'),
  144. name: '新增活动'
  145. }, {
  146. path: '/learning/activity/apply',
  147. component: () => import('./views/activity/apply.vue'),
  148. name: '报名'
  149. },]
  150. },
  151. {
  152. path: '/learning/oldactivity',
  153. name: '活动回顾',
  154. icon: 'iconfont iconhuodong',
  155. component: () => import('./views/Home.vue'),
  156. show: 0,
  157. isLeaf: 1,
  158. children: [{
  159. path: '/learning/oldactivity',
  160. component: () => import('./views/activity/OldActivity.vue'),
  161. name: '活动回顾'
  162. },{
  163. path: '/learning/oldactivity/add',
  164. component: () => import('./views/activity/AddActivity.vue'),
  165. name: '新增活动'
  166. }, ]
  167. },
  168. {
  169. path: '/article/article',
  170. name: '文章管理',
  171. icon: 'iconfont iconwenzhang',
  172. component: () => import('./views/Home.vue'),
  173. show: 0,
  174. isLeaf: 1,
  175. children: [{
  176. path: '/article/article',
  177. component: () => import('./views/article/Article.vue'),
  178. name: '文章管理'
  179. },
  180. {
  181. path: '/article/article/add',
  182. component: () => import('./views/article/AddArticle.vue'),
  183. name: '新增文章'
  184. },
  185. ]
  186. },
  187. {
  188. path: '/conference/conference',
  189. name: '会议管理',
  190. icon: 'iconfont iconhuiyizichan',
  191. component: () => import('./views/Home.vue'),
  192. show: 0,
  193. isLeaf: 1,
  194. children: [{
  195. path: '/conference/conference',
  196. component: () => import('./views/conference/Manage.vue'),
  197. name: '会议管理'
  198. },
  199. {
  200. path: '/conference/conference/add',
  201. component: () => import('./views/conference/AddConference.vue'),
  202. name: '新增会议'
  203. },
  204. ]
  205. },
  206. {
  207. path: '/conference/signup',
  208. name: '报名管理',
  209. icon: 'iconfont iconbaoming-08',
  210. component: () => import('./views/Home.vue'),
  211. show: 0,
  212. isLeaf: 1,
  213. children: [{
  214. path: '/conference/signup',
  215. component: () => import('./views/conference/Apply.vue'),
  216. name: '报名管理'
  217. }, ]
  218. },
  219. {
  220. path: '/conference/checker',
  221. name: '核销员管理',
  222. icon: 'iconfont iconhexiao',
  223. component: () => import('./views/Home.vue'),
  224. show: 0,
  225. isLeaf: 1,
  226. children: [{
  227. path: '/conference/checker',
  228. component: () => import('./views/conference/Checker.vue'),
  229. name: '核销员管理'
  230. }, ]
  231. },
  232. {
  233. path: '/conference/hotel',
  234. name: '酒店管理',
  235. icon: 'iconfont icondanwei3',
  236. component: () => import('./views/Home.vue'),
  237. show: 0,
  238. isLeaf: 1,
  239. children: [{
  240. path: '/conference/hotel',
  241. component: () => import('./views/conference/Hotel.vue'),
  242. name: '酒店管理'
  243. }, ]
  244. },
  245. // {
  246. // path: '/message/survey',
  247. // name: '调查问卷',
  248. // icon: 'el-icon-chat-dot-square',
  249. // component: () => import('./views/Home.vue'),
  250. // show: 0,
  251. // isLeaf: 1,
  252. // children: [{
  253. // path: '/message/survey',
  254. // component: () => import('./views/message/investigation.vue'),
  255. // name: '调查问卷'
  256. // }, ]
  257. // },
  258. {
  259. path: '/message/template',
  260. name: '问卷模板',
  261. icon: 'iconfont iconwenjuanmoban-',
  262. component: () => import('./views/Home.vue'),
  263. show: 0,
  264. isLeaf: 1,
  265. children: [{
  266. path: '/message/template',
  267. component: () => import('./views/message/templateList.vue'),
  268. name: '问卷模板'
  269. }, {
  270. path: '/message/template/add',
  271. component: () => import('./views/message/modelForm.vue'),
  272. name: '新增表单'
  273. }]
  274. },
  275. {
  276. path: '/system/account',
  277. name: '账号管理',
  278. icon: 'iconfont iconzhanghaoguanli1',
  279. component: () => import('./views/Home.vue'),
  280. show: 0,
  281. isLeaf: 1,
  282. children: [{
  283. path: '/system/account',
  284. component: () => import('./views/system/Account.vue'),
  285. name: '消息管理'
  286. }, ]
  287. },
  288. {
  289. path: '/system/role',
  290. name: '角色管理',
  291. icon: 'iconfont iconzhanghaoguanli',
  292. component: () => import('./views/Home.vue'),
  293. show: 0,
  294. isLeaf: 1,
  295. children: [{
  296. path: '/system/role',
  297. component: () => import('./views/system/Role.vue'),
  298. name: '角色管理'
  299. }, ]
  300. },
  301. {
  302. path: '/system/hotword',
  303. name: '热词',
  304. icon: 'iconfont iconrecigundongqiu',
  305. component: () => import('./views/Home.vue'),
  306. show: 0,
  307. isLeaf: 1,
  308. children: [{
  309. path: '/system/hotword',
  310. component: () => import('./views/system/HotWord.vue'),
  311. name: '热词'
  312. }, ]
  313. },
  314. {
  315. path: '/system/coldword',
  316. name: '冷词',
  317. icon: 'iconfont iconminganciku1',
  318. component: () => import('./views/Home.vue'),
  319. show: 0,
  320. isLeaf: 1,
  321. children: [{
  322. path: '/system/coldword',
  323. component: () => import('./views/system/ColdWord.vue'),
  324. name: '冷词'
  325. }, ]
  326. },
  327. {
  328. path: '/system/senword',
  329. name: '敏感词',
  330. icon: 'iconfont iconminganci',
  331. component: () => import('./views/Home.vue'),
  332. show: 0,
  333. isLeaf: 1,
  334. children: [{
  335. path: '/system/senword',
  336. component: () => import('./views/system/SenWord.vue'),
  337. name: '敏感词'
  338. }, ]
  339. },
  340. {
  341. path: '/system/banners',
  342. name: 'Banner图',
  343. icon: 'iconfont icontupian',
  344. component: () => import('./views/Home.vue'),
  345. show: 0,
  346. isLeaf: 1,
  347. children: [{
  348. path: '/system/banners',
  349. component: () => import('./views/system/Banners.vue'),
  350. name: 'Banner图'
  351. },]
  352. },
  353. {
  354. path: '/system/oplog',
  355. name: '日志',
  356. icon: 'iconfont iconrizhi',
  357. component: () => import('./views/Home.vue'),
  358. show: 0,
  359. isLeaf: 1,
  360. children: [{
  361. path: '/system/oplog',
  362. component: () => import('./views/system/Oplog.vue'),
  363. name: '日志'
  364. }, ]
  365. },
  366. ]
  367. })