|
|
@@ -9,27 +9,18 @@
|
|
|
<!-- 数据卡片 -->
|
|
|
<div class="data-cards">
|
|
|
<div class="data-card">
|
|
|
- <div class="data-info">
|
|
|
- <i class="iconfont icon-door"></i>
|
|
|
- <div class="data-label">门禁设备</div>
|
|
|
- </div>
|
|
|
<div class="data-value">{{ doorDevices }}</div>
|
|
|
+ <div class="data-label">门禁设备</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="data-card">
|
|
|
- <div class="data-info">
|
|
|
- <i class="iconfont icon-project"></i>
|
|
|
- <div class="data-label">开通项目</div>
|
|
|
- </div>
|
|
|
<div class="data-value">{{ activeProjects }}</div>
|
|
|
+ <div class="data-label">开通项目</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="data-card">
|
|
|
- <div class="data-info">
|
|
|
- <i class="iconfont icon-access"></i>
|
|
|
- <div class="data-label">出入次数</div>
|
|
|
- </div>
|
|
|
<div class="data-value">{{ accessTimes }}</div>
|
|
|
+ <div class="data-label">出入次数</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
@@ -192,35 +183,37 @@
|
|
|
|
|
|
.smart-door {
|
|
|
background: var(--content-bg);
|
|
|
- border-radius: 4px;
|
|
|
+ border-radius: halfW(4);
|
|
|
height: 100%;
|
|
|
}
|
|
|
|
|
|
.module-title {
|
|
|
display: flex;
|
|
|
- border-radius: 4px;
|
|
|
+ border-radius: halfW(4);
|
|
|
align-items: center;
|
|
|
color: var(--title-primary);
|
|
|
background: var(--title-bg);
|
|
|
- padding: 4px 10px;
|
|
|
+ padding: halfH(4) halfW(10);
|
|
|
}
|
|
|
|
|
|
.data-cards {
|
|
|
display: flex;
|
|
|
- gap: 16px;
|
|
|
+ gap: halfW(12);
|
|
|
flex-wrap: nowrap;
|
|
|
- margin: 20px 10px;
|
|
|
+ margin: halfH(20) halfW(10);
|
|
|
background: var(--title-bg);
|
|
|
border: 1px solid rgba(64, 158, 255, 0.1);
|
|
|
- border-radius: 4px;
|
|
|
+ border-radius: halfW(4);
|
|
|
}
|
|
|
|
|
|
.data-card {
|
|
|
flex: 1;
|
|
|
- padding: 6px 10px;
|
|
|
+ padding: halfH(10) halfW(6);
|
|
|
display: flex;
|
|
|
+ flex-direction: column;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
+ gap: halfW(10);
|
|
|
&:nth-child(1) {
|
|
|
border-right: 1px solid rgba(64, 158, 255, 0.1);
|
|
|
}
|
|
|
@@ -228,34 +221,16 @@
|
|
|
border-right: 1px solid rgba(64, 158, 255, 0.1);
|
|
|
}
|
|
|
|
|
|
- .iconfont {
|
|
|
- width: 24px;
|
|
|
- height: 24px;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- background: linear-gradient(135deg, #2196f3 0%, #64b5f6 100%);
|
|
|
- border-radius: 6px;
|
|
|
- font-size: 20px;
|
|
|
- color: #ffffff;
|
|
|
- }
|
|
|
-
|
|
|
- .data-info {
|
|
|
- display: flex;
|
|
|
- gap: 12px;
|
|
|
- align-items: center;
|
|
|
- }
|
|
|
-
|
|
|
.data-label {
|
|
|
- font-size: 14px;
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: halfW(14);
|
|
|
color: var(--primary);
|
|
|
- margin-bottom: 4px;
|
|
|
}
|
|
|
|
|
|
.data-value {
|
|
|
- font-size: 24px;
|
|
|
- font-weight: 600;
|
|
|
- color: var(--title-primary, #ffffff);
|
|
|
+ font-size: halfW(18);
|
|
|
+ font-weight: 500;
|
|
|
+ color: #fff;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -263,22 +238,21 @@
|
|
|
flex: 1;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
- padding: 10px;
|
|
|
- height: calc(100% - 200px);
|
|
|
+ padding: halfH(10);
|
|
|
+ height: calc(100% - halfH(200));
|
|
|
}
|
|
|
|
|
|
.chart-title {
|
|
|
position: absolute;
|
|
|
- font-size: 14px;
|
|
|
+ font-size: halfW(14);
|
|
|
font-weight: 500;
|
|
|
color: #fff;
|
|
|
- margin-top: 10px;
|
|
|
+ margin-top: halfH(10);
|
|
|
}
|
|
|
|
|
|
.traffic-chart {
|
|
|
flex: 1;
|
|
|
width: 100%;
|
|
|
- // height: 100%;
|
|
|
- min-height: 250px;
|
|
|
+ // min-height: halfH(250);
|
|
|
}
|
|
|
</style>
|