routers.ts 32 KB

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