menus.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <div id="menus">
  3. <el-menu :default-active="thisRouter()" class="el-menu-vertical-demo" :router="false" :default-openeds="defalutMenu" @select="to">
  4. <el-menu-item index="/"> <i class="el-icon-s-grid"></i>首页 </el-menu-item>
  5. <el-submenu index="1">
  6. <template v-slot:title>
  7. <i class="el-icon-s-grid"></i>
  8. <span>金融数字超市</span>
  9. </template>
  10. <el-menu-item-group>
  11. <el-menu-item index="/supermarket/debt">债权产品</el-menu-item>
  12. <el-menu-item index="/supermarket/stock">股权产品</el-menu-item>
  13. </el-menu-item-group>
  14. </el-submenu>
  15. <el-submenu index="2">
  16. <template v-slot:title>
  17. <i class="el-icon-s-grid"></i>
  18. <span>金融机构</span>
  19. </template>
  20. <el-menu-item-group>
  21. <el-menu-item index="/institution/index">银行</el-menu-item>
  22. <el-menu-item index="/institution/index">非银行</el-menu-item>
  23. </el-menu-item-group>
  24. </el-submenu>
  25. <el-submenu index="3">
  26. <template v-slot:title>
  27. <i class="el-icon-s-grid"></i>
  28. <span>用户管理</span>
  29. </template>
  30. <el-menu-item-group>
  31. <el-menu-item index="/companyuser/index">企业用户</el-menu-item>
  32. <el-menu-item index="/otheruser/index">其他用户</el-menu-item>
  33. </el-menu-item-group>
  34. </el-submenu>
  35. <el-submenu index="4">
  36. <template v-slot:title>
  37. <i class="el-icon-s-grid"></i>
  38. <span>企业信息管理</span>
  39. </template>
  40. <el-menu-item-group>
  41. <el-menu-item index="/companyup/index">待审核</el-menu-item>
  42. <el-menu-item index="/companyup/index">审核通过</el-menu-item>
  43. <el-menu-item index="/companyup/index">审核拒绝</el-menu-item>
  44. </el-menu-item-group>
  45. </el-submenu>
  46. <el-submenu index="5">
  47. <template v-slot:title>
  48. <i class="el-icon-s-grid"></i>
  49. <span>企业认证管理</span>
  50. </template>
  51. <el-menu-item-group>
  52. <el-menu-item index="/companyidentify/index">待审核</el-menu-item>
  53. <el-menu-item index="/companyidentify/index">审核通过</el-menu-item>
  54. <el-menu-item index="/companyidentify/index">审核拒绝</el-menu-item>
  55. </el-menu-item-group>
  56. </el-submenu>
  57. </el-menu>
  58. </div>
  59. </template>
  60. <script>
  61. export default {
  62. name: 'menus',
  63. props: {},
  64. components: {},
  65. data: () => ({
  66. // defalutMenu: ['1', '2', '3'],
  67. defalutMenu: [],
  68. defalutPage: '',
  69. }),
  70. created() {},
  71. computed: {},
  72. methods: {
  73. thisRouter() {
  74. console.log(this.$route.path);
  75. },
  76. to(index) {
  77. this.$router.push({ path: index });
  78. },
  79. },
  80. };
  81. </script>
  82. <style lang="less" scoped></style>