Files
energy_storage/web/src/views/MainView.vue

92 lines
1.7 KiB
Vue
Raw Normal View History

2025-08-29 12:06:02 +08:00
<template>
<div class="main">
<div class="header"></div>
<div class="page">
<router-view/>
</div>
<div class="menu">
<div v-for="menu in menuList" :key="menu.name" class="menu-item">
<i :class="menu.icon"></i>
{{ menu.name }}
</div>
</div>
2025-08-29 12:06:02 +08:00
</div>
</template>
<script>
// @ is an alias to /src
export default {
name: 'MainView',
components: {},
data() {
return {
menuList: [
{
name: '系统总览',
icon: 'icon-xitongguanli'
},
{
name: '系统管理',
icon: 'icon-xitongguanli',
children: [
{
name: '用户管理',
icon: 'icon-yonghuguanli',
children: [
{
name: '用户列表',
icon: 'icon-yonghuguanli',
path: '/user/list'
}
]
}
]
}
]
}
}
}
2025-08-29 12:06:02 +08:00
</script>
<style lang="scss" scoped>
.main {
width: 100%;
height: 100%;
background-image: url('@/assets/images/mainBg.png');
background-size: 100% 100%;
background-repeat: no-repeat;
}
.header {
width: 100%;
height: 80px;
border: 1px solid red;
}
.page{
width: calc(100% - 20px);
height: calc(100% - 80px - 15px - 47px - 60px);
margin: 40px 10px 20px 10px;
border-radius: 20px;
background: #052F4D;
}
.menu {
position: absolute;
width: 100%;
bottom: 15px;
// height: 150px;
display: flex;
justify-content: center;
.menu-item {
width: 120px;
height: 47px;
line-height: 47px;
text-align: center;
border-radius: 20px;
background: #04608e;
color: #fff;
font-size: 20px;
font-weight: 700;
}
}
</style>