routers.ts 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309
  1. import { resultSuccess } from '../_util';
  2. const list = [
  3. {
  4. path: '/dashboard',
  5. name: 'dashboard',
  6. component: 'LAYOUT',
  7. redirect: '/dashboard/console',
  8. meta: {
  9. icon: 'DashboardOutlined',
  10. title: 'Dashboard',
  11. noCache: false,
  12. hidden: false,
  13. isFrame: '1',
  14. status: '0',
  15. isRoot: false,
  16. alwaysShow: false,
  17. },
  18. children: [
  19. {
  20. path: 'workplace',
  21. name: 'dashboard_workplace',
  22. component: '/dashboard/workplace/workplace',
  23. meta: {
  24. title: '工作台',
  25. noCache: false,
  26. hidden: false,
  27. isFrame: '1',
  28. status: '0',
  29. isRoot: false,
  30. alwaysShow: false,
  31. },
  32. },
  33. {
  34. path: 'console',
  35. name: 'dashboard_console',
  36. component: '/dashboard/console/console',
  37. meta: {
  38. title: '主控台',
  39. noCache: false,
  40. hidden: false,
  41. isFrame: '1',
  42. status: '0',
  43. isRoot: false,
  44. alwaysShow: false,
  45. },
  46. },
  47. {
  48. path: 'monitor',
  49. name: 'dashboard_monitor',
  50. component: '/dashboard/monitor/monitor',
  51. meta: {
  52. icon: '',
  53. title: '监控页',
  54. noCache: false,
  55. hidden: false,
  56. query: '',
  57. isFrame: '1',
  58. status: '0',
  59. isRoot: false,
  60. alwaysShow: true,
  61. },
  62. },
  63. ],
  64. },
  65. {
  66. path: '/map-config',
  67. name: 'map_config',
  68. component: 'LAYOUT',
  69. redirect: '/map-config/mini-map',
  70. meta: {
  71. icon: 'PictureOutlined',
  72. title: '地图配置',
  73. noCache: false,
  74. hidden: false,
  75. isFrame: '1',
  76. status: '0',
  77. isRoot: false,
  78. alwaysShow: false,
  79. },
  80. children: [
  81. {
  82. path: 'mini-map',
  83. name: 'mini_map',
  84. component: '/map-config/mini-map/MiniMapConfig',
  85. meta: {
  86. title: '自定义地图',
  87. noCache: false,
  88. hidden: false,
  89. isFrame: '1',
  90. status: '0',
  91. isRoot: false,
  92. alwaysShow: false,
  93. },
  94. },
  95. ],
  96. },
  97. {
  98. path: '/auth',
  99. name: 'auth',
  100. component: 'LAYOUT',
  101. meta: {
  102. icon: 'SafetyOutlined',
  103. title: '权限管理',
  104. noCache: false,
  105. hidden: false,
  106. query: '',
  107. isFrame: '1',
  108. status: '0',
  109. isRoot: false,
  110. alwaysShow: false,
  111. },
  112. children: [
  113. {
  114. path: 'user',
  115. name: 'system_user',
  116. component: '/system/user/user',
  117. redirect: '',
  118. meta: {
  119. title: '用户管理',
  120. noCache: false,
  121. hidden: false,
  122. isFrame: '1',
  123. status: '0',
  124. isRoot: false,
  125. alwaysShow: false,
  126. },
  127. },
  128. {
  129. path: 'role',
  130. name: 'system_role',
  131. component: '/system/role/role',
  132. meta: {
  133. title: '角色管理',
  134. noCache: false,
  135. hidden: false,
  136. isFrame: '1',
  137. status: '0',
  138. isRoot: false,
  139. alwaysShow: false,
  140. },
  141. },
  142. {
  143. path: 'dept',
  144. name: 'dept',
  145. component: '/auth/dept/dept',
  146. meta: {
  147. title: '部门管理',
  148. noCache: false,
  149. hidden: false,
  150. isFrame: '1',
  151. status: '0',
  152. isRoot: false,
  153. alwaysShow: true,
  154. },
  155. },
  156. {
  157. path: 'post',
  158. name: 'post',
  159. component: '/auth/post/post',
  160. meta: {
  161. title: '岗位管理',
  162. noCache: false,
  163. hidden: false,
  164. isFrame: '1',
  165. status: '0',
  166. isRoot: false,
  167. alwaysShow: true,
  168. },
  169. },
  170. ],
  171. },
  172. {
  173. path: '/system',
  174. name: 'system',
  175. component: 'LAYOUT',
  176. redirect: '/system/menu',
  177. meta: {
  178. icon: 'OptionsSharp',
  179. title: '系统管理',
  180. noCache: false,
  181. hidden: false,
  182. isFrame: '1',
  183. status: '0',
  184. isRoot: false,
  185. alwaysShow: false,
  186. },
  187. children: [
  188. {
  189. path: 'menu',
  190. name: 'system_menu',
  191. component: '/system/menu/menu',
  192. redirect: '',
  193. meta: {
  194. title: '菜单管理',
  195. noCache: false,
  196. hidden: false,
  197. isFrame: '1',
  198. status: '0',
  199. isRoot: false,
  200. alwaysShow: false,
  201. },
  202. },
  203. {
  204. path: 'dictionary',
  205. name: 'system_dictionary',
  206. component: '/system/dictionary/dictionary',
  207. meta: {
  208. title: '字典管理',
  209. noCache: false,
  210. hidden: false,
  211. isFrame: '1',
  212. status: '0',
  213. isRoot: false,
  214. alwaysShow: false,
  215. },
  216. },
  217. {
  218. path: 'logs',
  219. name: 'system_logs',
  220. component: 'ParentLayout',
  221. meta: {
  222. title: '日志管理',
  223. noCache: false,
  224. hidden: false,
  225. isFrame: '1',
  226. status: '0',
  227. isRoot: false,
  228. alwaysShow: false,
  229. },
  230. },
  231. {
  232. path: 'region',
  233. name: 'system_region',
  234. component: 'ParentLayout',
  235. redirect: '',
  236. meta: {
  237. title: '区域管理',
  238. noCache: false,
  239. hidden: false,
  240. isFrame: '1',
  241. status: '0',
  242. isRoot: false,
  243. alwaysShow: true,
  244. },
  245. children: [
  246. {
  247. path: 'list',
  248. name: 'system_region_list',
  249. component: '/system/region/region',
  250. meta: {
  251. title: '区域管理',
  252. noCache: false,
  253. hidden: false,
  254. isFrame: '1',
  255. status: '0',
  256. isRoot: false,
  257. alwaysShow: false,
  258. },
  259. },
  260. ],
  261. },
  262. {
  263. path: 'config',
  264. name: 'system_config',
  265. component: 'ParentLayout',
  266. meta: {
  267. title: '配置管理',
  268. noCache: false,
  269. hidden: false,
  270. isFrame: '1',
  271. status: '0',
  272. isRoot: false,
  273. alwaysShow: true,
  274. },
  275. children: [
  276. {
  277. path: 'list',
  278. name: 'system_config_list',
  279. component: '/system/config/list',
  280. meta: {
  281. icon: '',
  282. title: '配置管理',
  283. noCache: false,
  284. hidden: false,
  285. query: '',
  286. isFrame: '1',
  287. status: '0',
  288. isRoot: false,
  289. alwaysShow: false,
  290. },
  291. },
  292. ],
  293. },
  294. {
  295. path: '/system/api',
  296. name: 'https://api-tenant.naiveadmin.com/swagger-ui/#/',
  297. component: '1',
  298. meta: {
  299. icon: '',
  300. title: '系统接口',
  301. noCache: false,
  302. hidden: false,
  303. query: '',
  304. isFrame: '1',
  305. frameSrc: '',
  306. status: '0',
  307. isRoot: false,
  308. alwaysShow: false,
  309. },
  310. },
  311. ],
  312. },
  313. {
  314. path: '/list',
  315. name: 'List',
  316. component: 'LAYOUT',
  317. redirect: '/list/basic-list',
  318. meta: {
  319. icon: 'TableOutlined',
  320. title: '列表页面',
  321. noCache: false,
  322. hidden: false,
  323. query: '',
  324. isFrame: '1',
  325. status: '0',
  326. isRoot: false,
  327. alwaysShow: true,
  328. },
  329. children: [
  330. {
  331. path: 'basic-info/:id?',
  332. name: 'BasicInfo',
  333. component: '/list/basicList/info',
  334. meta: {
  335. icon: '',
  336. title: '基础详情',
  337. noCache: false,
  338. hidden: true,
  339. query: '',
  340. isFrame: '1',
  341. status: '0',
  342. isRoot: false,
  343. alwaysShow: true,
  344. },
  345. },
  346. {
  347. path: 'basic-list',
  348. name: 'basic-list',
  349. component: '/list/basicList/index',
  350. meta: {
  351. icon: '',
  352. title: '基础列表',
  353. noCache: false,
  354. hidden: false,
  355. query: '',
  356. isFrame: '1',
  357. status: '0',
  358. isRoot: false,
  359. alwaysShow: true,
  360. },
  361. },
  362. ],
  363. },
  364. {
  365. path: '/exception',
  366. name: 'Exception',
  367. component: 'LAYOUT',
  368. redirect: '/exception/403',
  369. meta: {
  370. icon: 'ExclamationCircleOutlined',
  371. title: '异常页面',
  372. noCache: false,
  373. hidden: false,
  374. query: '',
  375. isFrame: '1',
  376. status: '0',
  377. isRoot: false,
  378. alwaysShow: false,
  379. },
  380. children: [
  381. {
  382. path: '403',
  383. name: 'exception-403',
  384. component: '/exception/403',
  385. meta: {
  386. icon: '',
  387. title: '403',
  388. noCache: false,
  389. hidden: false,
  390. query: '',
  391. isFrame: '1',
  392. status: '0',
  393. isRoot: false,
  394. alwaysShow: true,
  395. },
  396. },
  397. ],
  398. },
  399. {
  400. path: '/form',
  401. name: 'Form',
  402. component: 'LAYOUT',
  403. redirect: '/form/basic-form',
  404. meta: {
  405. icon: 'ProfileOutlined',
  406. title: '表单页面',
  407. noCache: false,
  408. hidden: false,
  409. query: '',
  410. isFrame: '1',
  411. status: '0',
  412. isRoot: false,
  413. alwaysShow: true,
  414. },
  415. children: [
  416. {
  417. path: 'basic-form',
  418. name: 'BasicForm',
  419. component: '/form/basicForm/index',
  420. meta: {
  421. icon: '',
  422. title: '基础表单',
  423. noCache: false,
  424. hidden: false,
  425. query: '',
  426. isFrame: '1',
  427. status: '0',
  428. isRoot: false,
  429. alwaysShow: true,
  430. },
  431. },
  432. {
  433. path: 'step-form',
  434. name: 'form-step-form',
  435. component: '/form/stepForm/stepForm',
  436. meta: {
  437. icon: '',
  438. title: '分步表单',
  439. noCache: false,
  440. hidden: false,
  441. query: '',
  442. isFrame: '1',
  443. status: '0',
  444. isRoot: false,
  445. alwaysShow: true,
  446. },
  447. },
  448. {
  449. path: 'advanced-form',
  450. name: 'form-advanced-form',
  451. component: '/form/advancedForm/advancedForm.',
  452. meta: {
  453. icon: '',
  454. title: '高级表单',
  455. noCache: false,
  456. hidden: false,
  457. query: '',
  458. isFrame: '1',
  459. status: '0',
  460. isRoot: false,
  461. alwaysShow: true,
  462. },
  463. },
  464. {
  465. path: 'detail',
  466. name: 'form-detail',
  467. component: '/form/detail/index',
  468. meta: {
  469. icon: '',
  470. title: '表单详情',
  471. noCache: false,
  472. hidden: false,
  473. query: '',
  474. isFrame: '1',
  475. status: '0',
  476. isRoot: false,
  477. alwaysShow: true,
  478. },
  479. },
  480. ],
  481. },
  482. {
  483. path: '/setting',
  484. name: 'Setting',
  485. component: 'LAYOUT',
  486. redirect: '/setting/account',
  487. meta: {
  488. icon: 'SettingOutlined',
  489. title: '设置页面',
  490. noCache: false,
  491. hidden: false,
  492. query: '',
  493. isFrame: '1',
  494. status: '0',
  495. isRoot: false,
  496. alwaysShow: true,
  497. },
  498. children: [
  499. {
  500. path: 'account',
  501. name: 'setting-account',
  502. component: '/setting/account/account',
  503. meta: {
  504. icon: '',
  505. title: '个人设置',
  506. noCache: false,
  507. hidden: false,
  508. query: '',
  509. isFrame: '1',
  510. status: '0',
  511. isRoot: false,
  512. alwaysShow: true,
  513. },
  514. },
  515. {
  516. path: 'system',
  517. name: 'setting-system',
  518. component: '/setting/system/system',
  519. meta: {
  520. icon: '',
  521. title: '系统设置',
  522. noCache: false,
  523. hidden: false,
  524. query: '',
  525. isFrame: '1',
  526. status: '0',
  527. isRoot: false,
  528. alwaysShow: true,
  529. },
  530. },
  531. ],
  532. },
  533. {
  534. path: '/feature',
  535. name: 'Feature',
  536. component: 'LAYOUT',
  537. redirect: '/feature/download',
  538. meta: {
  539. icon: 'ControlOutlined',
  540. title: '功能示例',
  541. noCache: false,
  542. hidden: false,
  543. query: '',
  544. isFrame: '1',
  545. status: '0',
  546. isRoot: false,
  547. alwaysShow: true,
  548. },
  549. children: [
  550. {
  551. path: 'download',
  552. name: 'Download',
  553. component: '/feature/download/downloadT',
  554. meta: {
  555. icon: '',
  556. title: '文件下载',
  557. noCache: false,
  558. hidden: false,
  559. query: '',
  560. isFrame: '1',
  561. status: '0',
  562. isRoot: false,
  563. alwaysShow: true,
  564. },
  565. },
  566. {
  567. path: 'tagsAction',
  568. name: 'tagsAction',
  569. component: '/feature/tags/tagsAction',
  570. meta: {
  571. icon: '',
  572. title: '多页签操作',
  573. noCache: false,
  574. hidden: false,
  575. query: '',
  576. isFrame: '1',
  577. status: '0',
  578. isRoot: false,
  579. alwaysShow: true,
  580. },
  581. },
  582. {
  583. path: 'context-menus',
  584. name: 'ContextMenus',
  585. component: '/feature/context-menus/context-menus',
  586. meta: {
  587. icon: '',
  588. title: '右键菜单',
  589. noCache: false,
  590. hidden: false,
  591. query: '',
  592. isFrame: '1',
  593. status: '0',
  594. isRoot: false,
  595. alwaysShow: true,
  596. },
  597. },
  598. {
  599. path: 'copy',
  600. name: 'copy',
  601. component: '/feature/copy/copy',
  602. meta: {
  603. icon: '',
  604. title: '剪贴板',
  605. noCache: false,
  606. hidden: false,
  607. query: '',
  608. isFrame: '1',
  609. status: '0',
  610. isRoot: false,
  611. alwaysShow: true,
  612. },
  613. },
  614. {
  615. path: 'print',
  616. name: 'print',
  617. component: '/feature/print/print',
  618. meta: {
  619. icon: '',
  620. title: '打印',
  621. noCache: false,
  622. hidden: false,
  623. query: '',
  624. isFrame: '1',
  625. status: '0',
  626. isRoot: false,
  627. alwaysShow: true,
  628. },
  629. },
  630. {
  631. path: 'scrollbar',
  632. name: 'scrollbar',
  633. component: '/feature/scrollbar/scrollbar',
  634. meta: {
  635. icon: '',
  636. title: '滚动条',
  637. noCache: false,
  638. hidden: false,
  639. query: '',
  640. isFrame: '1',
  641. status: '0',
  642. isRoot: false,
  643. alwaysShow: true,
  644. },
  645. },
  646. {
  647. path: 'Excel',
  648. name: 'Excel',
  649. component: 'ParentLayout',
  650. meta: {
  651. icon: '',
  652. title: 'Excel',
  653. noCache: false,
  654. hidden: false,
  655. query: '',
  656. isFrame: '1',
  657. status: '0',
  658. isRoot: false,
  659. alwaysShow: true,
  660. },
  661. children: [
  662. {
  663. path: 'jsonExport',
  664. name: 'jsonExport',
  665. component: '/feature/excel/jsonExport',
  666. meta: {
  667. icon: '',
  668. title: 'JSON数据导出',
  669. noCache: false,
  670. hidden: false,
  671. query: '',
  672. isFrame: '1',
  673. status: '0',
  674. isRoot: false,
  675. alwaysShow: true,
  676. },
  677. },
  678. {
  679. path: 'choiceExport',
  680. name: 'choiceExport',
  681. component: '/feature/excel/choiceExport',
  682. meta: {
  683. icon: '',
  684. title: '选择导出格式',
  685. noCache: false,
  686. hidden: false,
  687. query: '',
  688. isFrame: '1',
  689. status: '0',
  690. isRoot: false,
  691. alwaysShow: true,
  692. },
  693. },
  694. ],
  695. },
  696. ],
  697. },
  698. {
  699. path: '/article',
  700. name: 'System_Article',
  701. component: 'LAYOUT',
  702. redirect: '/article/list',
  703. meta: {
  704. icon: 'BookOutlined',
  705. title: '文章管理',
  706. noCache: false,
  707. hidden: false,
  708. isFrame: '1',
  709. status: '0',
  710. isRoot: false,
  711. alwaysShow: false,
  712. },
  713. children: [
  714. {
  715. path: 'list',
  716. name: 'article_list',
  717. component: '/article/list',
  718. meta: {
  719. title: '文章列表',
  720. noCache: false,
  721. hidden: false,
  722. isFrame: '1',
  723. status: '0',
  724. isRoot: false,
  725. alwaysShow: false,
  726. },
  727. },
  728. ],
  729. },
  730. {
  731. path: '/comp',
  732. name: 'comp',
  733. component: 'LAYOUT',
  734. redirect: '/comp/table',
  735. meta: {
  736. icon: 'WalletOutlined',
  737. title: '组件示例',
  738. noCache: false,
  739. hidden: false,
  740. query: '',
  741. isFrame: '1',
  742. status: '0',
  743. isRoot: false,
  744. alwaysShow: true,
  745. },
  746. children: [
  747. {
  748. path: 'richtext',
  749. name: 'richtext',
  750. component: '/comp/richtext/vue-quill',
  751. meta: {
  752. icon: '',
  753. title: '富文本',
  754. noCache: false,
  755. hidden: false,
  756. query: '',
  757. isFrame: '1',
  758. status: '0',
  759. isRoot: false,
  760. alwaysShow: true,
  761. },
  762. },
  763. {
  764. path: 'drag',
  765. name: 'Drag',
  766. component: '/comp/drag/index',
  767. meta: {
  768. icon: '',
  769. title: '拖拽',
  770. noCache: false,
  771. hidden: false,
  772. query: '',
  773. isFrame: '1',
  774. status: '0',
  775. isRoot: false,
  776. alwaysShow: true,
  777. },
  778. },
  779. {
  780. path: 'region',
  781. name: 'Region',
  782. component: '/comp/region/index',
  783. meta: {
  784. icon: '',
  785. title: '地区',
  786. noCache: false,
  787. hidden: false,
  788. query: '',
  789. isFrame: '1',
  790. status: '0',
  791. isRoot: false,
  792. alwaysShow: true,
  793. },
  794. },
  795. {
  796. path: 'qrcode',
  797. name: 'Qrcode',
  798. component: '/comp/qrcode/index',
  799. meta: {
  800. icon: '',
  801. title: '二维码',
  802. noCache: false,
  803. hidden: false,
  804. query: '',
  805. isFrame: '1',
  806. status: '0',
  807. isRoot: false,
  808. alwaysShow: true,
  809. },
  810. },
  811. {
  812. path: 'form',
  813. name: 'comp_form',
  814. component: 'ParentLayout',
  815. meta: {
  816. icon: '',
  817. title: '表单',
  818. noCache: false,
  819. hidden: false,
  820. query: '',
  821. isFrame: '1',
  822. status: '0',
  823. isRoot: false,
  824. alwaysShow: true,
  825. },
  826. children: [
  827. {
  828. path: 'basic',
  829. name: 'comp_form_basic',
  830. component: '/comp/form/basic',
  831. meta: {
  832. icon: '',
  833. title: '基础使用',
  834. noCache: false,
  835. hidden: false,
  836. query: '',
  837. isFrame: '1',
  838. status: '0',
  839. isRoot: false,
  840. alwaysShow: true,
  841. },
  842. },
  843. {
  844. path: 'useForm',
  845. name: 'useForm',
  846. component: '/comp/form/useForm',
  847. meta: {
  848. icon: '',
  849. title: 'useForm',
  850. noCache: false,
  851. hidden: false,
  852. query: '',
  853. isFrame: '1',
  854. status: '0',
  855. isRoot: false,
  856. alwaysShow: true,
  857. },
  858. },
  859. ],
  860. },
  861. {
  862. path: 'cropper',
  863. name: 'Cropper',
  864. component: '/comp/cropper/index',
  865. meta: {
  866. icon: '',
  867. title: '图片裁剪',
  868. noCache: false,
  869. hidden: false,
  870. query: '',
  871. isFrame: '1',
  872. status: '0',
  873. isRoot: false,
  874. alwaysShow: true,
  875. },
  876. },
  877. {
  878. path: 'password',
  879. name: 'Password',
  880. component: '/comp/password/index',
  881. meta: {
  882. icon: '',
  883. title: '密码强度',
  884. noCache: false,
  885. hidden: false,
  886. query: '',
  887. isFrame: '1',
  888. status: '0',
  889. isRoot: false,
  890. alwaysShow: true,
  891. },
  892. },
  893. {
  894. path: 'select',
  895. name: 'Select',
  896. component: '/comp/select/select',
  897. meta: {
  898. icon: '',
  899. title: '选择器',
  900. noCache: false,
  901. hidden: false,
  902. query: '',
  903. isFrame: '1',
  904. status: '0',
  905. isRoot: false,
  906. alwaysShow: true,
  907. },
  908. },
  909. {
  910. path: 'tableselect',
  911. name: 'Tableselect',
  912. component: '/comp/tableSelect/tableSelect',
  913. meta: {
  914. icon: '',
  915. title: '表格选择器',
  916. noCache: false,
  917. hidden: false,
  918. query: '',
  919. isFrame: '1',
  920. status: '0',
  921. isRoot: false,
  922. alwaysShow: true,
  923. },
  924. },
  925. {
  926. path: 'upload',
  927. name: 'comp_upload',
  928. component: '/comp/upload/index',
  929. meta: {
  930. icon: '',
  931. title: '上传图片',
  932. noCache: false,
  933. hidden: false,
  934. query: '',
  935. isFrame: '1',
  936. status: '0',
  937. isRoot: false,
  938. alwaysShow: true,
  939. },
  940. },
  941. {
  942. path: 'table',
  943. name: 'comp_table',
  944. component: 'ParentLayout',
  945. meta: {
  946. icon: '',
  947. title: '表格',
  948. noCache: false,
  949. hidden: false,
  950. query: '',
  951. isFrame: '1',
  952. status: '0',
  953. isRoot: false,
  954. alwaysShow: true,
  955. },
  956. children: [
  957. {
  958. path: 'basic',
  959. name: 'comp_table_basic',
  960. component: '/comp/table/basic',
  961. meta: {
  962. icon: '',
  963. title: '基础表格',
  964. noCache: false,
  965. hidden: false,
  966. query: '',
  967. isFrame: '1',
  968. status: '0',
  969. isRoot: false,
  970. alwaysShow: true,
  971. },
  972. },
  973. {
  974. path: 'editCell',
  975. name: 'comp_table_editCell',
  976. component: '/comp/table/editCell',
  977. meta: {
  978. icon: '',
  979. title: '单元格编辑',
  980. noCache: false,
  981. hidden: false,
  982. query: '',
  983. isFrame: '1',
  984. status: '0',
  985. isRoot: false,
  986. alwaysShow: true,
  987. },
  988. },
  989. {
  990. path: 'editRow',
  991. name: 'comp_table_editRow',
  992. component: '/comp/table/editRow',
  993. meta: {
  994. icon: '',
  995. title: '整行编辑',
  996. noCache: false,
  997. hidden: false,
  998. query: '',
  999. isFrame: '1',
  1000. status: '0',
  1001. isRoot: false,
  1002. alwaysShow: true,
  1003. },
  1004. },
  1005. ],
  1006. },
  1007. {
  1008. path: 'modal',
  1009. name: 'comp_modal',
  1010. component: '/comp/modal/index',
  1011. meta: {
  1012. icon: '',
  1013. title: '弹窗扩展',
  1014. noCache: false,
  1015. hidden: false,
  1016. query: '',
  1017. isFrame: '1',
  1018. status: '0',
  1019. isRoot: false,
  1020. alwaysShow: true,
  1021. },
  1022. },
  1023. ],
  1024. },
  1025. {
  1026. path: '/instation',
  1027. name: 'instation',
  1028. component: 'LAYOUT',
  1029. meta: {
  1030. icon: 'BellOutlined',
  1031. title: '站内通知',
  1032. noCache: false,
  1033. hidden: false,
  1034. isFrame: '1',
  1035. status: '0',
  1036. isRoot: false,
  1037. alwaysShow: false,
  1038. },
  1039. children: [
  1040. {
  1041. path: 'myalerts',
  1042. name: 'myalerts',
  1043. component: '/instation/myalerts/myalerts',
  1044. meta: {
  1045. icon: '',
  1046. title: '我的通知',
  1047. noCache: false,
  1048. hidden: false,
  1049. query: '',
  1050. isFrame: '1',
  1051. status: '0',
  1052. isRoot: false,
  1053. alwaysShow: false,
  1054. },
  1055. },
  1056. {
  1057. path: 'notice/info/:id',
  1058. name: 'instation_notice_info',
  1059. component: '/instation/notice/info',
  1060. meta: {
  1061. icon: '',
  1062. title: '查看通知',
  1063. noCache: false,
  1064. hidden: true,
  1065. query: '',
  1066. isFrame: '1',
  1067. status: '0',
  1068. isRoot: false,
  1069. alwaysShow: false,
  1070. },
  1071. },
  1072. {
  1073. path: 'notice',
  1074. name: 'instation_notice',
  1075. component: '/instation/notice/notice',
  1076. meta: {
  1077. icon: '',
  1078. title: '通知管理',
  1079. noCache: false,
  1080. hidden: false,
  1081. query: '',
  1082. isFrame: '1',
  1083. status: '0',
  1084. isRoot: false,
  1085. alwaysShow: false,
  1086. },
  1087. },
  1088. ],
  1089. },
  1090. {
  1091. path: '/result',
  1092. name: 'Result',
  1093. component: 'LAYOUT',
  1094. redirect: '/result/success',
  1095. meta: {
  1096. icon: 'CheckCircleOutlined',
  1097. title: '结果页面',
  1098. noCache: false,
  1099. hidden: false,
  1100. query: '',
  1101. isFrame: '1',
  1102. status: '0',
  1103. isRoot: false,
  1104. alwaysShow: true,
  1105. },
  1106. children: [
  1107. {
  1108. path: 'success',
  1109. name: 'result-success',
  1110. component: '/result/success',
  1111. meta: {
  1112. icon: '',
  1113. title: '成功页',
  1114. noCache: false,
  1115. hidden: false,
  1116. query: '',
  1117. isFrame: '1',
  1118. status: '0',
  1119. isRoot: false,
  1120. alwaysShow: true,
  1121. },
  1122. },
  1123. {
  1124. path: 'fail',
  1125. name: 'result-fail',
  1126. component: '/result/fail',
  1127. meta: {
  1128. icon: '',
  1129. title: '失败页',
  1130. noCache: false,
  1131. hidden: false,
  1132. query: '',
  1133. isFrame: '1',
  1134. status: '0',
  1135. isRoot: false,
  1136. alwaysShow: true,
  1137. },
  1138. },
  1139. {
  1140. path: 'info',
  1141. name: 'result-info',
  1142. component: '/result/info',
  1143. meta: {
  1144. icon: '',
  1145. title: '信息页',
  1146. noCache: false,
  1147. hidden: false,
  1148. query: '',
  1149. isFrame: '1',
  1150. status: '0',
  1151. isRoot: false,
  1152. alwaysShow: true,
  1153. },
  1154. },
  1155. ],
  1156. },
  1157. {
  1158. path: '/frame',
  1159. name: 'Frame',
  1160. component: 'LAYOUT',
  1161. redirect: '/frame/docs',
  1162. meta: {
  1163. icon: 'DesktopOutline',
  1164. title: '外部页面',
  1165. noCache: false,
  1166. hidden: false,
  1167. query: '',
  1168. isFrame: '1',
  1169. status: '0',
  1170. isRoot: false,
  1171. alwaysShow: true,
  1172. },
  1173. children: [
  1174. {
  1175. path: 'docs',
  1176. name: 'frame-docs',
  1177. component: 'IFRAME',
  1178. meta: {
  1179. icon: '',
  1180. title: '项目文档(内嵌)',
  1181. noCache: false,
  1182. hidden: false,
  1183. query: '',
  1184. isFrame: '0',
  1185. frameSrc: 'https://www.naiveadmin.com',
  1186. status: '0',
  1187. isRoot: false,
  1188. alwaysShow: true,
  1189. },
  1190. },
  1191. {
  1192. path: 'naive',
  1193. name: 'frame-naive',
  1194. component: 'IFRAME',
  1195. meta: {
  1196. icon: '',
  1197. title: 'NaiveUi(内嵌)',
  1198. noCache: false,
  1199. hidden: false,
  1200. query: '',
  1201. isFrame: '0',
  1202. frameSrc: 'https://www.naiveui.com',
  1203. status: '0',
  1204. isRoot: false,
  1205. alwaysShow: true,
  1206. },
  1207. },
  1208. ],
  1209. },
  1210. {
  1211. path: '/about',
  1212. name: 'about',
  1213. component: 'LAYOUT',
  1214. meta: {
  1215. icon: 'ProjectOutlined',
  1216. title: '关于项目',
  1217. noCache: false,
  1218. hidden: false,
  1219. query: '',
  1220. isFrame: '1',
  1221. status: '0',
  1222. isRoot: false,
  1223. alwaysShow: true,
  1224. },
  1225. children: [
  1226. {
  1227. path: 'index',
  1228. name: 'about_index',
  1229. component: '/about/index',
  1230. meta: {
  1231. icon: '',
  1232. title: '关于项目',
  1233. noCache: false,
  1234. hidden: false,
  1235. query: '',
  1236. isFrame: '1',
  1237. status: '0',
  1238. isRoot: false,
  1239. alwaysShow: false,
  1240. },
  1241. },
  1242. ],
  1243. },
  1244. {
  1245. path: '/external',
  1246. name: 'https://www.naiveadmin.com',
  1247. component: 'LAYOUT',
  1248. meta: {
  1249. icon: 'DocumentTextOutline',
  1250. title: '项目文档',
  1251. noCache: false,
  1252. hidden: false,
  1253. query: '',
  1254. isFrame: '0',
  1255. frameSrc: 'https://www.naiveadmin.com',
  1256. status: '0',
  1257. isRoot: false,
  1258. alwaysShow: true,
  1259. },
  1260. },
  1261. {
  1262. path: '/mandate',
  1263. name: 'https://www.naiveadmin.com/version/full',
  1264. component: 'LAYOUT',
  1265. meta: {
  1266. icon: 'DiamondOutline',
  1267. title: '获取授权',
  1268. noCache: false,
  1269. hidden: false,
  1270. query: '',
  1271. isFrame: '0',
  1272. frameSrc: 'https://www.naiveadmin.com/version/full',
  1273. status: '0',
  1274. isRoot: false,
  1275. alwaysShow: true,
  1276. },
  1277. },
  1278. {
  1279. path: '/external',
  1280. name: 'https://full-docs.naiveadmin.com/',
  1281. component: 'LAYOUT',
  1282. redirect: 'admin_doc',
  1283. meta: {
  1284. icon: 'DocumentTextOutline',
  1285. title: '后端框架',
  1286. noCache: false,
  1287. hidden: false,
  1288. query: '',
  1289. isFrame: '0',
  1290. frameSrc: 'https://full-docs.naiveadmin.com/',
  1291. status: '0',
  1292. isRoot: false,
  1293. alwaysShow: false,
  1294. },
  1295. },
  1296. ];
  1297. export default [
  1298. {
  1299. url: '/api/login/getRouters',
  1300. timeout: 1000,
  1301. method: 'get',
  1302. response: () => {
  1303. return resultSuccess(list);
  1304. },
  1305. },
  1306. ];