test-role.ts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510
  1. export const checkedRoleNodes = [
  2. {
  3. path: '/components-demo',
  4. component: '#',
  5. redirect: '/components-demo/echarts',
  6. name: 'ComponentsDemo',
  7. meta: {
  8. title: '功能组件',
  9. icon: 'component',
  10. alwaysShow: true
  11. },
  12. children: [
  13. {
  14. path: 'echarts',
  15. component: 'pages/index/views/components-demo/echarts/index',
  16. name: 'EchartsDemo',
  17. meta: {
  18. title: '图表'
  19. }
  20. },
  21. {
  22. path: 'preview',
  23. component: 'pages/index/views/components-demo/preview/index',
  24. name: 'PreviewDemo',
  25. meta: {
  26. title: '图片预览'
  27. }
  28. },
  29. {
  30. path: 'button',
  31. component: 'pages/index/views/components-demo/button/index',
  32. name: 'ButtonDemo',
  33. meta: {
  34. title: '按钮'
  35. }
  36. },
  37. {
  38. path: 'message',
  39. component: 'pages/index/views/components-demo/message/index',
  40. name: 'MessageDemo',
  41. meta: {
  42. title: '消息提示'
  43. }
  44. },
  45. {
  46. path: 'count-to',
  47. component: 'pages/index/views/components-demo/count-to/index',
  48. name: 'CountToDemo',
  49. meta: {
  50. title: '数字动画'
  51. }
  52. },
  53. {
  54. path: 'search',
  55. component: 'pages/index/views/components-demo/search/index',
  56. name: 'SearchDemo',
  57. meta: {
  58. title: '查询'
  59. }
  60. },
  61. {
  62. path: 'editor',
  63. component: 'pages/index/views/components-demo/editor/index',
  64. name: 'EditorDemo',
  65. meta: {
  66. title: '富文本编辑器'
  67. }
  68. },
  69. {
  70. path: 'markdown',
  71. component: 'pages/index/views/components-demo/markdown/index',
  72. name: 'MarkdownDemo',
  73. meta: {
  74. title: 'markdown编辑器'
  75. }
  76. },
  77. {
  78. path: 'dialog',
  79. component: 'pages/index/views/components-demo/dialog/index',
  80. name: 'DialogDemo',
  81. meta: {
  82. title: '弹窗'
  83. }
  84. },
  85. {
  86. path: 'more',
  87. component: 'pages/index/views/components-demo/more/index',
  88. name: 'MoreDemo',
  89. meta: {
  90. title: '显示更多'
  91. }
  92. },
  93. {
  94. path: 'detail',
  95. component: 'pages/index/views/components-demo/detail/index',
  96. name: 'DetailDemo',
  97. meta: {
  98. title: '详情组件'
  99. }
  100. },
  101. {
  102. path: 'qrcode',
  103. component: 'pages/index/views/components-demo/qrcode/index',
  104. name: 'QrcodeDemo',
  105. meta: {
  106. title: '二维码组件'
  107. }
  108. }
  109. ]
  110. },
  111. {
  112. path: '/table-demo',
  113. component: '#',
  114. redirect: '/table-demo/basic-usage',
  115. name: 'TableDemo',
  116. meta: {
  117. title: '表格',
  118. icon: 'table',
  119. alwaysShow: true
  120. },
  121. children: [
  122. {
  123. path: 'basic-table',
  124. component: 'pages/index/views/table-demo/basic-table/index',
  125. name: 'BasicTable',
  126. meta: {
  127. title: '基础表格'
  128. }
  129. },
  130. {
  131. path: 'page-table',
  132. component: 'pages/index/views/table-demo/page-table/index',
  133. name: 'PageTable',
  134. meta: {
  135. title: '分页表格'
  136. }
  137. },
  138. {
  139. path: 'stripe-table',
  140. component: 'pages/index/views/table-demo/stripe-table/index',
  141. name: 'StripeTable',
  142. meta: {
  143. title: '带斑马纹表格'
  144. }
  145. },
  146. {
  147. path: 'border-table',
  148. component: 'pages/index/views/table-demo/border-table/index',
  149. name: 'BorderTable',
  150. meta: {
  151. title: '带边框表格'
  152. }
  153. },
  154. {
  155. path: 'state-table',
  156. component: 'pages/index/views/table-demo/state-table/index',
  157. name: 'StateTable',
  158. meta: {
  159. title: '带状态表格'
  160. }
  161. },
  162. {
  163. path: 'fixed-header',
  164. component: 'pages/index/views/table-demo/fixed-header/index',
  165. name: 'FixedHeader',
  166. meta: {
  167. title: '固定表头'
  168. }
  169. },
  170. {
  171. path: 'fixed-column',
  172. component: 'pages/index/views/table-demo/fixed-column/index',
  173. name: 'FixedColumn',
  174. meta: {
  175. title: '固定列'
  176. }
  177. },
  178. {
  179. path: 'fixed-column-header',
  180. component: 'pages/index/views/table-demo/fixed-column-header/index',
  181. name: 'FixedColumnHeader',
  182. meta: {
  183. title: '固定列和表头'
  184. }
  185. },
  186. {
  187. path: 'fluid-height',
  188. component: 'pages/index/views/table-demo/fluid-height/index',
  189. name: 'FluidHeight',
  190. meta: {
  191. title: '流体高度'
  192. }
  193. },
  194. {
  195. path: 'multi-header',
  196. component: 'pages/index/views/table-demo/multi-header/index',
  197. name: 'MultiHeader',
  198. meta: {
  199. title: '多级表头'
  200. }
  201. },
  202. {
  203. path: 'single-choice',
  204. component: 'pages/index/views/table-demo/single-choice/index',
  205. name: 'SingleChoice',
  206. meta: {
  207. title: '单选'
  208. }
  209. },
  210. {
  211. path: 'multiple-choice',
  212. component: 'pages/index/views/table-demo/multiple-choice/index',
  213. name: 'MultipleChoice',
  214. meta: {
  215. title: '多选'
  216. }
  217. },
  218. {
  219. path: 'sort-table',
  220. component: 'pages/index/views/table-demo/sort-table/index',
  221. name: 'SortTable',
  222. meta: {
  223. title: '排序'
  224. }
  225. },
  226. {
  227. path: 'screen-table',
  228. component: 'pages/index/views/table-demo/screen-table/index',
  229. name: 'ScreenTable',
  230. meta: {
  231. title: '筛选'
  232. }
  233. },
  234. {
  235. path: 'expand-row',
  236. component: 'pages/index/views/table-demo/expand-row/index',
  237. name: 'ExpandRow',
  238. meta: {
  239. title: '展开行'
  240. }
  241. },
  242. {
  243. path: 'tree-and-load',
  244. component: 'pages/index/views/table-demo/tree-and-load/index',
  245. name: 'TreeAndLoad',
  246. meta: {
  247. title: '树形数据与懒加载'
  248. }
  249. },
  250. {
  251. path: 'custom-header',
  252. component: 'pages/index/views/table-demo/custom-header/index',
  253. name: 'CustomHeader',
  254. meta: {
  255. title: '自定义表头'
  256. }
  257. },
  258. {
  259. path: 'total-table',
  260. component: 'pages/index/views/table-demo/total-table/index',
  261. name: 'TotalTable',
  262. meta: {
  263. title: '表尾合计行'
  264. }
  265. },
  266. {
  267. path: 'merge-table',
  268. component: 'pages/index/views/table-demo/merge-table/index',
  269. name: 'MergeTable',
  270. meta: {
  271. title: '合并行或列'
  272. }
  273. },
  274. {
  275. path: 'custom-index',
  276. component: 'pages/index/views/table-demo/custom-index/index',
  277. name: 'CustomIndex',
  278. meta: {
  279. title: '自定义索引'
  280. }
  281. }
  282. ]
  283. },
  284. {
  285. path: '/directives-demo',
  286. component: '#',
  287. redirect: '/directives-demo/clipboard',
  288. name: 'DirectivesDemo',
  289. meta: {
  290. title: '自定义指令',
  291. icon: 'clipboard',
  292. alwaysShow: true
  293. },
  294. children: [
  295. {
  296. path: 'clipboard',
  297. component: 'pages/index/views/directives-demo/clipboard/index',
  298. name: 'ClipboardDemo',
  299. meta: {
  300. title: 'Clipboard'
  301. }
  302. }
  303. ]
  304. },
  305. {
  306. path: '/hooks-demo',
  307. component: '#',
  308. redirect: '/hooks-demo/watermark',
  309. name: 'HooksDemo',
  310. meta: {
  311. title: 'Hooks',
  312. icon: 'international',
  313. alwaysShow: true
  314. },
  315. children: [
  316. {
  317. path: 'watermark',
  318. component: 'pages/index/views/hooks-demo/useWatermark/index',
  319. name: 'UseWatermarkDemo',
  320. meta: {
  321. title: 'UseWaterMark'
  322. }
  323. },
  324. {
  325. path: 'useScrollTo',
  326. component: 'pages/index/views/hooks-demo/useScrollTo/index',
  327. name: 'UseScrollToDemo',
  328. meta: {
  329. title: 'UseScrollTo'
  330. }
  331. }
  332. ]
  333. },
  334. {
  335. path: '/icon',
  336. component: '#',
  337. name: 'IconsDemo',
  338. meta: {
  339. title: '图标',
  340. icon: 'icon'
  341. },
  342. children: [
  343. {
  344. path: 'index',
  345. component: 'pages/index/views/icons/index',
  346. name: 'Icons',
  347. meta: {
  348. title: '图标',
  349. icon: 'icon'
  350. }
  351. }
  352. ]
  353. },
  354. {
  355. path: '/level',
  356. component: '#',
  357. redirect: '/level/menu1/menu1-1/menu1-1-1',
  358. name: 'Level',
  359. meta: {
  360. title: '多级菜单缓存',
  361. icon: 'nested'
  362. },
  363. children: [
  364. {
  365. path: 'menu1',
  366. name: 'Menu1Demo',
  367. component: '##Menu1Demo',
  368. redirect: '/level/menu1/menu1-1/menu1-1-1',
  369. meta: {
  370. title: 'Menu1'
  371. },
  372. children: [
  373. {
  374. path: 'menu1-1',
  375. name: 'Menu11Demo',
  376. component: '##Menu11Demo',
  377. redirect: '/level/menu1/menu1-1/menu1-1-1',
  378. meta: {
  379. title: 'Menu1-1',
  380. alwaysShow: true
  381. },
  382. children: [
  383. {
  384. path: 'menu1-1-1',
  385. name: 'Menu111Demo',
  386. component: 'pages/index/views/level/Menu111',
  387. meta: {
  388. title: 'Menu1-1-1'
  389. }
  390. }
  391. ]
  392. },
  393. {
  394. path: 'menu1-2',
  395. name: 'Menu12Demo',
  396. component: 'pages/index/views/level/Menu12',
  397. meta: {
  398. title: 'Menu1-2'
  399. }
  400. }
  401. ]
  402. },
  403. {
  404. path: 'menu2',
  405. name: 'Menu2Demo',
  406. component: 'pages/index/views/level/Menu2',
  407. meta: {
  408. title: 'Menu2'
  409. }
  410. }
  411. ]
  412. },
  413. {
  414. path: '/example-demo',
  415. component: '#',
  416. name: 'ExampleDemo',
  417. redirect: '/example-demo/example-dialog',
  418. meta: {
  419. alwaysShow: true,
  420. icon: 'example',
  421. title: '综合实例'
  422. },
  423. children: [
  424. {
  425. path: 'example-dialog',
  426. component: 'pages/index/views/example-demo/example-dialog/index',
  427. name: 'ExampleDialog',
  428. meta: {
  429. title: '列表综合实例-弹窗'
  430. }
  431. },
  432. {
  433. path: 'example-page',
  434. component: 'pages/index/views/example-demo/example-page/index',
  435. name: 'ExamplePage',
  436. meta: {
  437. title: '列表综合实例-页面'
  438. }
  439. },
  440. {
  441. path: 'example-add',
  442. component: 'pages/index/views/example-demo/example-page/example-add',
  443. name: 'ExampleAdd',
  444. meta: {
  445. title: '列表综合实例-新增',
  446. noTagsView: true,
  447. noCache: true,
  448. hidden: true,
  449. showMainRoute: true,
  450. activeMenu: '/example-demo/example-page'
  451. }
  452. },
  453. {
  454. path: 'example-edit',
  455. component: 'pages/index/views/example-demo/example-page/example-edit',
  456. name: 'ExampleEdit',
  457. meta: {
  458. title: '列表综合实例-编辑',
  459. noTagsView: true,
  460. noCache: true,
  461. hidden: true,
  462. showMainRoute: true,
  463. activeMenu: '/example-demo/example-page'
  464. }
  465. },
  466. {
  467. path: 'example-detail',
  468. component: 'pages/index/views/example-demo/example-page/example-detail',
  469. name: 'ExampleDetail',
  470. meta: {
  471. title: '列表综合实例-详情',
  472. noTagsView: true,
  473. noCache: true,
  474. hidden: true,
  475. showMainRoute: true,
  476. activeMenu: '/example-demo/example-page'
  477. }
  478. }
  479. ]
  480. },
  481. {
  482. path: '/role-demo',
  483. component: '#',
  484. redirect: '/role-demo/user',
  485. name: 'RoleDemo',
  486. meta: {
  487. title: '权限管理',
  488. icon: 'user',
  489. alwaysShow: true
  490. },
  491. children: [
  492. {
  493. path: 'user',
  494. component: 'pages/index/views/role-demo/user/index',
  495. name: 'User',
  496. meta: {
  497. title: '用户管理'
  498. }
  499. },
  500. {
  501. path: 'role',
  502. component: 'pages/index/views/role-demo/role/index',
  503. name: 'Role',
  504. meta: {
  505. title: '角色管理'
  506. }
  507. }
  508. ]
  509. }
  510. ]