Commit cc459800 authored by 张伯涛's avatar 张伯涛

机房可视化

parent 77666217
...@@ -14,6 +14,10 @@ ...@@ -14,6 +14,10 @@
> >
<sidebar-item v-for="route in permission_routes" :key="route.path" :item="route" :base-path="route.path" /> <sidebar-item v-for="route in permission_routes" :key="route.path" :item="route" :base-path="route.path" />
</el-menu> </el-menu>
<div onclick="handleWindowOpen()" class="menuLinkDiv">
<i class="el-icon-view" />
<span class="menuLink">机房可视化</span>
</div>
</el-scrollbar> </el-scrollbar>
</div> </div>
</template> </template>
...@@ -49,8 +53,45 @@ export default { ...@@ -49,8 +53,45 @@ export default {
isCollapse() { isCollapse() {
return !this.sidebar.opened return !this.sidebar.opened
} }
},
mounted() {
window.handleWindowOpen = this.handleWindowOpen
},
methods: {
handleWindowOpen() {
window.open('http://47.110.242.76:8088/')
}
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.sidebar-menu{
.menuLinkDiv{
height: 56px;
line-height: 56px;
font-size: 14px;
//padding: 0 20px;
list-style: none;
box-sizing: border-box;
white-space: nowrap;
cursor: pointer;
position: relative;
.el-icon-view{
position: relative;
top: 3px;
margin-left: 17px;
margin-right: 15px;
font-size: 20px;
color: rgb(255, 255, 255);
}
.menuLink{
line-height: 56px;
font-size: 14px;
color: rgb(255, 255, 255);
}
&:hover {
background: #1A2137;
}
}
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment