|
|
@ -93,9 +93,10 @@ function logout() { |
|
|
|
</script> |
|
|
|
|
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div class="main-container"> |
|
|
|
<div class="glass-container"> |
|
|
|
<el-container> |
|
|
|
<el-aside > |
|
|
|
<el-aside> |
|
|
|
<div class="logo"> |
|
|
|
<img src="../assets/新logo.png" alt="logo" style="width: 9vh; height: 9vh" /> |
|
|
|
</div> |
|
|
@ -154,7 +155,6 @@ function logout() { |
|
|
|
<el-menu-item @click="openChangePassword">修改密码</el-menu-item> |
|
|
|
<el-menu-item @click="logout">退出登录</el-menu-item> |
|
|
|
</el-sub-menu> |
|
|
|
|
|
|
|
</el-menu> |
|
|
|
</el-header> |
|
|
|
<el-main style="margin-top: 6vh;height: auto;"> |
|
|
@ -191,15 +191,48 @@ function logout() { |
|
|
|
<ChangePassword ref="pwdRef" @confirm="showPasswordDialog = false" /> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<style scoped> |
|
|
|
.header { |
|
|
|
/* 主容器,设置背景图并居中 */ |
|
|
|
.main-container { |
|
|
|
position: fixed; |
|
|
|
top: 0; |
|
|
|
left: 0; |
|
|
|
right: 0; |
|
|
|
bottom: 0; |
|
|
|
background-image: url('@/assets/background.jpg'); /* 请将图片放在assets目录下并修改路径 */ |
|
|
|
background-size: cover; |
|
|
|
background-position: center center; /* 背景图居中 */ |
|
|
|
background-repeat: no-repeat; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
overflow: hidden; |
|
|
|
} |
|
|
|
|
|
|
|
/* 统一的毛玻璃容器 */ |
|
|
|
.glass-container { |
|
|
|
position: relative; |
|
|
|
width: 95%; |
|
|
|
height: 95vh; |
|
|
|
background: rgba(255, 255, 255, 0.8); /* 半透明白色背景 */ |
|
|
|
backdrop-filter: blur(5px); /* 统一的毛玻璃效果 */ |
|
|
|
border-radius: 12px; |
|
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); |
|
|
|
overflow: hidden; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
} |
|
|
|
|
|
|
|
.header { |
|
|
|
position: fixed; |
|
|
|
right: 2.5vw; |
|
|
|
top: 2.5vh; |
|
|
|
z-index: 80; |
|
|
|
background: white; |
|
|
|
height: 8vh; |
|
|
|
width: calc(80vw - 5vh); |
|
|
|
} |
|
|
|
|
|
|
|
.message-font { |
|
|
@ -212,6 +245,8 @@ function logout() { |
|
|
|
position: fixed; |
|
|
|
z-index: 100; |
|
|
|
height: 90vh; |
|
|
|
top: 2.5vh; |
|
|
|
left: 2.5vw; |
|
|
|
} |
|
|
|
|
|
|
|
.logo { |
|
|
@ -225,5 +260,37 @@ function logout() { |
|
|
|
border: none; |
|
|
|
padding: 0; |
|
|
|
float: right; |
|
|
|
background: transparent !important; |
|
|
|
} |
|
|
|
|
|
|
|
/* 主内容区域样式 */ |
|
|
|
.el-main { |
|
|
|
margin-top: 16vh; |
|
|
|
height: auto; |
|
|
|
padding: 20px; |
|
|
|
margin-left: 20px; |
|
|
|
margin-right: 20px; |
|
|
|
} |
|
|
|
|
|
|
|
/* 侧边栏菜单样式优化 */ |
|
|
|
.el-menu { |
|
|
|
background: transparent !important; |
|
|
|
} |
|
|
|
|
|
|
|
/* 弹窗背景设置为半透明 */ |
|
|
|
:deep(.el-dialog__wrapper .el-dialog) { |
|
|
|
background: rgba(255, 255, 255, 0.95); |
|
|
|
backdrop-filter: blur(10px); |
|
|
|
} |
|
|
|
|
|
|
|
/* 确保el-container适应毛玻璃容器 */ |
|
|
|
:deep(.el-container) { |
|
|
|
min-height: 100%; |
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
|
|
|
|
:deep(.el-container .el-container) { |
|
|
|
background: transparent; |
|
|
|
position: relative; |
|
|
|
} |
|
|
|
</style> |