router.js 11 KB

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