2026-02-24 23:26:41 +08:00
|
|
|
<template>
|
2026-03-05 18:32:39 +08:00
|
|
|
<div class="layout-container">
|
|
|
|
|
<div class="header-section">
|
|
|
|
|
<el-card shadow="hover" class="header-card">
|
|
|
|
|
<div class="header-content">
|
|
|
|
|
<UserTop
|
|
|
|
|
userName="超级管理员"
|
|
|
|
|
weatherInfo="今日小雪;夜间:多云;温度:(-4.0℃ 至 2.0℃);东北风/1-3级"
|
|
|
|
|
/>
|
2026-03-03 17:35:54 +08:00
|
|
|
</div>
|
2026-03-05 18:32:39 +08:00
|
|
|
</el-card>
|
2026-03-03 17:35:54 +08:00
|
|
|
</div>
|
2026-03-05 18:32:39 +08:00
|
|
|
<div class="main-section">
|
|
|
|
|
<div class="left-section">
|
|
|
|
|
<el-card shadow="hover" class="card-item card-1">
|
|
|
|
|
<NoteLeft />
|
|
|
|
|
</el-card>
|
|
|
|
|
<el-card shadow="hover" class="card-item card-2">
|
|
|
|
|
<AlertMain />
|
|
|
|
|
</el-card>
|
|
|
|
|
<el-card shadow="hover" class="card-item card-3">
|
|
|
|
|
<QuickLogin />
|
|
|
|
|
</el-card>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="right-section">
|
|
|
|
|
<div class="right-top-section">
|
|
|
|
|
<el-card class="right-card right-top-card">
|
|
|
|
|
<div class="right-placeholder">上区域内容</div>
|
|
|
|
|
</el-card>
|
2026-03-03 17:35:54 +08:00
|
|
|
</div>
|
2026-03-05 18:32:39 +08:00
|
|
|
<div class="right-bottom-section">
|
|
|
|
|
<el-card class="right-card right-bottom-card">
|
|
|
|
|
<div class="right-placeholder">下区域内容</div>
|
2026-03-03 17:35:54 +08:00
|
|
|
</el-card>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-02-24 23:26:41 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2026-03-05 18:32:39 +08:00
|
|
|
import { ref } from 'vue'
|
|
|
|
|
import UserTop from './components/UserTop.vue';
|
|
|
|
|
import NoteLeft from './components/Note.vue'
|
|
|
|
|
import AlertMain from './components/Alert.vue'
|
|
|
|
|
import QuickLogin from './components/Quick.vue'
|
2026-02-24 23:26:41 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
2026-03-05 18:32:39 +08:00
|
|
|
.layout-container {
|
2026-03-03 17:35:54 +08:00
|
|
|
width: 100%;
|
2026-03-05 18:32:39 +08:00
|
|
|
height: 100%;
|
2026-03-03 17:35:54 +08:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2026-03-05 18:32:39 +08:00
|
|
|
padding: 8px;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
background-color: #f5f7fa;
|
|
|
|
|
box-sizing: border-box;
|
2026-03-03 17:35:54 +08:00
|
|
|
}
|
|
|
|
|
|
2026-03-05 18:32:39 +08:00
|
|
|
.header-section {
|
|
|
|
|
height: 10%;
|
2026-03-03 17:35:54 +08:00
|
|
|
width: 100%;
|
2026-03-05 18:32:39 +08:00
|
|
|
box-sizing: border-box;
|
2026-03-03 17:35:54 +08:00
|
|
|
}
|
|
|
|
|
|
2026-03-05 18:32:39 +08:00
|
|
|
.header-card {
|
|
|
|
|
height: 100%;
|
2026-03-03 17:35:54 +08:00
|
|
|
display: flex;
|
2026-03-05 18:32:39 +08:00
|
|
|
align-items: stretch !important;
|
|
|
|
|
justify-content: stretch !important;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
transition: all 0.3s ease;
|
2026-03-03 17:35:54 +08:00
|
|
|
}
|
|
|
|
|
|
2026-03-05 18:32:39 +08:00
|
|
|
.header-content {
|
2026-03-03 17:35:54 +08:00
|
|
|
width: 100%;
|
2026-03-05 18:32:39 +08:00
|
|
|
height: 100%;
|
2026-03-03 17:35:54 +08:00
|
|
|
}
|
|
|
|
|
|
2026-03-05 18:32:39 +08:00
|
|
|
.main-section {
|
|
|
|
|
height: 90%;
|
2026-03-03 17:35:54 +08:00
|
|
|
width: 100%;
|
2026-03-05 18:32:39 +08:00
|
|
|
display: flex;
|
|
|
|
|
gap: 8px;
|
2026-03-03 17:35:54 +08:00
|
|
|
box-sizing: border-box;
|
2026-03-05 18:32:39 +08:00
|
|
|
min-width: 0;
|
2026-03-03 17:35:54 +08:00
|
|
|
}
|
|
|
|
|
|
2026-03-05 18:32:39 +08:00
|
|
|
.left-section {
|
|
|
|
|
width: 35%;
|
2026-03-03 17:35:54 +08:00
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
2026-03-05 18:32:39 +08:00
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
flex-shrink: 0;
|
2026-03-03 17:35:54 +08:00
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-05 18:32:39 +08:00
|
|
|
.card-item {
|
|
|
|
|
flex: 1;
|
2026-03-03 17:35:54 +08:00
|
|
|
display: flex;
|
2026-03-05 18:32:39 +08:00
|
|
|
align-items: stretch !important;
|
|
|
|
|
justify-content: stretch !important;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
min-height: 80px;
|
2026-03-03 17:35:54 +08:00
|
|
|
}
|
|
|
|
|
|
2026-03-05 18:32:39 +08:00
|
|
|
.right-section {
|
2026-03-03 17:35:54 +08:00
|
|
|
flex: 1;
|
2026-03-05 18:32:39 +08:00
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
flex-shrink: 0;
|
2026-03-03 17:35:54 +08:00
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-05 18:32:39 +08:00
|
|
|
.right-top-section {
|
|
|
|
|
height: 50%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
box-sizing: border-box;
|
2026-03-03 17:35:54 +08:00
|
|
|
}
|
|
|
|
|
|
2026-03-05 18:32:39 +08:00
|
|
|
.right-bottom-section {
|
|
|
|
|
height: 50%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
box-sizing: border-box;
|
2026-03-03 17:35:54 +08:00
|
|
|
}
|
|
|
|
|
|
2026-03-05 18:32:39 +08:00
|
|
|
.right-card {
|
|
|
|
|
height: 100%;
|
2026-03-03 17:35:54 +08:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2026-03-05 18:32:39 +08:00
|
|
|
justify-content: center;
|
|
|
|
|
color: #999;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.04);
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
background-color: #fff;
|
2026-03-03 17:35:54 +08:00
|
|
|
}
|
|
|
|
|
|
2026-03-05 18:32:39 +08:00
|
|
|
.right-card:hover {
|
|
|
|
|
box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.08);
|
|
|
|
|
transform: translateY(-2px);
|
2026-03-03 17:35:54 +08:00
|
|
|
}
|
|
|
|
|
|
2026-03-05 18:32:39 +08:00
|
|
|
.right-placeholder {
|
|
|
|
|
padding: 4px;
|
|
|
|
|
text-align: center;
|
2026-03-03 17:35:54 +08:00
|
|
|
}
|
|
|
|
|
|
2026-03-05 18:32:39 +08:00
|
|
|
:deep(.el-card) {
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
height: 100%;
|
|
|
|
|
padding: 0 !important;
|
|
|
|
|
margin: 0 !important;
|
2026-03-03 17:35:54 +08:00
|
|
|
}
|
|
|
|
|
|
2026-03-05 18:32:39 +08:00
|
|
|
:deep(.el-card__body) {
|
|
|
|
|
padding: 4px !important;
|
|
|
|
|
margin: 0 !important;
|
|
|
|
|
height: 100%;
|
|
|
|
|
box-sizing: border-box;
|
2026-03-03 17:35:54 +08:00
|
|
|
}
|
|
|
|
|
|
2026-03-05 18:32:39 +08:00
|
|
|
:deep(.el-card:hover) {
|
|
|
|
|
box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.08);
|
|
|
|
|
transform: translateY(-2px);
|
2026-03-03 17:35:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (max-width: 768px) {
|
2026-03-05 18:32:39 +08:00
|
|
|
.main-section {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
.left-section, .right-section {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 50%;
|
|
|
|
|
flex: none;
|
|
|
|
|
}
|
|
|
|
|
.left-section {
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
}
|
|
|
|
|
.card-item {
|
|
|
|
|
min-width: 120px;
|
|
|
|
|
min-height: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.right-top-section, .right-bottom-section {
|
|
|
|
|
height: 50%;
|
2026-03-03 17:35:54 +08:00
|
|
|
}
|
2026-02-24 23:26:41 +08:00
|
|
|
}
|
|
|
|
|
</style>
|