router.js 9.7 KB

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