123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <template>
- <div id="menus">
- <el-menu :default-active="thisRouter()" class="el-menu-vertical-demo" :router="false" :default-openeds="defalutMenu" @select="to">
- <el-menu-item index="/"> <i class="el-icon-s-grid"></i>首页 </el-menu-item>
- <el-submenu index="1">
- <template v-slot:title>
- <i class="el-icon-s-grid"></i>
- <span>金融数字超市</span>
- </template>
- <el-menu-item-group>
- <el-menu-item index="/supermarket/debt">债权产品</el-menu-item>
- <el-menu-item index="/supermarket/stock">股权产品</el-menu-item>
- </el-menu-item-group>
- </el-submenu>
- <el-submenu index="2">
- <template v-slot:title>
- <i class="el-icon-s-grid"></i>
- <span>金融机构</span>
- </template>
- <el-menu-item-group>
- <el-menu-item index="/institution/index">银行</el-menu-item>
- <el-menu-item index="/institution/index">非银行</el-menu-item>
- </el-menu-item-group>
- </el-submenu>
- <el-submenu index="3">
- <template v-slot:title>
- <i class="el-icon-s-grid"></i>
- <span>用户管理</span>
- </template>
- <el-menu-item-group>
- <el-menu-item index="/companyuser/index">企业用户</el-menu-item>
- <el-menu-item index="/otheruser/index">其他用户</el-menu-item>
- </el-menu-item-group>
- </el-submenu>
- <el-submenu index="4">
- <template v-slot:title>
- <i class="el-icon-s-grid"></i>
- <span>企业信息管理</span>
- </template>
- <el-menu-item-group>
- <el-menu-item index="/companyup/index">待审核</el-menu-item>
- <el-menu-item index="/companyup/index">审核通过</el-menu-item>
- <el-menu-item index="/companyup/index">审核拒绝</el-menu-item>
- </el-menu-item-group>
- </el-submenu>
- <el-submenu index="5">
- <template v-slot:title>
- <i class="el-icon-s-grid"></i>
- <span>企业认证管理</span>
- </template>
- <el-menu-item-group>
- <el-menu-item index="/companyidentify/index">待审核</el-menu-item>
- <el-menu-item index="/companyidentify/index">审核通过</el-menu-item>
- <el-menu-item index="/companyidentify/index">审核拒绝</el-menu-item>
- </el-menu-item-group>
- </el-submenu>
- </el-menu>
- </div>
- </template>
- <script>
- export default {
- name: 'menus',
- props: {},
- components: {},
- data: () => ({
- // defalutMenu: ['1', '2', '3'],
- defalutMenu: [],
- defalutPage: '',
- }),
- created() {},
- computed: {},
- methods: {
- thisRouter() {
- console.log(this.$route.path);
- },
- to(index) {
- this.$router.push({ path: index });
- },
- },
- };
- </script>
- <style lang="less" scoped></style>
|