routers.ts 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343
  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: '/cameras',
  67. name: 'cameras',
  68. component: 'LAYOUT',
  69. redirect: '/cameras/overview',
  70. meta: {
  71. icon: 'CameraOutlined',
  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: 'overview',
  83. name: 'cameras-overview',
  84. component: '/cameras/overview/CamerasOverview',
  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: '/map-config',
  99. name: 'map_config',
  100. component: 'LAYOUT',
  101. redirect: '/map-config/mini-map',
  102. meta: {
  103. icon: 'PictureOutlined',
  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: 'mini-map',
  115. name: 'mini_map',
  116. component: '/map-config/mini-map/MiniMapConfig',
  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: '/auth',
  131. name: 'auth',
  132. component: 'LAYOUT',
  133. meta: {
  134. icon: 'SafetyOutlined',
  135. title: '权限管理',
  136. noCache: false,
  137. hidden: false,
  138. query: '',
  139. isFrame: '1',
  140. status: '0',
  141. isRoot: false,
  142. alwaysShow: false,
  143. },
  144. children: [
  145. {
  146. path: 'user',
  147. name: 'system_user',
  148. component: '/system/user/user',
  149. redirect: '',
  150. meta: {
  151. title: '用户管理',
  152. noCache: false,
  153. hidden: false,
  154. isFrame: '1',
  155. status: '0',
  156. isRoot: false,
  157. alwaysShow: false,
  158. },
  159. },
  160. {
  161. path: 'role',
  162. name: 'system_role',
  163. component: '/system/role/role',
  164. meta: {
  165. title: '角色管理',
  166. noCache: false,
  167. hidden: false,
  168. isFrame: '1',
  169. status: '0',
  170. isRoot: false,
  171. alwaysShow: false,
  172. },
  173. },
  174. {
  175. path: 'dept',
  176. name: 'dept',
  177. component: '/auth/dept/dept',
  178. meta: {
  179. title: '部门管理',
  180. noCache: false,
  181. hidden: false,
  182. isFrame: '1',
  183. status: '0',
  184. isRoot: false,
  185. alwaysShow: true,
  186. },
  187. },
  188. {
  189. path: 'post',
  190. name: 'post',
  191. component: '/auth/post/post',
  192. meta: {
  193. title: '岗位管理',
  194. noCache: false,
  195. hidden: false,
  196. isFrame: '1',
  197. status: '0',
  198. isRoot: false,
  199. alwaysShow: true,
  200. },
  201. },
  202. ],
  203. },
  204. {
  205. path: '/system',
  206. name: 'system',
  207. component: 'LAYOUT',
  208. redirect: '/system/menu',
  209. meta: {
  210. icon: 'OptionsSharp',
  211. title: '系统管理',
  212. noCache: false,
  213. hidden: false,
  214. isFrame: '1',
  215. status: '0',
  216. isRoot: false,
  217. alwaysShow: false,
  218. },
  219. children: [
  220. {
  221. path: 'menu',
  222. name: 'system_menu',
  223. component: '/system/menu/menu',
  224. redirect: '',
  225. meta: {
  226. title: '菜单管理',
  227. noCache: false,
  228. hidden: false,
  229. isFrame: '1',
  230. status: '0',
  231. isRoot: false,
  232. alwaysShow: false,
  233. },
  234. },
  235. {
  236. path: 'dictionary',
  237. name: 'system_dictionary',
  238. component: '/system/dictionary/dictionary',
  239. meta: {
  240. title: '字典管理',
  241. noCache: false,
  242. hidden: false,
  243. isFrame: '1',
  244. status: '0',
  245. isRoot: false,
  246. alwaysShow: false,
  247. },
  248. },
  249. {
  250. path: 'logs',
  251. name: 'system_logs',
  252. component: 'ParentLayout',
  253. meta: {
  254. title: '日志管理',
  255. noCache: false,
  256. hidden: false,
  257. isFrame: '1',
  258. status: '0',
  259. isRoot: false,
  260. alwaysShow: false,
  261. },
  262. },
  263. {
  264. path: 'region',
  265. name: 'system_region',
  266. component: 'ParentLayout',
  267. redirect: '',
  268. meta: {
  269. title: '区域管理',
  270. noCache: false,
  271. hidden: false,
  272. isFrame: '1',
  273. status: '0',
  274. isRoot: false,
  275. alwaysShow: true,
  276. },
  277. children: [
  278. {
  279. path: 'list',
  280. name: 'system_region_list',
  281. component: '/system/region/region',
  282. meta: {
  283. title: '区域管理',
  284. noCache: false,
  285. hidden: false,
  286. isFrame: '1',
  287. status: '0',
  288. isRoot: false,
  289. alwaysShow: false,
  290. },
  291. },
  292. ],
  293. },
  294. {
  295. path: 'config',
  296. name: 'system_config',
  297. component: 'ParentLayout',
  298. meta: {
  299. title: '配置管理',
  300. noCache: false,
  301. hidden: false,
  302. isFrame: '1',
  303. status: '0',
  304. isRoot: false,
  305. alwaysShow: true,
  306. },
  307. children: [
  308. {
  309. path: 'list',
  310. name: 'system_config_list',
  311. component: '/system/config/list',
  312. meta: {
  313. icon: '',
  314. title: '配置管理',
  315. noCache: false,
  316. hidden: false,
  317. query: '',
  318. isFrame: '1',
  319. status: '0',
  320. isRoot: false,
  321. alwaysShow: false,
  322. },
  323. },
  324. ],
  325. },
  326. {
  327. path: '/system/api',
  328. name: 'https://api-tenant.naiveadmin.com/swagger-ui/#/',
  329. component: '1',
  330. meta: {
  331. icon: '',
  332. title: '系统接口',
  333. noCache: false,
  334. hidden: false,
  335. query: '',
  336. isFrame: '1',
  337. frameSrc: '',
  338. status: '0',
  339. isRoot: false,
  340. alwaysShow: false,
  341. },
  342. },
  343. ],
  344. },
  345. {
  346. path: '/list',
  347. name: 'List',
  348. component: 'LAYOUT',
  349. redirect: '/list/basic-list',
  350. meta: {
  351. icon: 'TableOutlined',
  352. title: '列表页面',
  353. noCache: false,
  354. hidden: false,
  355. query: '',
  356. isFrame: '1',
  357. status: '0',
  358. isRoot: false,
  359. alwaysShow: true,
  360. },
  361. children: [
  362. {
  363. path: 'basic-info/:id?',
  364. name: 'BasicInfo',
  365. component: '/list/basicList/info',
  366. meta: {
  367. icon: '',
  368. title: '基础详情',
  369. noCache: false,
  370. hidden: true,
  371. query: '',
  372. isFrame: '1',
  373. status: '0',
  374. isRoot: false,
  375. alwaysShow: true,
  376. },
  377. },
  378. {
  379. path: 'basic-list',
  380. name: 'basic-list',
  381. component: '/list/basicList/index',
  382. meta: {
  383. icon: '',
  384. title: '基础列表',
  385. noCache: false,
  386. hidden: false,
  387. query: '',
  388. isFrame: '1',
  389. status: '0',
  390. isRoot: false,
  391. alwaysShow: true,
  392. },
  393. },
  394. ],
  395. },
  396. {
  397. path: '/exception',
  398. name: 'Exception',
  399. component: 'LAYOUT',
  400. redirect: '/exception/403',
  401. meta: {
  402. icon: 'ExclamationCircleOutlined',
  403. title: '异常页面',
  404. noCache: false,
  405. hidden: false,
  406. query: '',
  407. isFrame: '1',
  408. status: '0',
  409. isRoot: false,
  410. alwaysShow: false,
  411. },
  412. children: [
  413. {
  414. path: '403',
  415. name: 'exception-403',
  416. component: '/exception/403',
  417. meta: {
  418. icon: '',
  419. title: '403',
  420. noCache: false,
  421. hidden: false,
  422. query: '',
  423. isFrame: '1',
  424. status: '0',
  425. isRoot: false,
  426. alwaysShow: true,
  427. },
  428. },
  429. ],
  430. },
  431. {
  432. path: '/form',
  433. name: 'Form',
  434. component: 'LAYOUT',
  435. redirect: '/form/basic-form',
  436. meta: {
  437. icon: 'ProfileOutlined',
  438. title: '表单页面',
  439. noCache: false,
  440. hidden: false,
  441. query: '',
  442. isFrame: '1',
  443. status: '0',
  444. isRoot: false,
  445. alwaysShow: true,
  446. },
  447. children: [
  448. {
  449. path: 'basic-form',
  450. name: 'BasicForm',
  451. component: '/form/basicForm/index',
  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: 'step-form',
  466. name: 'form-step-form',
  467. component: '/form/stepForm/stepForm',
  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. path: 'advanced-form',
  482. name: 'form-advanced-form',
  483. component: '/form/advancedForm/advancedForm.',
  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: 'detail',
  498. name: 'form-detail',
  499. component: '/form/detail/index',
  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. },
  514. {
  515. path: '/setting',
  516. name: 'Setting',
  517. component: 'LAYOUT',
  518. redirect: '/setting/account',
  519. meta: {
  520. icon: 'SettingOutlined',
  521. title: '设置页面',
  522. noCache: false,
  523. hidden: false,
  524. query: '',
  525. isFrame: '1',
  526. status: '0',
  527. isRoot: false,
  528. alwaysShow: true,
  529. },
  530. children: [
  531. {
  532. path: 'account',
  533. name: 'setting-account',
  534. component: '/setting/account/account',
  535. meta: {
  536. icon: '',
  537. title: '个人设置',
  538. noCache: false,
  539. hidden: false,
  540. query: '',
  541. isFrame: '1',
  542. status: '0',
  543. isRoot: false,
  544. alwaysShow: true,
  545. },
  546. },
  547. {
  548. path: 'system',
  549. name: 'setting-system',
  550. component: '/setting/system/system',
  551. meta: {
  552. icon: '',
  553. title: '系统设置',
  554. noCache: false,
  555. hidden: false,
  556. query: '',
  557. isFrame: '1',
  558. status: '0',
  559. isRoot: false,
  560. alwaysShow: true,
  561. },
  562. },
  563. ],
  564. },
  565. {
  566. path: '/feature',
  567. name: 'Feature',
  568. component: 'LAYOUT',
  569. redirect: '/feature/download',
  570. meta: {
  571. icon: 'ControlOutlined',
  572. title: '功能示例',
  573. noCache: false,
  574. hidden: false,
  575. query: '',
  576. isFrame: '1',
  577. status: '0',
  578. isRoot: false,
  579. alwaysShow: true,
  580. },
  581. children: [
  582. {
  583. path: 'download',
  584. name: 'Download',
  585. component: '/feature/download/downloadT',
  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: 'tagsAction',
  600. name: 'tagsAction',
  601. component: '/feature/tags/tagsAction',
  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: 'context-menus',
  616. name: 'ContextMenus',
  617. component: '/feature/context-menus/context-menus',
  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: 'copy',
  632. name: 'copy',
  633. component: '/feature/copy/copy',
  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: 'print',
  648. name: 'print',
  649. component: '/feature/print/print',
  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: 'scrollbar',
  664. name: 'scrollbar',
  665. component: '/feature/scrollbar/scrollbar',
  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: 'Excel',
  680. name: 'Excel',
  681. component: 'ParentLayout',
  682. meta: {
  683. icon: '',
  684. title: 'Excel',
  685. noCache: false,
  686. hidden: false,
  687. query: '',
  688. isFrame: '1',
  689. status: '0',
  690. isRoot: false,
  691. alwaysShow: true,
  692. },
  693. children: [
  694. {
  695. path: 'jsonExport',
  696. name: 'jsonExport',
  697. component: '/feature/excel/jsonExport',
  698. meta: {
  699. icon: '',
  700. title: 'JSON数据导出',
  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: 'choiceExport',
  712. name: 'choiceExport',
  713. component: '/feature/excel/choiceExport',
  714. meta: {
  715. icon: '',
  716. title: '选择导出格式',
  717. noCache: false,
  718. hidden: false,
  719. query: '',
  720. isFrame: '1',
  721. status: '0',
  722. isRoot: false,
  723. alwaysShow: true,
  724. },
  725. },
  726. ],
  727. },
  728. ],
  729. },
  730. {
  731. path: '/article',
  732. name: 'System_Article',
  733. component: 'LAYOUT',
  734. redirect: '/article/list',
  735. meta: {
  736. icon: 'BookOutlined',
  737. title: '文章管理',
  738. noCache: false,
  739. hidden: false,
  740. isFrame: '1',
  741. status: '0',
  742. isRoot: false,
  743. alwaysShow: false,
  744. },
  745. children: [
  746. {
  747. path: 'list',
  748. name: 'article_list',
  749. component: '/article/list',
  750. meta: {
  751. title: '文章列表',
  752. noCache: false,
  753. hidden: false,
  754. isFrame: '1',
  755. status: '0',
  756. isRoot: false,
  757. alwaysShow: false,
  758. },
  759. },
  760. ],
  761. },
  762. {
  763. path: '/comp',
  764. name: 'comp',
  765. component: 'LAYOUT',
  766. redirect: '/comp/table',
  767. meta: {
  768. icon: 'WalletOutlined',
  769. title: '组件示例',
  770. noCache: false,
  771. hidden: false,
  772. query: '',
  773. isFrame: '1',
  774. status: '0',
  775. isRoot: false,
  776. alwaysShow: true,
  777. },
  778. children: [
  779. {
  780. path: 'richtext',
  781. name: 'richtext',
  782. component: '/comp/richtext/vue-quill',
  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: 'drag',
  797. name: 'Drag',
  798. component: '/comp/drag/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: 'region',
  813. name: 'Region',
  814. component: '/comp/region/index',
  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: 'qrcode',
  829. name: 'Qrcode',
  830. component: '/comp/qrcode/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: 'form',
  845. name: 'comp_form',
  846. component: 'ParentLayout',
  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. children: [
  859. {
  860. path: 'basic',
  861. name: 'comp_form_basic',
  862. component: '/comp/form/basic',
  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: 'useForm',
  877. name: 'useForm',
  878. component: '/comp/form/useForm',
  879. meta: {
  880. icon: '',
  881. title: 'useForm',
  882. noCache: false,
  883. hidden: false,
  884. query: '',
  885. isFrame: '1',
  886. status: '0',
  887. isRoot: false,
  888. alwaysShow: true,
  889. },
  890. },
  891. ],
  892. },
  893. {
  894. path: 'cropper',
  895. name: 'Cropper',
  896. component: '/comp/cropper/index',
  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: 'password',
  911. name: 'Password',
  912. component: '/comp/password/index',
  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: 'select',
  927. name: 'Select',
  928. component: '/comp/select/select',
  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: 'tableselect',
  943. name: 'Tableselect',
  944. component: '/comp/tableSelect/tableSelect',
  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: 'upload',
  959. name: 'comp_upload',
  960. component: '/comp/upload/index',
  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: 'table',
  975. name: 'comp_table',
  976. component: 'ParentLayout',
  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. children: [
  989. {
  990. path: 'basic',
  991. name: 'comp_table_basic',
  992. component: '/comp/table/basic',
  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: 'editCell',
  1007. name: 'comp_table_editCell',
  1008. component: '/comp/table/editCell',
  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. },
  1021. {
  1022. path: 'editRow',
  1023. name: 'comp_table_editRow',
  1024. component: '/comp/table/editRow',
  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. },
  1039. {
  1040. path: 'modal',
  1041. name: 'comp_modal',
  1042. component: '/comp/modal/index',
  1043. meta: {
  1044. icon: '',
  1045. title: '弹窗扩展',
  1046. noCache: false,
  1047. hidden: false,
  1048. query: '',
  1049. isFrame: '1',
  1050. status: '0',
  1051. isRoot: false,
  1052. alwaysShow: true,
  1053. },
  1054. },
  1055. ],
  1056. },
  1057. {
  1058. path: '/instation',
  1059. name: 'instation',
  1060. component: 'LAYOUT',
  1061. meta: {
  1062. icon: 'BellOutlined',
  1063. title: '站内通知',
  1064. noCache: false,
  1065. hidden: false,
  1066. isFrame: '1',
  1067. status: '0',
  1068. isRoot: false,
  1069. alwaysShow: false,
  1070. },
  1071. children: [
  1072. {
  1073. path: 'myalerts',
  1074. name: 'myalerts',
  1075. component: '/instation/myalerts/myalerts',
  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. path: 'notice/info/:id',
  1090. name: 'instation_notice_info',
  1091. component: '/instation/notice/info',
  1092. meta: {
  1093. icon: '',
  1094. title: '查看通知',
  1095. noCache: false,
  1096. hidden: true,
  1097. query: '',
  1098. isFrame: '1',
  1099. status: '0',
  1100. isRoot: false,
  1101. alwaysShow: false,
  1102. },
  1103. },
  1104. {
  1105. path: 'notice',
  1106. name: 'instation_notice',
  1107. component: '/instation/notice/notice',
  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. },
  1122. {
  1123. path: '/result',
  1124. name: 'Result',
  1125. component: 'LAYOUT',
  1126. redirect: '/result/success',
  1127. meta: {
  1128. icon: 'CheckCircleOutlined',
  1129. title: '结果页面',
  1130. noCache: false,
  1131. hidden: false,
  1132. query: '',
  1133. isFrame: '1',
  1134. status: '0',
  1135. isRoot: false,
  1136. alwaysShow: true,
  1137. },
  1138. children: [
  1139. {
  1140. path: 'success',
  1141. name: 'result-success',
  1142. component: '/result/success',
  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. path: 'fail',
  1157. name: 'result-fail',
  1158. component: '/result/fail',
  1159. meta: {
  1160. icon: '',
  1161. title: '失败页',
  1162. noCache: false,
  1163. hidden: false,
  1164. query: '',
  1165. isFrame: '1',
  1166. status: '0',
  1167. isRoot: false,
  1168. alwaysShow: true,
  1169. },
  1170. },
  1171. {
  1172. path: 'info',
  1173. name: 'result-info',
  1174. component: '/result/info',
  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. },
  1189. {
  1190. path: '/frame',
  1191. name: 'Frame',
  1192. component: 'LAYOUT',
  1193. redirect: '/frame/docs',
  1194. meta: {
  1195. icon: 'DesktopOutline',
  1196. title: '外部页面',
  1197. noCache: false,
  1198. hidden: false,
  1199. query: '',
  1200. isFrame: '1',
  1201. status: '0',
  1202. isRoot: false,
  1203. alwaysShow: true,
  1204. },
  1205. children: [
  1206. {
  1207. path: 'docs',
  1208. name: 'frame-docs',
  1209. component: 'IFRAME',
  1210. meta: {
  1211. icon: '',
  1212. title: '项目文档(内嵌)',
  1213. noCache: false,
  1214. hidden: false,
  1215. query: '',
  1216. isFrame: '0',
  1217. frameSrc: 'https://www.naiveadmin.com',
  1218. status: '0',
  1219. isRoot: false,
  1220. alwaysShow: true,
  1221. },
  1222. },
  1223. {
  1224. path: 'naive',
  1225. name: 'frame-naive',
  1226. component: 'IFRAME',
  1227. meta: {
  1228. icon: '',
  1229. title: 'NaiveUi(内嵌)',
  1230. noCache: false,
  1231. hidden: false,
  1232. query: '',
  1233. isFrame: '0',
  1234. frameSrc: 'https://www.naiveui.com',
  1235. status: '0',
  1236. isRoot: false,
  1237. alwaysShow: true,
  1238. },
  1239. },
  1240. ],
  1241. },
  1242. {
  1243. path: '/about',
  1244. name: 'about',
  1245. component: 'LAYOUT',
  1246. meta: {
  1247. icon: 'ProjectOutlined',
  1248. title: '关于项目',
  1249. noCache: false,
  1250. hidden: false,
  1251. query: '',
  1252. isFrame: '1',
  1253. status: '0',
  1254. isRoot: false,
  1255. alwaysShow: true,
  1256. },
  1257. children: [
  1258. {
  1259. path: 'index',
  1260. name: 'about_index',
  1261. component: '/about/index',
  1262. meta: {
  1263. icon: '',
  1264. title: '关于项目',
  1265. noCache: false,
  1266. hidden: false,
  1267. query: '',
  1268. isFrame: '1',
  1269. status: '0',
  1270. isRoot: false,
  1271. alwaysShow: false,
  1272. },
  1273. },
  1274. ],
  1275. },
  1276. {
  1277. path: '/external',
  1278. name: 'https://www.naiveadmin.com',
  1279. component: 'LAYOUT',
  1280. meta: {
  1281. icon: 'DocumentTextOutline',
  1282. title: '项目文档',
  1283. noCache: false,
  1284. hidden: false,
  1285. query: '',
  1286. isFrame: '0',
  1287. frameSrc: 'https://www.naiveadmin.com',
  1288. status: '0',
  1289. isRoot: false,
  1290. alwaysShow: true,
  1291. },
  1292. },
  1293. {
  1294. path: '/mandate',
  1295. name: 'https://www.naiveadmin.com/version/full',
  1296. component: 'LAYOUT',
  1297. meta: {
  1298. icon: 'DiamondOutline',
  1299. title: '获取授权',
  1300. noCache: false,
  1301. hidden: false,
  1302. query: '',
  1303. isFrame: '0',
  1304. frameSrc: 'https://www.naiveadmin.com/version/full',
  1305. status: '0',
  1306. isRoot: false,
  1307. alwaysShow: true,
  1308. },
  1309. },
  1310. {
  1311. path: '/external',
  1312. name: 'https://full-docs.naiveadmin.com/',
  1313. component: 'LAYOUT',
  1314. redirect: 'admin_doc',
  1315. meta: {
  1316. icon: 'DocumentTextOutline',
  1317. title: '后端框架',
  1318. noCache: false,
  1319. hidden: false,
  1320. query: '',
  1321. isFrame: '0',
  1322. frameSrc: 'https://full-docs.naiveadmin.com/',
  1323. status: '0',
  1324. isRoot: false,
  1325. alwaysShow: false,
  1326. },
  1327. },
  1328. ];
  1329. export default [
  1330. {
  1331. url: '/api/login/getRouters',
  1332. timeout: 1000,
  1333. method: 'get',
  1334. response: () => {
  1335. return resultSuccess(list);
  1336. },
  1337. },
  1338. ];