test-role.ts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  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. path: 'avatars',
  111. component: 'pages/index/views/components-demo/avatars/index',
  112. name: 'AvatarsDemo',
  113. meta: {
  114. title: '头像组'
  115. }
  116. },
  117. {
  118. path: 'highlight',
  119. component: 'pages/index/views/components-demo/highlight/index',
  120. name: 'HighlightDemo',
  121. meta: {
  122. title: '文字高亮'
  123. }
  124. }
  125. ]
  126. },
  127. {
  128. path: '/table-demo',
  129. component: '#',
  130. redirect: '/table-demo/basic-usage',
  131. name: 'TableDemo',
  132. meta: {
  133. title: '表格',
  134. icon: 'table',
  135. alwaysShow: true
  136. },
  137. children: [
  138. {
  139. path: 'basic-table',
  140. component: 'pages/index/views/table-demo/basic-table/index',
  141. name: 'BasicTable',
  142. meta: {
  143. title: '基础表格'
  144. }
  145. },
  146. {
  147. path: 'page-table',
  148. component: 'pages/index/views/table-demo/page-table/index',
  149. name: 'PageTable',
  150. meta: {
  151. title: '分页表格'
  152. }
  153. },
  154. {
  155. path: 'stripe-table',
  156. component: 'pages/index/views/table-demo/stripe-table/index',
  157. name: 'StripeTable',
  158. meta: {
  159. title: '带斑马纹表格'
  160. }
  161. },
  162. {
  163. path: 'border-table',
  164. component: 'pages/index/views/table-demo/border-table/index',
  165. name: 'BorderTable',
  166. meta: {
  167. title: '带边框表格'
  168. }
  169. },
  170. {
  171. path: 'state-table',
  172. component: 'pages/index/views/table-demo/state-table/index',
  173. name: 'StateTable',
  174. meta: {
  175. title: '带状态表格'
  176. }
  177. },
  178. {
  179. path: 'fixed-header',
  180. component: 'pages/index/views/table-demo/fixed-header/index',
  181. name: 'FixedHeader',
  182. meta: {
  183. title: '固定表头'
  184. }
  185. },
  186. {
  187. path: 'fixed-column',
  188. component: 'pages/index/views/table-demo/fixed-column/index',
  189. name: 'FixedColumn',
  190. meta: {
  191. title: '固定列'
  192. }
  193. },
  194. {
  195. path: 'fixed-column-header',
  196. component: 'pages/index/views/table-demo/fixed-column-header/index',
  197. name: 'FixedColumnHeader',
  198. meta: {
  199. title: '固定列和表头'
  200. }
  201. },
  202. {
  203. path: 'fluid-height',
  204. component: 'pages/index/views/table-demo/fluid-height/index',
  205. name: 'FluidHeight',
  206. meta: {
  207. title: '流体高度'
  208. }
  209. },
  210. {
  211. path: 'multi-header',
  212. component: 'pages/index/views/table-demo/multi-header/index',
  213. name: 'MultiHeader',
  214. meta: {
  215. title: '多级表头'
  216. }
  217. },
  218. {
  219. path: 'single-choice',
  220. component: 'pages/index/views/table-demo/single-choice/index',
  221. name: 'SingleChoice',
  222. meta: {
  223. title: '单选'
  224. }
  225. },
  226. {
  227. path: 'multiple-choice',
  228. component: 'pages/index/views/table-demo/multiple-choice/index',
  229. name: 'MultipleChoice',
  230. meta: {
  231. title: '多选'
  232. }
  233. },
  234. {
  235. path: 'sort-table',
  236. component: 'pages/index/views/table-demo/sort-table/index',
  237. name: 'SortTable',
  238. meta: {
  239. title: '排序'
  240. }
  241. },
  242. {
  243. path: 'screen-table',
  244. component: 'pages/index/views/table-demo/screen-table/index',
  245. name: 'ScreenTable',
  246. meta: {
  247. title: '筛选'
  248. }
  249. },
  250. {
  251. path: 'expand-row',
  252. component: 'pages/index/views/table-demo/expand-row/index',
  253. name: 'ExpandRow',
  254. meta: {
  255. title: '展开行'
  256. }
  257. },
  258. {
  259. path: 'tree-and-load',
  260. component: 'pages/index/views/table-demo/tree-and-load/index',
  261. name: 'TreeAndLoad',
  262. meta: {
  263. title: '树形数据与懒加载'
  264. }
  265. },
  266. {
  267. path: 'custom-header',
  268. component: 'pages/index/views/table-demo/custom-header/index',
  269. name: 'CustomHeader',
  270. meta: {
  271. title: '自定义表头'
  272. }
  273. },
  274. {
  275. path: 'total-table',
  276. component: 'pages/index/views/table-demo/total-table/index',
  277. name: 'TotalTable',
  278. meta: {
  279. title: '表尾合计行'
  280. }
  281. },
  282. {
  283. path: 'merge-table',
  284. component: 'pages/index/views/table-demo/merge-table/index',
  285. name: 'MergeTable',
  286. meta: {
  287. title: '合并行或列'
  288. }
  289. },
  290. {
  291. path: 'custom-index',
  292. component: 'pages/index/views/table-demo/custom-index/index',
  293. name: 'CustomIndex',
  294. meta: {
  295. title: '自定义索引'
  296. }
  297. }
  298. ]
  299. },
  300. {
  301. path: '/directives-demo',
  302. component: '#',
  303. redirect: '/directives-demo/clipboard',
  304. name: 'DirectivesDemo',
  305. meta: {
  306. title: '自定义指令',
  307. icon: 'clipboard',
  308. alwaysShow: true
  309. },
  310. children: [
  311. {
  312. path: 'clipboard',
  313. component: 'pages/index/views/directives-demo/clipboard/index',
  314. name: 'ClipboardDemo',
  315. meta: {
  316. title: 'Clipboard'
  317. }
  318. }
  319. ]
  320. },
  321. {
  322. path: '/hooks-demo',
  323. component: '#',
  324. redirect: '/hooks-demo/watermark',
  325. name: 'HooksDemo',
  326. meta: {
  327. title: 'Hooks',
  328. icon: 'international',
  329. alwaysShow: true
  330. },
  331. children: [
  332. {
  333. path: 'watermark',
  334. component: 'pages/index/views/hooks-demo/useWatermark/index',
  335. name: 'UseWatermarkDemo',
  336. meta: {
  337. title: 'UseWaterMark'
  338. }
  339. },
  340. {
  341. path: 'useScrollTo',
  342. component: 'pages/index/views/hooks-demo/useScrollTo/index',
  343. name: 'UseScrollToDemo',
  344. meta: {
  345. title: 'UseScrollTo'
  346. }
  347. }
  348. ]
  349. },
  350. {
  351. path: '/icon',
  352. component: '#',
  353. name: 'IconsDemo',
  354. meta: {
  355. title: '图标',
  356. icon: 'icon'
  357. },
  358. children: [
  359. {
  360. path: 'index',
  361. component: 'pages/index/views/icons/index',
  362. name: 'Icons',
  363. meta: {
  364. title: '图标',
  365. icon: 'icon'
  366. }
  367. }
  368. ]
  369. },
  370. {
  371. path: '/level',
  372. component: '#',
  373. redirect: '/level/menu1/menu1-1/menu1-1-1',
  374. name: 'Level',
  375. meta: {
  376. title: '多级菜单缓存',
  377. icon: 'nested'
  378. },
  379. children: [
  380. {
  381. path: 'menu1',
  382. name: 'Menu1Demo',
  383. component: '##Menu1Demo',
  384. redirect: '/level/menu1/menu1-1/menu1-1-1',
  385. meta: {
  386. title: 'Menu1'
  387. },
  388. children: [
  389. {
  390. path: 'menu1-1',
  391. name: 'Menu11Demo',
  392. component: '##Menu11Demo',
  393. redirect: '/level/menu1/menu1-1/menu1-1-1',
  394. meta: {
  395. title: 'Menu1-1',
  396. alwaysShow: true
  397. },
  398. children: [
  399. {
  400. path: 'menu1-1-1',
  401. name: 'Menu111Demo',
  402. component: 'pages/index/views/level/Menu111',
  403. meta: {
  404. title: 'Menu1-1-1'
  405. }
  406. }
  407. ]
  408. },
  409. {
  410. path: 'menu1-2',
  411. name: 'Menu12Demo',
  412. component: 'pages/index/views/level/Menu12',
  413. meta: {
  414. title: 'Menu1-2'
  415. }
  416. }
  417. ]
  418. },
  419. {
  420. path: 'menu2',
  421. name: 'Menu2Demo',
  422. component: 'pages/index/views/level/Menu2',
  423. meta: {
  424. title: 'Menu2'
  425. }
  426. }
  427. ]
  428. },
  429. {
  430. path: '/example-demo',
  431. component: '#',
  432. name: 'ExampleDemo',
  433. redirect: '/example-demo/example-dialog',
  434. meta: {
  435. alwaysShow: true,
  436. icon: 'example',
  437. title: '综合实例'
  438. },
  439. children: [
  440. {
  441. path: 'example-dialog',
  442. component: 'pages/index/views/example-demo/example-dialog/index',
  443. name: 'ExampleDialog',
  444. meta: {
  445. title: '列表综合实例-弹窗'
  446. }
  447. },
  448. {
  449. path: 'example-page',
  450. component: 'pages/index/views/example-demo/example-page/index',
  451. name: 'ExamplePage',
  452. meta: {
  453. title: '列表综合实例-页面'
  454. }
  455. },
  456. {
  457. path: 'example-add',
  458. component: 'pages/index/views/example-demo/example-page/example-add',
  459. name: 'ExampleAdd',
  460. meta: {
  461. title: '列表综合实例-新增',
  462. noTagsView: true,
  463. noCache: true,
  464. hidden: true,
  465. showMainRoute: true,
  466. activeMenu: '/example-demo/example-page'
  467. }
  468. },
  469. {
  470. path: 'example-edit',
  471. component: 'pages/index/views/example-demo/example-page/example-edit',
  472. name: 'ExampleEdit',
  473. meta: {
  474. title: '列表综合实例-编辑',
  475. noTagsView: true,
  476. noCache: true,
  477. hidden: true,
  478. showMainRoute: true,
  479. activeMenu: '/example-demo/example-page'
  480. }
  481. },
  482. {
  483. path: 'example-detail',
  484. component: 'pages/index/views/example-demo/example-page/example-detail',
  485. name: 'ExampleDetail',
  486. meta: {
  487. title: '列表综合实例-详情',
  488. noTagsView: true,
  489. noCache: true,
  490. hidden: true,
  491. showMainRoute: true,
  492. activeMenu: '/example-demo/example-page'
  493. }
  494. }
  495. ]
  496. },
  497. {
  498. path: '/role-demo',
  499. component: '#',
  500. redirect: '/role-demo/user',
  501. name: 'RoleDemo',
  502. meta: {
  503. title: '权限管理',
  504. icon: 'user',
  505. alwaysShow: true
  506. },
  507. children: [
  508. {
  509. path: 'user',
  510. component: 'pages/index/views/role-demo/user/index',
  511. name: 'User',
  512. meta: {
  513. title: '用户管理'
  514. }
  515. },
  516. {
  517. path: 'role',
  518. component: 'pages/index/views/role-demo/role/index',
  519. name: 'Role',
  520. meta: {
  521. title: '角色管理'
  522. }
  523. }
  524. ]
  525. }
  526. ]