router.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  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. path: '/message/message/detail',
  41. component: () => import('./views/message/NoticeDetail.vue'),
  42. name: '消息详情'
  43. }]
  44. },
  45. {
  46. path: '/message/innerSurvey',
  47. name: '内部问卷',
  48. icon: 'iconfont iconwenjuan',
  49. component: () => import('./views/Home.vue'),
  50. show: 0,
  51. isLeaf: 1,
  52. children: [{
  53. path: '/message/innerSurvey',
  54. component: () => import('./views/message/InnerSurvey.vue'),
  55. name: '内部问卷'
  56. }, {
  57. path: '/message/innerSurvey/analyse',
  58. component: () => import('./views/message/MessageAnalyse.vue'),
  59. name: '问卷统计'
  60. }]
  61. },
  62. {
  63. path: '/message/outSurvey',
  64. name: '外部问卷',
  65. icon: 'iconfont iconwenjuan1',
  66. component: () => import('./views/Home.vue'),
  67. show: 0,
  68. isLeaf: 1,
  69. children: [{
  70. path: '/message/outSurvey',
  71. component: () => import('./views/message/OutSurvey.vue'),
  72. name: '外部问卷'
  73. }, {
  74. path: '/message/outSurvey/analyse',
  75. component: () => import('./views/message/MessageAnalyse.vue'),
  76. name: '问卷统计'
  77. }]
  78. },
  79. {
  80. path: '/journal/journal',
  81. name: '中科院全刊',
  82. icon: 'iconfont iconkanwuguanli',
  83. component: () => import('./views/Home.vue'),
  84. show: 0,
  85. isLeaf: 1,
  86. children: [{
  87. path: '/journal/journal',
  88. component: () => import('./views/journalQun/Journal.vue'),
  89. name: '中科院全刊'
  90. },{
  91. path: '/journal/journal/add',
  92. component: () => import('./views/journalQun/AddJournal.vue'),
  93. name: '中科院全刊'
  94. },{
  95. path: '/journal/journal/show',
  96. component: () => import('./views/journalQun/ShowJournal.vue'),
  97. name: '中科院全刊'
  98. }]
  99. },
  100. {
  101. path: '/journal/organizer',
  102. name: '主办单位',
  103. icon: 'iconfont icondanwei3',
  104. component: () => import('./views/Home.vue'),
  105. show: 0,
  106. isLeaf: 1,
  107. children: [{
  108. path: '/journal/organizer',
  109. component: () => import('./views/journalQun/Organizer.vue'),
  110. name: '主办单位'
  111. },{
  112. path: '/journal/organizer/detail',
  113. component: () => import('./views/journalQun/SubjectDetail.vue'),
  114. name: '主办单位详情'
  115. }, ]
  116. },
  117. {
  118. path: '/journal/subject',
  119. name: '学科',
  120. icon: 'iconfont iconshuben',
  121. component: () => import('./views/Home.vue'),
  122. show: 0,
  123. isLeaf: 1,
  124. children: [{
  125. path: '/journal/subject',
  126. component: () => import('./views/journalQun/Subject.vue'),
  127. name: '学科'
  128. }, {
  129. path: '/journal/subject/detail',
  130. component: () => import('./views/journalQun/SubjectDetail.vue'),
  131. name: '学科详情'
  132. },]
  133. },
  134. {
  135. path: '/journal/casci',
  136. name: 'CASCI数据统计',
  137. icon: 'iconfont iconshuben',
  138. component: () => import('./views/Home.vue'),
  139. show: 0,
  140. isLeaf: 1,
  141. children: [{
  142. path: '/journal/casci',
  143. component: () => import('./views/journalQun/CASCI.vue'),
  144. name: 'CASCI数据统计'
  145. }, {
  146. path: '/journal/casci/detail',
  147. component: () => import('./views/journalQun/CASCIDetail.vue'),
  148. name: 'CASCI数据详情'
  149. },]
  150. },
  151. {
  152. path: '/learning/activity',
  153. name: '活动预告',
  154. icon: 'iconfont iconhuodong',
  155. component: () => import('./views/Home.vue'),
  156. show: 0,
  157. isLeaf: 1,
  158. children: [{
  159. path: '/learning/activity',
  160. component: () => import('./views/activity/Activity.vue'),
  161. name: '活动预告'
  162. },{
  163. path: '/learning/activity/add',
  164. component: () => import('./views/activity/AddActivity.vue'),
  165. name: '新增活动'
  166. }, {
  167. path: '/learning/activity/apply',
  168. component: () => import('./views/activity/apply.vue'),
  169. name: '报名'
  170. },]
  171. },
  172. {
  173. path: '/learning/oldactivity',
  174. name: '活动回顾',
  175. icon: 'iconfont iconhuodong',
  176. component: () => import('./views/Home.vue'),
  177. show: 0,
  178. isLeaf: 1,
  179. children: [{
  180. path: '/learning/oldactivity',
  181. component: () => import('./views/activity/OldActivity.vue'),
  182. name: '活动回顾'
  183. },{
  184. path: '/learning/oldactivity/add',
  185. component: () => import('./views/activity/AddActivity.vue'),
  186. name: '新增活动'
  187. }, ]
  188. },
  189. {
  190. path: '/article/article',
  191. name: '文章管理',
  192. icon: 'iconfont iconwenzhang',
  193. component: () => import('./views/Home.vue'),
  194. show: 0,
  195. isLeaf: 1,
  196. children: [{
  197. path: '/article/article',
  198. component: () => import('./views/article/Article.vue'),
  199. name: '文章管理'
  200. },
  201. {
  202. path: '/article/article/add',
  203. component: () => import('./views/article/AddArticle.vue'),
  204. name: '新增文章'
  205. },
  206. ]
  207. },
  208. {
  209. path: '/conference/conference',
  210. name: '会议管理',
  211. icon: 'iconfont iconhuiyizichan',
  212. component: () => import('./views/Home.vue'),
  213. show: 0,
  214. isLeaf: 1,
  215. children: [{
  216. path: '/conference/conference',
  217. component: () => import('./views/conference/Manage.vue'),
  218. name: '会议管理'
  219. },
  220. {
  221. path: '/conference/conference/add',
  222. component: () => import('./views/conference/AddConference.vue'),
  223. name: '新增会议'
  224. },
  225. ]
  226. },
  227. {
  228. path: '/conference/signup',
  229. name: '报名管理',
  230. icon: 'iconfont iconbaoming-08',
  231. component: () => import('./views/Home.vue'),
  232. show: 0,
  233. isLeaf: 1,
  234. children: [{
  235. path: '/conference/signup',
  236. component: () => import('./views/conference/Apply.vue'),
  237. name: '报名管理'
  238. }, ]
  239. },
  240. {
  241. path: '/conference/checker',
  242. name: '核销员管理',
  243. icon: 'iconfont iconhexiao',
  244. component: () => import('./views/Home.vue'),
  245. show: 0,
  246. isLeaf: 1,
  247. children: [{
  248. path: '/conference/checker',
  249. component: () => import('./views/conference/Checker.vue'),
  250. name: '核销员管理'
  251. }, ]
  252. },
  253. {
  254. path: '/conference/hotel',
  255. name: '酒店管理',
  256. icon: 'iconfont icondanwei3',
  257. component: () => import('./views/Home.vue'),
  258. show: 0,
  259. isLeaf: 1,
  260. children: [{
  261. path: '/conference/hotel',
  262. component: () => import('./views/conference/Hotel.vue'),
  263. name: '酒店管理'
  264. }, ],
  265. },
  266. {
  267. path: '/conference/analyse',
  268. name: '与会人员统计',
  269. icon: 'iconfont icondanwei3',
  270. component: () => import('./views/Home.vue'),
  271. show: 0,
  272. isLeaf: 1,
  273. children: [{
  274. path: '/conference/analyse',
  275. component: () => import('./views/conference/ApplyAnalyse.vue'),
  276. name: '与会人员统计'
  277. }, ],
  278. },
  279. // {
  280. // path: '/message/survey',
  281. // name: '调查问卷',
  282. // icon: 'el-icon-chat-dot-square',
  283. // component: () => import('./views/Home.vue'),
  284. // show: 0,
  285. // isLeaf: 1,
  286. // children: [{
  287. // path: '/message/survey',
  288. // component: () => import('./views/message/investigation.vue'),
  289. // name: '调查问卷'
  290. // }, ]
  291. // },
  292. {
  293. path: '/message/template',
  294. name: '问卷模板',
  295. icon: 'iconfont iconwenjuanmoban-',
  296. component: () => import('./views/Home.vue'),
  297. show: 0,
  298. isLeaf: 1,
  299. children: [{
  300. path: '/message/template',
  301. component: () => import('./views/message/templateList.vue'),
  302. name: '问卷模板'
  303. }, {
  304. path: '/message/template/add',
  305. component: () => import('./views/message/modelForm.vue'),
  306. name: '新增表单'
  307. }]
  308. },
  309. {
  310. path: '/system/account',
  311. name: '账号管理',
  312. icon: 'iconfont iconzhanghaoguanli1',
  313. component: () => import('./views/Home.vue'),
  314. show: 0,
  315. isLeaf: 1,
  316. children: [{
  317. path: '/system/account',
  318. component: () => import('./views/system/Account.vue'),
  319. name: '消息管理'
  320. }, ]
  321. },
  322. {
  323. path: '/system/role',
  324. name: '角色管理',
  325. icon: 'iconfont iconzhanghaoguanli',
  326. component: () => import('./views/Home.vue'),
  327. show: 0,
  328. isLeaf: 1,
  329. children: [{
  330. path: '/system/role',
  331. component: () => import('./views/system/Role.vue'),
  332. name: '角色管理'
  333. }, ]
  334. },
  335. {
  336. path: '/system/hotword',
  337. name: '热词',
  338. icon: 'iconfont iconrecigundongqiu',
  339. component: () => import('./views/Home.vue'),
  340. show: 0,
  341. isLeaf: 1,
  342. children: [{
  343. path: '/system/hotword',
  344. component: () => import('./views/system/HotWord.vue'),
  345. name: '热词'
  346. }, ]
  347. },
  348. {
  349. path: '/system/coldword',
  350. name: '冷词',
  351. icon: 'iconfont iconminganciku1',
  352. component: () => import('./views/Home.vue'),
  353. show: 0,
  354. isLeaf: 1,
  355. children: [{
  356. path: '/system/coldword',
  357. component: () => import('./views/system/ColdWord.vue'),
  358. name: '冷词'
  359. }, ]
  360. },
  361. {
  362. path: '/system/senword',
  363. name: '敏感词',
  364. icon: 'iconfont iconminganci',
  365. component: () => import('./views/Home.vue'),
  366. show: 0,
  367. isLeaf: 1,
  368. children: [{
  369. path: '/system/senword',
  370. component: () => import('./views/system/SenWord.vue'),
  371. name: '敏感词'
  372. }, ]
  373. },
  374. {
  375. path: '/system/banners',
  376. name: 'Banner图',
  377. icon: 'iconfont icontupian',
  378. component: () => import('./views/Home.vue'),
  379. show: 0,
  380. isLeaf: 1,
  381. children: [{
  382. path: '/system/banners',
  383. component: () => import('./views/system/Banners.vue'),
  384. name: 'Banner图'
  385. },]
  386. },
  387. {
  388. path: '/system/oplog',
  389. name: '日志',
  390. icon: 'iconfont iconrizhi',
  391. component: () => import('./views/Home.vue'),
  392. show: 0,
  393. isLeaf: 1,
  394. children: [{
  395. path: '/system/oplog',
  396. component: () => import('./views/system/Oplog.vue'),
  397. name: '日志'
  398. }, ]
  399. },
  400. ]
  401. })