<template> <div class="full-box"> <div class="body-left-box"> <div class="body-left-menu-top"> <div class="blt-line"></div> <div class="blt-role"></div> </div> <div class="body-left-menu"> <router-link :to="'/'+item.code" tag="div" class="menuItems" v-for="(item,index) in menuList" :key="index">{{item.name}}</router-link> <!-- <router-link to="/manageSystem/qyUserManage" tag="div" class="menuItems">企业用户</router-link> <router-link to="/manageSystem/yqUserManage" tag="div" class="menuItems">园区用户</router-link> <router-link to="/manageSystem/yqDepartmentManage" tag="div" class="menuItems">园区部门</router-link>--> </div> </div> <div class="body-right-boxs"> <router-view/> </div> </div> </template> <script> export default { name: 'monitor', data () { return { menuList:[], } }, created (){ var vm = this, menu = JSON.parse(sessionStorage.getItem("menuList")) menu.find((v)=>{ if(v.name == "后台系统管理"){ vm.menuList = v.children } }) } } </script> <style scoped> .body-left-box{float: left;width:160px;height:calc(100% - 40px);padding-top: 40px;} .body-right-boxs{width:calc(100% - 180px);height: 100%;float: right;} .body-left-box .body-left-menu-top{width: 100%;} .menuItems{width: calc(100% - 40px);height: 32px;line-height: 32px;text-align: center;margin:0 auto 10px;background:rgba(4,30,90,.3);color:#fff;cursor:pointer} .menuItems.router-link-exact-active{color:#5bc9fa;} .aaa{} .aaa{} .aaa{} .aaa{} .aaa{} .aaa{} .aaa{} .aaa{} .aaa{} </style>