fix: 资产总览,ui功能优化。

This commit is contained in:
tianyongbao
2025-11-06 15:33:56 +08:00
parent 630e4dc184
commit 324c613888

View File

@@ -1,5 +1,6 @@
<template>
<div class="app-container" style="overflow: auto">
<div class="app-container">
<div class="content-wrapper">
<div class="header-title" ref="searchHeightRef">
<el-icon class="title-icon"><TrendCharts /></el-icon>
资产总览
@@ -832,6 +833,7 @@
<div></div>
</div>
</div>
</template>
<script setup name="facilityType">
import {
@@ -1050,83 +1052,85 @@ onMounted(() => {
<style lang="scss" scoped>
.app-container {
background: #f5f7fa;
padding: 24px;
padding: 20px;
min-height: 100vh;
.header-title {
width: 100%;
height: 50px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
margin-bottom: 20px;
overflow: hidden;
display: flex;
align-items: center;
padding: 0 24px;
border-radius: 12px;
color: #ffffff;
flex-direction: column;
}
.content-wrapper {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
padding-right: 10px;
&::-webkit-scrollbar {
width: 8px;
}
&::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.05);
border-radius: 4px;
}
&::-webkit-scrollbar-thumb {
background: rgba(102, 126, 234, 0.3);
border-radius: 4px;
transition: background 0.3s;
&:hover {
background: rgba(102, 126, 234, 0.5);
}
}
}
.header-title {
font-size: 18px;
font-weight: 600;
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
position: relative;
overflow: hidden;
&::before {
content: '';
position: absolute;
top: -50%;
right: -10%;
width: 200px;
height: 200px;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
}
&::after {
content: '';
position: absolute;
bottom: -30%;
right: 20%;
width: 150px;
height: 150px;
background: rgba(255, 255, 255, 0.08);
border-radius: 50%;
}
color: #303133;
margin-bottom: 20px;
padding-left: 12px;
border-left: 4px solid #667eea;
display: flex;
align-items: center;
background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
padding: 16px 20px;
border-radius: 12px;
box-shadow: 0 2px 12px rgba(102, 126, 234, 0.08);
.title-icon {
margin-right: 12px;
font-size: 22px;
z-index: 1;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
color: #667eea;
}
}
.header-con {
.header-con {
width: 100%;
min-height: 120px;
min-height: 100px;
background-color: transparent;
margin-bottom: 20px;
display: flex;
justify-content: space-between;
align-items: stretch;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 20px;
.item {
flex: 1;
min-width: 0;
background: #ffffff;
background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
border-radius: 16px;
display: flex;
align-items: center;
padding: 24px;
box-shadow: 0 4px 16px rgba(102, 126, 234, 0.08), 0 0 0 1px rgba(102, 126, 234, 0.05);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
cursor: pointer;
border: 1px solid rgba(255, 255, 255, 0.8);
list-style: none !important;
&:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
&::before,
&::after {
display: none !important;
content: none !important;
}
&::before {
@@ -1135,105 +1139,154 @@ onMounted(() => {
top: 0;
left: 0;
right: 0;
height: 4px;
background: inherit;
height: 3px;
background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
opacity: 0;
transition: opacity 0.3s ease;
display: block !important;
}
&:hover::before {
&:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15), 0 0 0 1px rgba(102, 126, 234, 0.1);
&::before {
opacity: 1;
}
.icon-wrapper {
width: 64px;
height: 64px;
border-radius: 16px;
transform: scale(1.08);
.item-icon {
transform: rotate(8deg);
}
}
}
.icon-wrapper {
width: 70px;
height: 70px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 18px;
margin-right: 20px;
flex-shrink: 0;
background: rgba(255, 255, 255, 0.25);
backdrop-filter: blur(10px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.05) 100%);
border: 1px solid rgba(102, 126, 234, 0.1);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
&::before,
&::after {
display: none !important;
content: none !important;
}
.item-icon {
font-size: 32px;
color: #ffffff;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
font-size: 40px;
transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
}
&:hover .icon-wrapper {
transform: rotate(10deg) scale(1.1);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.info-sum {
flex: 1;
min-width: 0;
z-index: 1;
&::before,
&::after {
display: none !important;
content: none !important;
}
.title {
color: rgba(255, 255, 255, 0.95);
font-size: 16px;
margin-bottom: 10px;
font-weight: 600;
color: #909399;
font-size: 14px;
margin-bottom: 8px;
font-weight: 500;
letter-spacing: 0.5px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
letter-spacing: 0.5px;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
&::before,
&::after {
display: none !important;
content: none !important;
}
}
.num {
color: #ffffff;
font-size: 26px;
font-size: 28px;
font-family: DIN, Arial, sans-serif;
font-weight: 700;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
line-height: 1.2;
word-break: break-all;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
display: flex;
align-items: baseline;
gap: 4px;
white-space: nowrap;
&::before,
&::after {
display: none !important;
content: none !important;
}
span {
font-size: 14px;
color: rgba(255, 255, 255, 0.85);
color: #909399;
font-weight: 500;
margin-left: 4px;
background: none;
-webkit-text-fill-color: #909399;
margin-left: 0;
&::before,
&::after {
display: none !important;
content: none !important;
}
}
}
}
// Gradient color variants
// Color variants - icon colors only
&.gradient-blue {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-color: rgba(102, 126, 234, 0.3);
.icon-wrapper .item-icon {
color: #409eff;
}
}
&.gradient-green {
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
border-color: rgba(240, 147, 251, 0.3);
.icon-wrapper .item-icon {
color: #67c23a;
}
}
&.gradient-orange {
background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
border-color: rgba(250, 112, 154, 0.3);
.icon-wrapper .item-icon {
color: #e6a23c;
}
}
&.gradient-purple {
background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
border-color: rgba(48, 207, 208, 0.3);
.icon-wrapper .item-icon {
color: #9c27b0;
}
}
&.gradient-red {
background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
border-color: rgba(255, 107, 107, 0.3);
.icon-wrapper .item-icon {
color: #f56c6c;
}
}
&.gradient-gray {
background: linear-gradient(135deg, #868f96 0%, #596164 100%);
border-color: rgba(134, 143, 150, 0.3);
.icon-wrapper .item-icon {
color: #909399;
}
}
}
@@ -1241,10 +1294,38 @@ onMounted(() => {
// Responsive design
@media (max-width: 1400px) {
.app-container .header-con .item {
.info-sum .num {
font-size: 22px;
.header-con {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 1000px) {
.header-con {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.app-container {
padding: 16px;
.header-title {
font-size: 16px;
padding: 14px 18px;
.title-icon {
font-size: 18px;
}
}
}
.header-con {
grid-template-columns: 1fr;
gap: 12px;
margin-bottom: 12px;
.item {
padding: 20px;
.icon-wrapper {
width: 56px;
@@ -1254,44 +1335,9 @@ onMounted(() => {
font-size: 28px;
}
}
}
}
@media (max-width: 1200px) {
.app-container .header-con {
flex-wrap: wrap;
.item {
min-width: calc(50% - 10px);
}
}
}
@media (max-width: 768px) {
.app-container {
padding: 16px;
.header-title {
height: 45px;
font-size: 16px;
padding: 0 16px;
.title-icon {
font-size: 18px;
}
}
.header-con {
gap: 12px;
margin-bottom: 16px;
.item {
min-width: 100%;
padding: 20px;
.info-sum .num {
font-size: 20px;
}
font-size: 24px;
}
}
}