index.js 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. Vue.use(Router)
  4. /* Layout */
  5. import Layout from '@/layout'
  6. /* Router Modules */
  7. import componentsRouter from './modules/components'
  8. import chartsRouter from './modules/charts'
  9. import tableRouter from './modules/table'
  10. import nestedRouter from './modules/nested'
  11. import dangyunlong from './modules/dangyunlong'
  12. import zx from './modules/zx'
  13. /**
  14. * Note: sub-menu only appear when route children.length >= 1
  15. * Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
  16. *
  17. * hidden: true if set true, item will not show in the sidebar(default is false)
  18. * alwaysShow: true if set true, will always show the root menu
  19. * if not set alwaysShow, when item has more than one children route,
  20. * it will becomes nested mode, otherwise not show the root menu
  21. * redirect: noRedirect if set noRedirect will no redirect in the breadcrumb
  22. * name:'router-name' the name is used by <keep-alive> (must set!!!)
  23. * meta : {
  24. roles: ['admin','editor'] control the page roles (you can set multiple roles)
  25. title: 'title' the name show in sidebar and breadcrumb (recommend set)
  26. icon: 'svg-name'/'el-icon-x' the icon show in the sidebar
  27. noCache: true if set true, the page will no be cached(default is false)
  28. affix: true if set true, the tag will affix in the tags-view
  29. breadcrumb: false if set false, the item will hidden in breadcrumb(default is true)
  30. activeMenu: '/example/list' if set path, the sidebar will highlight the path you set
  31. }
  32. */
  33. /**
  34. * constantRoutes
  35. * a base page that does not have permission requirements
  36. * all roles can be accessed
  37. */
  38. export const constantRoutes = [
  39. ...dangyunlong,
  40. ...zx,
  41. {
  42. path: '/redirect',
  43. component: Layout,
  44. hidden: true,
  45. children: [
  46. {
  47. path: '/redirect/:path(.*)',
  48. component: () => import('@/views/redirect/index')
  49. }
  50. ]
  51. },
  52. {
  53. path: '/file',
  54. component: () => import('@/views/file/index'),
  55. hidden: true
  56. },
  57. {
  58. path: '/login',
  59. component: () => import('@/views/login/index'),
  60. hidden: true
  61. },
  62. {
  63. path: '/auth-redirect',
  64. component: () => import('@/views/login/auth-redirect'),
  65. hidden: true
  66. },
  67. {
  68. path: '/no-permission',
  69. component: () => import('@/views/login/no-permission'),
  70. hidden: true
  71. },
  72. {
  73. path: '/404',
  74. component: () => import('@/views/error-page/404'),
  75. hidden: true
  76. },
  77. {
  78. path: '/401',
  79. component: () => import('@/views/error-page/401'),
  80. hidden: true
  81. },
  82. {
  83. path: '/',
  84. component: Layout,
  85. redirect: '/dashboard', //访问/的时候会跳转到dashboard
  86. children: [
  87. {
  88. path: 'dashboard',
  89. component: () => import('@/views/dashboard/index'),
  90. name: '首页',
  91. meta: {
  92. title: '首页',
  93. icon: require('@/assets/public/sidebar/default/index.png'),
  94. selected_icon: require('@/assets/public/sidebar/select/index.png'),
  95. affix: true,
  96. }
  97. }
  98. ]
  99. },
  100. //增加新的路由 站点列表
  101. //注意必须含有component:Layout项目否则会导致页面找不到模板
  102. //必须含有children中的path且两个path必须一致
  103. {
  104. path: '/website',
  105. component: Layout,
  106. children: [
  107. {
  108. name: '', //直接就是根目录所以为空
  109. path: '',
  110. component: () => import('@/views/website/WebsiteList'),
  111. meta: {
  112. title: '网站信息', // 设置菜单和面包屑显示的标题
  113. hidden: true, // 不在侧边菜单显示
  114. breadcrumb: true // 强制在面包屑中显示
  115. }
  116. }
  117. ]
  118. },
  119. {
  120. path: '/addWebsite',
  121. component: Layout,
  122. children: [
  123. {
  124. name: '', //直接就是根目录所以为空
  125. path: '',
  126. component: () => import('@/views/website/addWebsite'),
  127. meta: {
  128. title: '添加网站', // 设置菜单和面包屑显示的标题
  129. hidden: true, // 不在侧边菜单显示
  130. breadcrumb: true // 强制在面包屑中显示
  131. }
  132. }
  133. ]
  134. },
  135. {
  136. path: '/categoryList',
  137. component: Layout,
  138. children: [
  139. {
  140. name: '',
  141. path: '',
  142. component: () => import('@/views/website/categoryList'),
  143. meta: {
  144. title: '栏目名称',
  145. hidden: true,
  146. breadcrumb: true
  147. }
  148. }
  149. ]
  150. },
  151. {//仿栏目名称
  152. path: '/jobCategory',
  153. component: Layout,
  154. children: [
  155. {
  156. name: '',
  157. path: '',
  158. component: () => import('@/views/category/jobCategory'),
  159. meta: {
  160. title: '职位分类',
  161. hidden: true,
  162. breadcrumb: true
  163. }
  164. }
  165. ]
  166. },
  167. {
  168. path: '/websiteColumn',
  169. component: Layout,
  170. children: [
  171. {
  172. name: '',
  173. path: '',
  174. component: () => import('@/views/website/websiteColumn'),
  175. meta: {
  176. title: '栏目分配',
  177. hidden: true,
  178. breadcrumb: true
  179. }
  180. }
  181. ]
  182. },
  183. {
  184. path: '/editNavigation',
  185. component: Layout,
  186. children: [
  187. {
  188. name: '',
  189. path: '',
  190. component: () => import('@/views/website/editNavigation'),
  191. meta: {
  192. title: '栏目详情',
  193. hidden: true,
  194. breadcrumb: true
  195. }
  196. }
  197. ]
  198. },
  199. {
  200. path: '/articleList',
  201. component: Layout,
  202. children: [
  203. {
  204. name: '',
  205. path: '',
  206. component: () => import('@/views/news/NewList'),
  207. meta: {
  208. title: '资讯列表',
  209. hidden: true,
  210. breadcrumb: true
  211. }
  212. }
  213. ]
  214. },
  215. {
  216. path: '/examine',
  217. component: Layout,
  218. children: [
  219. {
  220. name: '',
  221. path: '',
  222. component: () => import('@/views/news/examine'),
  223. meta: {
  224. title: '资讯待审核列表',
  225. hidden: true,
  226. breadcrumb: true
  227. }
  228. }
  229. ]
  230. },
  231. {
  232. path: '/creatNews',
  233. component: Layout,
  234. children: [
  235. {
  236. name: '',
  237. path: '',
  238. component: () => import('@/views/news/creatNews'),
  239. meta: {
  240. title: '添加资讯',
  241. hidden: true,
  242. breadcrumb: true
  243. }
  244. }
  245. ]
  246. },
  247. {
  248. path: '/menuList',
  249. component: Layout,
  250. children: [
  251. {
  252. name: '',
  253. path: '',
  254. component: () => import('@/views/menu/menulist'),
  255. meta: {
  256. title: '菜单列表',
  257. hidden: true,
  258. breadcrumb: true
  259. }
  260. }
  261. ]
  262. },
  263. {
  264. path: '/complaintList',
  265. component: Layout,
  266. children: [
  267. {
  268. name: '',
  269. path: '',
  270. component: () => import('@/views/complaint/complaintList'),
  271. meta: {
  272. title: '投诉管理',
  273. hidden: true,
  274. breadcrumb: true
  275. }
  276. }
  277. ]
  278. },
  279. {
  280. path: '/roleList',
  281. component: Layout,
  282. children: [
  283. {
  284. name: '',
  285. path: '',
  286. component: () => import('@/views/role/roleList'),
  287. meta: {
  288. title: '角色管理',
  289. hidden: true,
  290. breadcrumb: true
  291. }
  292. }
  293. ]
  294. },
  295. {
  296. path: '/userList',
  297. component: Layout,
  298. children: [
  299. {
  300. name: '',
  301. path: '',
  302. component: () => import('@/views/role/userList'),
  303. meta: {
  304. title: '用户管理',
  305. hidden: true,
  306. breadcrumb: true
  307. }
  308. }
  309. ]
  310. },
  311. {
  312. path: '/creatUser',
  313. component: Layout,
  314. children: [
  315. {
  316. name: '',
  317. path: '',
  318. component: () => import('@/views/role/creatUser'),
  319. meta: {
  320. title: '添加用户',
  321. hidden: true,
  322. breadcrumb: true
  323. }
  324. }
  325. ]
  326. },
  327. {
  328. path: '/department',
  329. component: Layout,
  330. children: [
  331. {
  332. name: '',
  333. path: '',
  334. component: () => import('@/views/menu/department'),
  335. meta: {
  336. title: '行政职能',
  337. hidden: true,
  338. breadcrumb: true
  339. }
  340. }
  341. ]
  342. },
  343. {
  344. path: '/positionLevel',
  345. component: Layout,
  346. children: [
  347. {
  348. name: '',
  349. path: '',
  350. component: () => import('@/views/menu/positionLevel'),
  351. meta: {
  352. title: '行政级别',
  353. hidden: true,
  354. breadcrumb: true
  355. }
  356. }
  357. ]
  358. },
  359. {
  360. path: '/routerList',
  361. component: Layout,
  362. children: [
  363. {
  364. name: '',
  365. path: '',
  366. component: () => import('@/views/router/routerList'),
  367. meta: {
  368. title: '路由白名单',
  369. hidden: true,
  370. breadcrumb: true
  371. }
  372. }
  373. ]
  374. },
  375. {
  376. path: '/hall',
  377. component: Layout,
  378. children: [
  379. {
  380. name: '',
  381. path: '',
  382. component: () => import('@/views/chat/hall'),
  383. meta: {
  384. title: '聊天',
  385. hidden: true,
  386. breadcrumb: true
  387. }
  388. }
  389. ]
  390. },
  391. {
  392. path: '/creatWebsite',
  393. component: Layout,
  394. children: [
  395. {
  396. name: '',
  397. path: '',
  398. component: () => import('@/views/website/creatWebsite'),
  399. meta: {
  400. title: '搭建网站',
  401. hidden: true,
  402. breadcrumb: true
  403. }
  404. }
  405. ]
  406. },
  407. {
  408. path: '/contacts',
  409. component: Layout,
  410. children: [
  411. {
  412. name: '',
  413. path: '',
  414. component: () => import('@/views/chat/contacts'),
  415. meta: {
  416. title: '通讯录',
  417. hidden: true,
  418. breadcrumb: true
  419. }
  420. }
  421. ]
  422. },
  423. {
  424. path: '/webCrawler',
  425. component: Layout,
  426. children: [
  427. {
  428. name: '',
  429. path: '',
  430. component: () => import('@/views/crawler/webCrawler'),
  431. meta: {
  432. title: '建立网站',
  433. hidden: true,
  434. breadcrumb: true
  435. }
  436. }
  437. ]
  438. },
  439. // ----fr-课题分类
  440. {
  441. path: '/topicType',
  442. component: Layout,
  443. children: [
  444. {
  445. name: '',
  446. path: '',
  447. component: () => import('@/views/chat/topicType'),
  448. meta: {
  449. title: '课题分类',
  450. hidden: true,
  451. breadcrumb: true
  452. }
  453. }
  454. ]
  455. },
  456. {
  457. path: '/surveyList',
  458. component: Layout,
  459. children: [
  460. {
  461. name: '',
  462. path: '',
  463. component: () => import('@/views/news/surveyList'),
  464. meta: {
  465. title: '投票列表',
  466. hidden: true,
  467. breadcrumb: true
  468. }
  469. }
  470. ]
  471. },
  472. ,
  473. {
  474. path: '/jobRecruitingList',
  475. component: Layout,
  476. children: [
  477. {
  478. name: '',
  479. path: '',
  480. component: () => import('@/views/job/jobRecruitingList'),
  481. meta: {
  482. title: '招聘列表',
  483. hidden: true,
  484. breadcrumb: true
  485. }
  486. }
  487. ]
  488. },
  489. {
  490. path: '/checkjobRecruitingList',
  491. component: Layout,
  492. children: [
  493. {
  494. name: '',
  495. path: '',
  496. component: () => import('@/views/job/checkjobRecruitingList'),
  497. meta: {
  498. title: '招聘待审核列表',
  499. hidden: true,
  500. breadcrumb: true
  501. }
  502. }
  503. ]
  504. },
  505. {
  506. path: '/jobResumeList',
  507. component: Layout,
  508. children: [
  509. {
  510. name: '',
  511. path: '',
  512. component: () => import('@/views/job/jobResumeList'),
  513. meta: {
  514. title: '我的沟通',
  515. hidden: true,
  516. breadcrumb: true
  517. }
  518. }
  519. ]
  520. },
  521. {
  522. path: '/creatJob',
  523. component: Layout,
  524. children: [
  525. {
  526. name: '',
  527. path: '',
  528. component: () => import('@/views/job/creatJob'),
  529. meta: {
  530. title: '发布职位',
  531. hidden: true,
  532. breadcrumb: true
  533. }
  534. }
  535. ]
  536. },
  537. // -----------fr---------
  538. // ----------liuj------------
  539. {
  540. path: '/goodList',
  541. component: Layout,
  542. children: [
  543. {
  544. name: '',
  545. path: '',
  546. component: () => import('@/views/news/GoodList'),
  547. meta: {
  548. title: '商品列表',
  549. hidden: true,
  550. breadcrumb: true
  551. }
  552. }
  553. ]
  554. },
  555. {
  556. path: '/goodListApply',
  557. component: Layout,
  558. children: [
  559. {
  560. name: '',
  561. path: '',
  562. component: () => import('@/views/news/GoodListApply'),
  563. meta: {
  564. title: '商品待审核列表',
  565. hidden: true,
  566. breadcrumb: true
  567. }
  568. }
  569. ]
  570. },
  571. {
  572. path: '/addGood',
  573. component: Layout,
  574. children: [
  575. {
  576. name: '',
  577. path: '',
  578. component: () => import('@/views/news/addGood'),
  579. meta: {
  580. title: '添加商品',
  581. hidden: true,
  582. breadcrumb: true
  583. }
  584. }
  585. ]
  586. },
  587. {
  588. path: '/jobHuntingList',
  589. component: Layout,
  590. children: [
  591. {
  592. name: '',
  593. path: '',
  594. component: () => import('@/views/news/jobHuntingList'),
  595. meta: {
  596. title: '求职列表',
  597. hidden: true,
  598. breadcrumb: true
  599. }
  600. }
  601. ]
  602. },
  603. {
  604. path: '/jobHuntingListApply',
  605. component: Layout,
  606. children: [
  607. {
  608. name: '',
  609. path: '',
  610. component: () => import('@/views/news/jobHuntingListApply'),
  611. meta: {
  612. title: '求职待审核列表',
  613. hidden: true,
  614. breadcrumb: true
  615. }
  616. }
  617. ]
  618. },
  619. {
  620. path: '/addJobHunting',
  621. component: Layout,
  622. children: [
  623. {
  624. name: '',
  625. path: '',
  626. component: () => import('@/views/news/addJobHunting'),
  627. meta: {
  628. title: '添加求职',
  629. hidden: true,
  630. breadcrumb: true
  631. }
  632. }
  633. ]
  634. },
  635. {
  636. path: '/addNotice',
  637. component: Layout,
  638. children: [
  639. {
  640. name: '',
  641. path: '',
  642. component: () => import('@/views/news/addNotice'),
  643. meta: {
  644. title: '添加通知',
  645. hidden: true,
  646. breadcrumb: true
  647. }
  648. }
  649. ]
  650. },
  651. {
  652. path: '/noticeList',
  653. component: Layout,
  654. children: [
  655. {
  656. name: '',
  657. path: '',
  658. component: () => import('@/views/news/noticeList'),
  659. meta: {
  660. title: '通知列表',
  661. hidden: true,
  662. breadcrumb: true
  663. }
  664. }
  665. ]
  666. },
  667. {
  668. path: '/noticeListApply',
  669. component: Layout,
  670. children: [
  671. {
  672. name: '',
  673. path: '',
  674. component: () => import('@/views/news/noticeListApply'),
  675. meta: {
  676. title: '通知待审核列表',
  677. hidden: true,
  678. breadcrumb: true
  679. }
  680. }
  681. ]
  682. },
  683. {
  684. path: '/adminNotice',
  685. component: Layout,
  686. children: [
  687. {
  688. name: '',
  689. path: '',
  690. component: () => import('@/views/notice/adminNotice'),
  691. meta: {
  692. title: '行政通知',
  693. hidden: true,
  694. breadcrumb: true
  695. }
  696. }
  697. ]
  698. },
  699. {
  700. path: '/noticeDetail',
  701. component: Layout,
  702. children: [
  703. {
  704. name: '',
  705. path: '',
  706. component: () => import('@/views/notice/noticeDetail'),
  707. meta: {
  708. title: '通知详情',
  709. hidden: true,
  710. breadcrumb: true
  711. }
  712. }
  713. ]
  714. },
  715. {
  716. path: '/adminComplaint',
  717. component: Layout,
  718. children: [
  719. {
  720. name: '',
  721. path: '',
  722. component: () => import('@/views/notice/adminComplaint'),
  723. meta: {
  724. title: '行政投诉',
  725. hidden: true,
  726. breadcrumb: true
  727. }
  728. }
  729. ]
  730. },
  731. {
  732. path: '/complaintDetail',
  733. component: Layout,
  734. children: [
  735. {
  736. name: '',
  737. path: '',
  738. component: () => import('@/views/notice/complaintDetail'),
  739. meta: {
  740. title: '投诉详情',
  741. hidden: true,
  742. breadcrumb: true
  743. }
  744. }
  745. ]
  746. },
  747. {
  748. path: '/ncomplaintList',
  749. component: Layout,
  750. children: [
  751. {
  752. name: '',
  753. path: '',
  754. component: () => import('@/views/news/ncomplaintList'),
  755. meta: {
  756. title: '投诉列表',
  757. hidden: true,
  758. breadcrumb: true
  759. }
  760. }
  761. ]
  762. },
  763. {
  764. path: '/ncomplaintListApply',
  765. component: Layout,
  766. children: [
  767. {
  768. name: '',
  769. path: '',
  770. component: () => import('@/views/news/ncomplaintListApply'),
  771. meta: {
  772. title: '投诉待审核列表',
  773. hidden: true,
  774. breadcrumb: true
  775. }
  776. }
  777. ]
  778. },
  779. {
  780. path: '/ncomplaintListDeal',
  781. component: Layout,
  782. children: [
  783. {
  784. name: '',
  785. path: '',
  786. component: () => import('@/views/news/ncomplaintListDeal'),
  787. meta: {
  788. title: '投诉处理列表',
  789. hidden: true,
  790. breadcrumb: true
  791. }
  792. }
  793. ]
  794. },
  795. {
  796. path: '/addNcomplaint',
  797. component: Layout,
  798. children: [
  799. {
  800. name: '',
  801. path: '',
  802. component: () => import('@/views/news/addNcomplaint'),
  803. meta: {
  804. title: '添加投诉举报',
  805. hidden: true,
  806. breadcrumb: true
  807. }
  808. }
  809. ]
  810. },
  811. {
  812. path: '/addBook',
  813. component: Layout,
  814. children: [
  815. {
  816. name: '',
  817. path: '',
  818. component: () => import('@/views/news/addBook'),
  819. meta: {
  820. title: '添加书刊音像',
  821. hidden: true,
  822. breadcrumb: true
  823. }
  824. }
  825. ]
  826. },
  827. {
  828. path: '/bookList',
  829. component: Layout,
  830. children: [
  831. {
  832. name: '',
  833. path: '',
  834. component: () => import('@/views/news/bookList'),
  835. meta: {
  836. title: '书刊音像列表',
  837. hidden: true,
  838. breadcrumb: true
  839. }
  840. }
  841. ]
  842. },
  843. {
  844. path: '/bookListApply',
  845. component: Layout,
  846. children: [
  847. {
  848. name: '',
  849. path: '',
  850. component: () => import('@/views/news/bookListApply'),
  851. meta: {
  852. title: '书刊音像待审核列表',
  853. hidden: true,
  854. breadcrumb: true
  855. }
  856. }
  857. ]
  858. },
  859. {
  860. path: '/jobHuntingApplyList',
  861. component: Layout,
  862. children: [
  863. {
  864. name: '',
  865. path: '',
  866. component: () => import('@/views/news/jobHuntingApplyList'),
  867. meta: {
  868. title: '人才库',
  869. hidden: true,
  870. breadcrumb: true
  871. }
  872. }
  873. ]
  874. },
  875. {
  876. path: '/jobHuntingApplyDetil',
  877. component: Layout,
  878. children: [
  879. {
  880. name: '',
  881. path: '',
  882. component: () => import('@/views/news/jobHuntingApplyDetil'),
  883. meta: {
  884. title: '人才库',
  885. hidden: true,
  886. breadcrumb: true
  887. }
  888. }
  889. ]
  890. },
  891. {
  892. path: '/jobOpportunities',
  893. component: Layout,
  894. children: [
  895. {
  896. name: '',
  897. path: '',
  898. component: () => import('@/views/job/jobOpportunitiesList'),
  899. meta: {
  900. title: '职场机会',
  901. hidden: true,
  902. breadcrumb: true
  903. }
  904. }
  905. ]
  906. },
  907. {
  908. path: '/jobOpportunitiesDetails',
  909. component: Layout,
  910. children: [
  911. {
  912. name: '',
  913. path: '',
  914. component: () => import('@/views/job/jobOpportunitiesDetails'),
  915. meta: {
  916. title: '职场机会',
  917. hidden: true,
  918. breadcrumb: true
  919. }
  920. }
  921. ]
  922. },
  923. {
  924. path: '/myApplyList',
  925. component: Layout,
  926. children: [
  927. {
  928. name: '',
  929. path: '',
  930. component: () => import('@/views/news/myApplyList'),
  931. meta: {
  932. title: '我的申请',
  933. hidden: true,
  934. breadcrumb: true
  935. }
  936. }
  937. ]
  938. },
  939. // ----------liuj------------
  940. {
  941. path: '/topic',
  942. component: Layout,
  943. children: [
  944. {
  945. name: '',
  946. path: '',
  947. component: () => import('@/views/chat/topic'),
  948. meta: {
  949. title: '课题列表',
  950. hidden: true,
  951. breadcrumb: true
  952. }
  953. }
  954. ]
  955. },
  956. {
  957. path: '/webRule',
  958. component: Layout,
  959. children: [
  960. {
  961. name: '',
  962. path: '',
  963. component: () => import('@/views/crawler/webRule'),
  964. meta: {
  965. title: '规则列表',
  966. hidden: true,
  967. breadcrumb: true
  968. }
  969. }
  970. ]
  971. },
  972. {
  973. path: '/gather',
  974. component: Layout,
  975. children: [
  976. {
  977. name: '',
  978. path: '',
  979. component: () => import('@/views/crawler/gather'),
  980. meta: {
  981. title: '采集器',
  982. hidden: true,
  983. breadcrumb: true
  984. }
  985. }
  986. ]
  987. },
  988. {
  989. path: '/creatTopic',
  990. component: Layout,
  991. children: [
  992. {
  993. name: '',
  994. path: '',
  995. component: () => import('@/views/chat/creatTopic'),
  996. meta: {
  997. title: '编辑课题',
  998. hidden: true,
  999. breadcrumb: true
  1000. }
  1001. }
  1002. ]
  1003. },
  1004. {
  1005. path: '/webCrawlerList',
  1006. component: Layout,
  1007. children: [
  1008. {
  1009. name: '',
  1010. path: '',
  1011. component: () => import('@/views/crawler/webCrawlerList'),
  1012. meta: {
  1013. title: '采集列表',
  1014. hidden: true,
  1015. breadcrumb: true
  1016. }
  1017. }
  1018. ]
  1019. },
  1020. {
  1021. path: '/webCrawlerListEdit',
  1022. component: Layout,
  1023. children: [
  1024. {
  1025. name: '',
  1026. path: '',
  1027. component: () => import('@/views/crawler/webCrawlerListEdit'),
  1028. meta: {
  1029. title: '编辑资讯',
  1030. hidden: true,
  1031. breadcrumb: true
  1032. }
  1033. }
  1034. ]
  1035. },
  1036. {
  1037. path: '/adList',
  1038. component: Layout,
  1039. children: [
  1040. {
  1041. name: '',
  1042. path: '',
  1043. component: () => import('@/views/advertise/advertiseList.vue'),
  1044. meta: {
  1045. title: '广告列表',
  1046. hidden: true,
  1047. breadcrumb: true
  1048. }
  1049. }
  1050. ]
  1051. },
  1052. {
  1053. path: '/adPlaceList',
  1054. component: Layout,
  1055. children: [
  1056. {
  1057. name: '',
  1058. path: '',
  1059. component: () => import('@/views/advertise/adPlaceList'),
  1060. meta: {
  1061. title: '广告位管理',
  1062. hidden: true,
  1063. breadcrumb: true
  1064. }
  1065. }
  1066. ]
  1067. },
  1068. {//站点标识
  1069. path: '/websiteTag',
  1070. component: Layout,
  1071. children: [
  1072. {
  1073. name: '',
  1074. path: '',
  1075. component: () => import('@/views/website/websiteTag'),
  1076. meta: {
  1077. title: '网站分组',
  1078. hidden: true,
  1079. breadcrumb: true
  1080. }
  1081. }
  1082. ]
  1083. },
  1084. { //仿网站分组
  1085. path: '/industryCategory',
  1086. component: Layout,
  1087. children: [
  1088. {
  1089. name: '',
  1090. path: '',
  1091. component: () => import('@/views/category/industryCategory'),
  1092. meta: {
  1093. title: '行业类别',
  1094. hidden: true,
  1095. breadcrumb: true
  1096. }
  1097. }
  1098. ]
  1099. },
  1100. {
  1101. path: '/adPlaceDetail',
  1102. component: Layout,
  1103. children: [
  1104. {
  1105. name: '',
  1106. path: '',
  1107. component: () => import('@/views/advertise/adPlaceDetail'),
  1108. meta: {
  1109. title: '广告位详情',
  1110. hidden: true,
  1111. breadcrumb: true
  1112. }
  1113. }
  1114. ]
  1115. },
  1116. {
  1117. path: '/blogroll',
  1118. component: Layout,
  1119. children: [
  1120. {
  1121. name: '',
  1122. path: '',
  1123. component: () => import('@/views/website/blogroll.vue'),
  1124. meta: {
  1125. title: '友情链接',
  1126. hidden: true,
  1127. breadcrumb: true
  1128. }
  1129. }
  1130. ]
  1131. },
  1132. {
  1133. path: '/blackWordList',
  1134. component: Layout,
  1135. children: [
  1136. {
  1137. name: '',
  1138. path: '',
  1139. component: () => import('@/views/website/blackWordList.vue'),
  1140. meta: {
  1141. title: '违禁词',
  1142. hidden: true,
  1143. breadcrumb: true
  1144. }
  1145. }
  1146. ]
  1147. },
  1148. {
  1149. path: '/globalForm',
  1150. component: Layout,
  1151. children: [
  1152. {
  1153. name: '',
  1154. path: '',
  1155. component: () => import('@/views/tabbar/globalForm.vue'),
  1156. meta: {
  1157. title: '自定义表单',
  1158. hidden: true,
  1159. breadcrumb: true
  1160. }
  1161. }
  1162. ]
  1163. },
  1164. {
  1165. path: '/globalFormDetail',
  1166. component: Layout,
  1167. children: [
  1168. {
  1169. name: '',
  1170. path: '',
  1171. component: () => import('@/views/tabbar/globalFormDetail.vue'),
  1172. meta: {
  1173. title: '查看内容',
  1174. hidden: true,
  1175. breadcrumb: true
  1176. }
  1177. }
  1178. ]
  1179. },
  1180. {
  1181. path: '/globalFormFont',
  1182. component: Layout,
  1183. children: [
  1184. {
  1185. name: '',
  1186. path: '',
  1187. component: () => import('@/views/tabbar/globalFormFont.vue'),
  1188. meta: {
  1189. title: '自定义字段',
  1190. hidden: true,
  1191. breadcrumb: true
  1192. }
  1193. }
  1194. ]
  1195. },
  1196. {
  1197. path: '/tabbar',
  1198. component: Layout,
  1199. children: [
  1200. {
  1201. name: '',
  1202. path: '',
  1203. component: () => import('@/views/tabbar/tabbar.vue'),
  1204. meta: {
  1205. title: '单页',
  1206. hidden: true,
  1207. breadcrumb: true
  1208. }
  1209. }
  1210. ]
  1211. },
  1212. {
  1213. path: '/tabbarDetail',
  1214. component: Layout,
  1215. children: [
  1216. {
  1217. name: '',
  1218. path: '',
  1219. component: () => import('@/views/tabbar/tabbarDetail.vue'),
  1220. meta: {
  1221. title: '单页详情',
  1222. hidden: true,
  1223. breadcrumb: true
  1224. }
  1225. }
  1226. ]
  1227. },
  1228. {
  1229. path: '/creatTabbarDetail',
  1230. component: Layout,
  1231. children: [
  1232. {
  1233. name: '',
  1234. path: '',
  1235. component: () => import('@/views/tabbar/creatTabbarDetail.vue'),
  1236. meta: {
  1237. title: '添加单页详情',
  1238. hidden: true,
  1239. breadcrumb: true
  1240. }
  1241. }
  1242. ]
  1243. },
  1244. {
  1245. path: '/style',
  1246. component: Layout,
  1247. children: [
  1248. {
  1249. name: '',
  1250. path: '',
  1251. component: () => import('@/views/componentGallery/style.vue'),
  1252. meta: {
  1253. title: '风格',
  1254. hidden: true,
  1255. breadcrumb: true
  1256. }
  1257. }
  1258. ]
  1259. },
  1260. {
  1261. path: '/plate',
  1262. component: Layout,
  1263. children: [
  1264. {
  1265. name: '',
  1266. path: '',
  1267. component: () => import('@/views/componentGallery/plate.vue'),
  1268. meta: {
  1269. title: '通栏',
  1270. hidden: true,
  1271. breadcrumb: true
  1272. }
  1273. }
  1274. ]
  1275. },
  1276. {
  1277. path: '/module',
  1278. component: Layout,
  1279. children: [
  1280. {
  1281. name: '',
  1282. path: '',
  1283. component: () => import('@/views/componentGallery/module.vue'),
  1284. meta: {
  1285. title: '组件',
  1286. hidden: true,
  1287. breadcrumb: true
  1288. }
  1289. }
  1290. ]
  1291. },
  1292. {
  1293. path: '/imgList',
  1294. component: Layout,
  1295. children: [
  1296. {
  1297. name: '',
  1298. path: '',
  1299. component: () => import('@/views/componentGallery/imgList.vue'),
  1300. meta: {
  1301. title: '静态资源管理',
  1302. hidden: true,
  1303. breadcrumb: true
  1304. }
  1305. }
  1306. ]
  1307. },
  1308. {
  1309. path: '/newsDetail',
  1310. component: Layout,
  1311. children: [
  1312. {
  1313. name: '',
  1314. path: '',
  1315. component: () => import('@/views/news/newsDetail.vue'),
  1316. meta: {
  1317. title: '资讯详情',
  1318. hidden: true,
  1319. breadcrumb: true
  1320. }
  1321. }
  1322. ]
  1323. },
  1324. {
  1325. path: '/goodsDetail',
  1326. component: Layout,
  1327. children: [
  1328. {
  1329. name: '',
  1330. path: '',
  1331. component: () => import('@/views/news/goodsDetail.vue'),
  1332. meta: {
  1333. title: '商品详情',
  1334. hidden: true,
  1335. breadcrumb: true
  1336. }
  1337. }
  1338. ]
  1339. },
  1340. {
  1341. path: '/bookDetail',
  1342. component: Layout,
  1343. children: [
  1344. {
  1345. name: '',
  1346. path: '',
  1347. component: () => import('@/views/news/bookDetail.vue'),
  1348. meta: {
  1349. title: '书刊详情',
  1350. hidden: true,
  1351. breadcrumb: true
  1352. }
  1353. }
  1354. ]
  1355. },
  1356. {
  1357. path: '/jobDetail',
  1358. component: Layout,
  1359. children: [
  1360. {
  1361. name: '',
  1362. path: '',
  1363. component: () => import('@/views/news/jobDetail.vue'),
  1364. meta: {
  1365. title: '求职详情',
  1366. hidden: true,
  1367. breadcrumb: true
  1368. }
  1369. }
  1370. ]
  1371. },
  1372. {
  1373. path: '/jobRecruitingDetail',
  1374. component: Layout,
  1375. children: [
  1376. {
  1377. name: '',
  1378. path: '',
  1379. component: () => import('@/views/job/jobRecruitingDetail.vue'),
  1380. meta: {
  1381. title: '招聘详情',
  1382. hidden: true,
  1383. breadcrumb: true
  1384. }
  1385. }
  1386. ]
  1387. },
  1388. {
  1389. path: '/companyDetail',
  1390. component: Layout,
  1391. children: [
  1392. {
  1393. name: '',
  1394. path: '',
  1395. component: () => import('@/views/company/companyDetail.vue'),
  1396. meta: {
  1397. title: '企业详情',
  1398. hidden: true,
  1399. breadcrumb: true
  1400. }
  1401. }
  1402. ]
  1403. },
  1404. {
  1405. path: '/projectDetail',
  1406. component: Layout,
  1407. children: [
  1408. {
  1409. name: '',
  1410. path: '',
  1411. component: () => import('@/views/project/projectDetail.vue'),
  1412. meta: {
  1413. title: '项目详情',
  1414. hidden: true,
  1415. breadcrumb: true
  1416. }
  1417. }
  1418. ]
  1419. },
  1420. // {
  1421. // path: '/documentation',
  1422. // component: Layout,
  1423. // children: [
  1424. // {
  1425. // path: 'index',
  1426. // component: () => import('@/views/documentation/index'),
  1427. // name: 'Documentation',
  1428. // meta: { title: 'documentation', icon: 'documentation', affix: true }
  1429. // }
  1430. // ]
  1431. // },
  1432. // {
  1433. // path: '/guide',
  1434. // component: Layout,
  1435. // redirect: '/guide/index',
  1436. // children: [
  1437. // {
  1438. // path: 'index',
  1439. // component: () => import('@/views/guide/index'),
  1440. // name: 'Guide',
  1441. // meta: { title: 'guide', icon: 'guide', noCache: true }
  1442. // }
  1443. // ]
  1444. // },
  1445. {
  1446. path: '/profile',
  1447. component: Layout,
  1448. redirect: '/profile/index',
  1449. hidden: true,
  1450. children: [
  1451. {
  1452. path: 'index',
  1453. component: () => import('@/views/profile/index'),
  1454. name: 'Profile',
  1455. meta: {
  1456. title: '个人中心',
  1457. hidden: true,
  1458. breadcrumb: true
  1459. }
  1460. }
  1461. ]
  1462. },
  1463. // --------------企业管理fr--------------start---------
  1464. {
  1465. path: '/companyList',
  1466. component: Layout,
  1467. children: [
  1468. {
  1469. name: '',
  1470. path: '',
  1471. component: () => import('@/views/company/companyList.vue'),
  1472. meta: {
  1473. title: '企业列表',
  1474. hidden: true,
  1475. breadcrumb: true
  1476. }
  1477. }
  1478. ]
  1479. },
  1480. {
  1481. path: '/checkcompanyList',
  1482. component: Layout,
  1483. children: [
  1484. {
  1485. name: '',
  1486. path: '',
  1487. component: () => import('@/views/company/checkcompanyList.vue'),
  1488. meta: {
  1489. title: '企业待审核列表',
  1490. hidden: true,
  1491. breadcrumb: true
  1492. }
  1493. }
  1494. ]
  1495. },
  1496. {
  1497. path: '/creatCompany',
  1498. component: Layout,
  1499. children: [
  1500. {
  1501. name: '',
  1502. path: '',
  1503. component: () => import('@/views/company/creatCompany'),
  1504. meta: {
  1505. title: '添加企业',
  1506. hidden: true,
  1507. breadcrumb: true
  1508. }
  1509. }
  1510. ]
  1511. },
  1512. // --------------企业管理fr--------------end---------
  1513. // --------------项目管理fr--------------start---------
  1514. {
  1515. path: '/projectList',
  1516. component: Layout,
  1517. children: [
  1518. {
  1519. name: '',
  1520. path: '',
  1521. component: () => import('@/views/project/projectList.vue'),
  1522. meta: {
  1523. title: '项目列表',
  1524. hidden: true,
  1525. breadcrumb: true
  1526. }
  1527. }
  1528. ]
  1529. },
  1530. {
  1531. path: '/checkprojectList',
  1532. component: Layout,
  1533. children: [
  1534. {
  1535. name: '',
  1536. path: '',
  1537. component: () => import('@/views/project/checkprojectList.vue'),
  1538. meta: {
  1539. title: '项目待审核列表',
  1540. hidden: true,
  1541. breadcrumb: true
  1542. }
  1543. }
  1544. ]
  1545. },
  1546. {
  1547. path: '/creatProject',
  1548. component: Layout,
  1549. children: [
  1550. {
  1551. name: '',
  1552. path: '',
  1553. component: () => import('@/views/project/creatProject'),
  1554. meta: {
  1555. title: '添加项目',
  1556. hidden: true,
  1557. breadcrumb: true
  1558. }
  1559. }
  1560. ]
  1561. },
  1562. {
  1563. path: '/businessDistrict',
  1564. component: Layout,
  1565. children: [
  1566. {
  1567. name: '',
  1568. path: '',
  1569. component: () => import('@/views/chat/businessDistrict.vue'),
  1570. meta: {
  1571. title: '商圈',
  1572. hidden: true,
  1573. breadcrumb: true
  1574. }
  1575. }
  1576. ]
  1577. },
  1578. {
  1579. path: '/businessDistrictDetail',
  1580. component: Layout,
  1581. children: [
  1582. {
  1583. name: '',
  1584. path: '',
  1585. component: () => import('@/views/chat/businessDistrictDetail.vue'),
  1586. meta: {
  1587. title: '商圈详情',
  1588. hidden: true,
  1589. breadcrumb: true
  1590. }
  1591. }
  1592. ]
  1593. },
  1594. // --------------企业管理fr--------------end---------
  1595. // --------------通栏版式管理fr--------------start---------
  1596. {
  1597. path: '/plateStyle',
  1598. component: Layout,
  1599. children: [
  1600. {
  1601. name: '',
  1602. path: '',
  1603. component: () => import('@/views/format/plateStyle'),
  1604. meta: {
  1605. title: '通栏版式',
  1606. hidden: true,
  1607. breadcrumb: true
  1608. }
  1609. }
  1610. ]
  1611. },
  1612. {
  1613. path: '/componentPlaceList',
  1614. component: Layout,
  1615. children: [
  1616. {
  1617. name: '',
  1618. path: '',
  1619. component: () => import('@/views/format/componentPlaceList'),
  1620. meta: {
  1621. title: '组件版式列表',
  1622. hidden: true,
  1623. breadcrumb: true
  1624. }
  1625. }
  1626. ]
  1627. },
  1628. {
  1629. path: '/plateDetail',
  1630. component: Layout,
  1631. children: [
  1632. {
  1633. name: '',
  1634. path: '',
  1635. component: () => import('@/views/componentGallery/plateDetail'),
  1636. meta: {
  1637. title: '添加通栏',
  1638. hidden: true,
  1639. breadcrumb: true
  1640. }
  1641. }
  1642. ]
  1643. },
  1644. // --------------通栏版式管理fr--------------end---------
  1645. ]
  1646. /**
  1647. * asyncRoutes
  1648. * the routes that need to be dynamically loaded based on user roles
  1649. */
  1650. export const asyncRoutes = [
  1651. {
  1652. path: '/permission',
  1653. component: Layout,
  1654. redirect: '/permission/page',
  1655. alwaysShow: true, // will always show the root menu
  1656. name: 'Permission',
  1657. meta: {
  1658. title: 'permission',
  1659. icon: 'lock',
  1660. roles: ['admin', 'editor'] // you can set roles in root nav
  1661. },
  1662. children: [
  1663. {
  1664. path: 'page',
  1665. component: () => import('@/views/permission/page'),
  1666. name: 'PagePermission',
  1667. meta: {
  1668. title: 'pagePermission',
  1669. roles: ['admin'] // or you can only set roles in sub nav
  1670. }
  1671. },
  1672. {
  1673. path: 'directive',
  1674. component: () => import('@/views/permission/directive'),
  1675. name: 'DirectivePermission',
  1676. meta: {
  1677. title: 'directivePermission'
  1678. // if do not set roles, means: this page does not require permission
  1679. }
  1680. },
  1681. {
  1682. path: 'role',
  1683. component: () => import('@/views/permission/role'),
  1684. name: 'RolePermission',
  1685. meta: {
  1686. title: 'rolePermission',
  1687. roles: ['admin']
  1688. }
  1689. }
  1690. ]
  1691. },
  1692. {
  1693. path: '/icon',
  1694. component: Layout,
  1695. children: [
  1696. {
  1697. path: 'index',
  1698. component: () => import('@/views/icons/index'),
  1699. name: 'Icons',
  1700. meta: { title: 'icons', icon: 'icon', noCache: true }
  1701. }
  1702. ]
  1703. },
  1704. /** when your routing map is too long, you can split it into small modules **/
  1705. componentsRouter,
  1706. chartsRouter,
  1707. nestedRouter,
  1708. tableRouter,
  1709. {
  1710. path: '/example',
  1711. component: Layout,
  1712. redirect: '/example/list',
  1713. name: 'Example',
  1714. meta: {
  1715. title: 'example',
  1716. icon: 'el-icon-s-help'
  1717. },
  1718. children: [
  1719. {
  1720. path: 'create',
  1721. component: () => import('@/views/example/create'),
  1722. name: 'CreateArticle',
  1723. meta: { title: 'createArticle', icon: 'edit' }
  1724. },
  1725. {
  1726. path: 'edit/:id(\\d+)',
  1727. component: () => import('@/views/example/edit'),
  1728. name: 'EditArticle',
  1729. meta: { title: 'editArticle', noCache: true, activeMenu: '/example/list' },
  1730. hidden: true
  1731. },
  1732. {
  1733. path: 'list',
  1734. component: () => import('@/views/example/list'),
  1735. name: 'ArticleList',
  1736. meta: { title: 'articleList', icon: 'list' }
  1737. }
  1738. ]
  1739. },
  1740. {
  1741. path: '/tab',
  1742. component: Layout,
  1743. children: [
  1744. {
  1745. path: 'index',
  1746. component: () => import('@/views/tab/index'),
  1747. name: 'Tab',
  1748. meta: { title: 'tab', icon: 'tab' }
  1749. }
  1750. ]
  1751. },
  1752. {
  1753. path: '/error',
  1754. component: Layout,
  1755. redirect: 'noRedirect',
  1756. name: 'ErrorPages',
  1757. meta: {
  1758. title: 'errorPages',
  1759. icon: '404'
  1760. },
  1761. children: [
  1762. {
  1763. path: '401',
  1764. component: () => import('@/views/error-page/401'),
  1765. name: 'Page401',
  1766. meta: { title: 'page401', noCache: true }
  1767. },
  1768. {
  1769. path: '404',
  1770. component: () => import('@/views/error-page/404'),
  1771. name: 'Page404',
  1772. meta: { title: 'page404', noCache: true }
  1773. }
  1774. ]
  1775. },
  1776. {
  1777. path: '/error-log',
  1778. component: Layout,
  1779. children: [
  1780. {
  1781. path: 'log',
  1782. component: () => import('@/views/error-log/index'),
  1783. name: 'ErrorLog',
  1784. meta: { title: 'errorLog', icon: 'bug' }
  1785. }
  1786. ]
  1787. },
  1788. {
  1789. path: '/excel',
  1790. component: Layout,
  1791. redirect: '/excel/export-excel',
  1792. name: 'Excel',
  1793. meta: {
  1794. title: 'excel',
  1795. icon: 'excel'
  1796. },
  1797. children: [
  1798. {
  1799. path: 'export-excel',
  1800. component: () => import('@/views/excel/export-excel'),
  1801. name: 'ExportExcel',
  1802. meta: { title: 'exportExcel' }
  1803. },
  1804. {
  1805. path: 'export-selected-excel',
  1806. component: () => import('@/views/excel/select-excel'),
  1807. name: 'SelectExcel',
  1808. meta: { title: 'selectExcel' }
  1809. },
  1810. {
  1811. path: 'export-merge-header',
  1812. component: () => import('@/views/excel/merge-header'),
  1813. name: 'MergeHeader',
  1814. meta: { title: 'mergeHeader' }
  1815. },
  1816. {
  1817. path: 'upload-excel',
  1818. component: () => import('@/views/excel/upload-excel'),
  1819. name: 'UploadExcel',
  1820. meta: { title: 'uploadExcel' }
  1821. }
  1822. ]
  1823. },
  1824. {
  1825. path: '/zip',
  1826. component: Layout,
  1827. redirect: '/zip/download',
  1828. alwaysShow: true,
  1829. name: 'Zip',
  1830. meta: { title: 'zip', icon: 'zip' },
  1831. children: [
  1832. {
  1833. path: 'download',
  1834. component: () => import('@/views/zip/index'),
  1835. name: 'ExportZip',
  1836. meta: { title: 'exportZip' }
  1837. }
  1838. ]
  1839. },
  1840. {
  1841. path: '/pdf',
  1842. component: Layout,
  1843. redirect: '/pdf/index',
  1844. children: [
  1845. {
  1846. path: 'index',
  1847. component: () => import('@/views/pdf/index'),
  1848. name: 'PDF',
  1849. meta: { title: 'pdf', icon: 'pdf' }
  1850. }
  1851. ]
  1852. },
  1853. {
  1854. path: '/pdf/download',
  1855. component: () => import('@/views/pdf/download'),
  1856. hidden: true
  1857. },
  1858. {
  1859. path: '/theme',
  1860. component: Layout,
  1861. children: [
  1862. {
  1863. path: 'index',
  1864. component: () => import('@/views/theme/index'),
  1865. name: 'Theme',
  1866. meta: { title: 'theme', icon: 'theme' }
  1867. }
  1868. ]
  1869. },
  1870. {
  1871. path: '/clipboard',
  1872. component: Layout,
  1873. children: [
  1874. {
  1875. path: 'index',
  1876. component: () => import('@/views/clipboard/index'),
  1877. name: 'ClipboardDemo',
  1878. meta: { title: 'clipboardDemo', icon: 'clipboard' }
  1879. }
  1880. ]
  1881. },
  1882. {
  1883. path: '/i18n',
  1884. component: Layout,
  1885. children: [
  1886. {
  1887. path: 'index',
  1888. component: () => import('@/views/i18n-demo/index'),
  1889. name: 'I18n',
  1890. meta: { title: 'i18n', icon: 'international' }
  1891. }
  1892. ]
  1893. },
  1894. {
  1895. path: 'external-link',
  1896. component: Layout,
  1897. children: [
  1898. {
  1899. path: 'https://github.com/PanJiaChen/vue-element-admin',
  1900. meta: { title: 'externalLink', icon: 'link' }
  1901. }
  1902. ]
  1903. },
  1904. // 404 page must be placed at the end !!!
  1905. { path: '*', redirect: '/404', hidden: true }
  1906. ]
  1907. const createRouter = () => new Router({
  1908. // mode: 'history', // require service support
  1909. scrollBehavior: () => ({ y: 0 }),
  1910. routes: constantRoutes
  1911. })
  1912. const router = createRouter()
  1913. // Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
  1914. export function resetRouter() {
  1915. const newRouter = createRouter()
  1916. router.matcher = newRouter.matcher // reset router
  1917. }
  1918. export default router