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