routers.ts 31 KB

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