From c027533d4ff421c4b6e412d0dfee22357f6081d3 Mon Sep 17 00:00:00 2001
From: tcy <1193318383@qq.com>
Date: Mon, 22 Sep 2025 16:49:50 +0800
Subject: [PATCH] =?UTF-8?q?feat(=E5=AF=B9=E8=AF=9D=E6=A1=86=E6=A0=B7?=
=?UTF-8?q?=E5=BC=8F):=20=E9=87=8D=E6=9E=84=E5=AF=B9=E8=AF=9D=E6=A1=86?=
=?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=B9=B6=E6=B7=BB=E5=8A=A0=E8=AF=A6=E7=BB=86?=
=?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=B1=95=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 调整对话框布局和样式,增加顶部对齐
- 添加设备状态、运行信息等详细展示区域
- 实现不同状态的颜色区分显示
- 默认隐藏对话框,改为点击触发显示
---
src/assets/styles/dialog.scss | 101 +++++++++++++++++-
.../siteOverview/components/status.vue | 89 ++++++++++++++-
2 files changed, 185 insertions(+), 5 deletions(-)
diff --git a/src/assets/styles/dialog.scss b/src/assets/styles/dialog.scss
index a00f472..5e92c76 100644
--- a/src/assets/styles/dialog.scss
+++ b/src/assets/styles/dialog.scss
@@ -1,8 +1,12 @@
#custom-dialog {
padding: 0;
+ top: 0;
.el-dialog__header {
- display: none;
+ // display: none;
+ border: none;
+ padding: 0;
+ margin: 0;
}
.el-dialog__body {
@@ -10,7 +14,100 @@
}
.alert-content {
- padding: 80px;
background: linear-gradient(180deg, rgba(0, 119, 255, 0.23) 0%, rgba(255, 255, 255, 0) 100%);
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding-left: 20px;
+ padding-right: 50px;
+
+ .info {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+
+ .title {
+ color: rgba(0, 30, 59, 1);
+ font-size: 20px;
+ font-weight: bold;
+ }
+
+ .name {
+ color: rgba(0, 30, 59, 1);
+ font-weight: bold;
+ }
+
+ .icon {
+ display: flex;
+ align-items: center;
+ font-size: 12px;
+
+ .last-update {
+ // font-size: ;
+ color: rgba(113, 128, 150, 1);
+ margin-left: 15px;
+ }
+
+ svg {
+ width: 15px;
+ height: 15px;
+ }
+
+ .text {
+ font-size: 12px;
+ margin-left: 10px;
+ }
+
+
+ }
+
+
+ }
+
+ .img {
+ width: 240px;
+ height: 240px;
+
+ img {
+ width: 100%;
+ height: 100%;
+ display: block;
+ }
+ }
+
+ .info-box {
+ font-size: 12px;
+ display: flex;
+ gap: 40px;
+ margin-left: 30px;
+
+ .item {
+ display: flex;
+ flex-direction: column;
+ gap: 20px;
+ }
+
+ .title {
+ color: rgba(113, 128, 150, 1);
+ margin-bottom: 10px;
+ }
+
+ .text {
+ font-weight: bold;
+ color: rgba(0, 30, 59, 1);
+ }
+ }
+ }
+
+ .alert-content .success {
+ color: rgba(0, 184, 122, 1) !important;
+ }
+
+ .alert-content .orange {
+ color: rgba(255, 153, 0, 1) !important;
+ }
+
+ .alert-content .red {
+ color: rgba(227, 39, 39, 1) !important;
}
}
\ No newline at end of file
diff --git a/src/views/pvSystem/siteOverview/components/status.vue b/src/views/pvSystem/siteOverview/components/status.vue
index f99e9e3..db31309 100644
--- a/src/views/pvSystem/siteOverview/components/status.vue
+++ b/src/views/pvSystem/siteOverview/components/status.vue
@@ -54,11 +54,94 @@
-