router.ts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. const appmenu = {
  2. url: '/account/menu',
  3. type: 'get',
  4. response: {
  5. code: 200,
  6. msg: 'success',
  7. total: 0,
  8. data: [
  9. {
  10. sort: 1,
  11. title: '期货市场',
  12. rulekey: 'market',
  13. code: 'market',
  14. path: "/market",
  15. url: '',
  16. component: 'Page',
  17. icon: "el-icon-s-platform",
  18. isshow: true,
  19. remark: '',
  20. auth: [],
  21. children: [
  22. {
  23. sort: 1,
  24. title: '行情',
  25. rulekey: 'market_quote',
  26. code: 'market_quote',
  27. path: "quote",
  28. url: '',
  29. component: 'views/market/quote/index.vue',
  30. icon: "el-icon-s-platform",
  31. isshow: true,
  32. remark: '',
  33. auth: [
  34. {
  35. label: '交易',
  36. rulekey: "market_quote_trade",
  37. code: 'trade',
  38. isshow: true,
  39. remark: '',
  40. },
  41. {
  42. label: '详情',
  43. rulekey: "market_quote_detail",
  44. code: 'detail',
  45. isshow: true,
  46. remark: '',
  47. }
  48. ],
  49. children: [
  50. {
  51. sort: 1,
  52. title: '现货明细',
  53. rulekey: 'market_quote_spot',
  54. code: 'market_quote_spot',
  55. component: 'views/market/quote/components/spot/index.vue',
  56. icon: "el-icon-s-platform",
  57. isshow: true,
  58. remark: '',
  59. auth: []
  60. },
  61. {
  62. sort: 2,
  63. title: '期货明细',
  64. rulekey: 'market_quote_futures',
  65. code: 'market_quote_futures',
  66. component: 'views/market/quote/components/futures/index.vue',
  67. icon: "el-icon-s-platform",
  68. isshow: true,
  69. remark: '',
  70. auth: []
  71. }
  72. ],
  73. },
  74. {
  75. sort: 2,
  76. title: '商品',
  77. rulekey: 'market_goods',
  78. code: 'market_goods',
  79. path: "goods",
  80. url: '',
  81. component: 'views/market/goods/index.vue',
  82. icon: "el-icon-s-platform",
  83. isshow: true,
  84. remark: '',
  85. auth: [
  86. {
  87. label: '修改',
  88. rulekey: "market_goods_modify",
  89. code: 'modify',
  90. isshow: true,
  91. remark: '',
  92. },
  93. {
  94. label: '详情',
  95. rulekey: "market_goods_detail",
  96. code: 'detail',
  97. isshow: true,
  98. remark: '',
  99. }
  100. ],
  101. children: [],
  102. },
  103. ]
  104. },
  105. ]
  106. }
  107. };
  108. export default [
  109. appmenu,
  110. ]