From 3e1f8ad061bd50c196bbb6a5f78e681c7e02ef17 Mon Sep 17 00:00:00 2001 From: lucashu <6125220@qq.com> Date: Wed, 20 Aug 2025 18:03:57 +0800 Subject: [PATCH] 23423 --- .../Charts/MyComponents/AlarmList/config.ts | 8 +- .../Charts/MyComponents/AlarmList/index.vue | 102 ++++++++++++++---- 2 files changed, 87 insertions(+), 23 deletions(-) diff --git a/src/packages/components/Charts/MyComponents/AlarmList/config.ts b/src/packages/components/Charts/MyComponents/AlarmList/config.ts index c22d4eb..ebd8bc4 100644 --- a/src/packages/components/Charts/MyComponents/AlarmList/config.ts +++ b/src/packages/components/Charts/MyComponents/AlarmList/config.ts @@ -6,13 +6,13 @@ import dataJson from './data.json' export const option = { dataset: dataJson.source, header: ['报警事件', '时间', '所属企业', '状态'], - headerTextColor: '#ffffff', + headerTextColor: '#B4B4B4', textColor: '#ffffff', - headerBackgroundColor: '#1A385A', - itemBackgroundColor: '#0F233E', + headerBackgroundColor: '#17325F', + itemBackgroundColor: 'transparent', statusColors: { '未解决': '#FF4D4F', - '已解决': '#52C41A' + '已解决': '#B4B4B4' }, headerHeight: 40, itemHeight: 35, diff --git a/src/packages/components/Charts/MyComponents/AlarmList/index.vue b/src/packages/components/Charts/MyComponents/AlarmList/index.vue index 1b2a47a..361dcc3 100644 --- a/src/packages/components/Charts/MyComponents/AlarmList/index.vue +++ b/src/packages/components/Charts/MyComponents/AlarmList/index.vue @@ -2,21 +2,51 @@
- - {{ option.title }} +
+ +
+
+ {{ option.title }} +
+
+
+
+
+
-
-
+
+
{{ header }}
-
-
{{ item.event }}
-
{{ item.time }}
-
{{ item.enterprise }}
-
{{ item.status }}
+
+
+ {{ item.event }} +
+
+ {{ item.time }} +
+
+ {{ item.enterprise }} +
+
+ {{ item.status }} +
@@ -46,28 +76,54 @@ const getStatusColor = (status: string) => { height: 100%; display: flex; flex-direction: column; - background-color: #0F233E; + background-color: #0a162b; color: #ffffff; - padding: 10px; + padding: 15px; box-sizing: border-box; .header { display: flex; + justify-content: space-between; align-items: center; - margin-bottom: 10px; + margin-bottom: 15px; .title { display: flex; align-items: center; - .title-icon { - font-size: 24px; - margin-right: 10px; + .title-prefix { + width: 35px; + height: 35px; + background-color: #1e55a7; + clip-path: polygon(0 0, 100% 0, 75% 100%, 0% 100%); + display: flex; + justify-content: center; + align-items: center; + .title-icon { + font-size: 22px; + } + } + .title-text { + height: 35px; + display: flex; + align-items: center; + background-color: #17325f; + padding: 0 20px 0 20px; + margin-left: -8px; + clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%); + } + } + .header-right-squares { + display: flex; + align-items: center; + .square { + width: 10px; + height: 10px; + margin-left: 5px; } } } .table-header { display: flex; - justify-content: space-between; align-items: center; padding: 0 10px; .header-item { @@ -81,15 +137,23 @@ const getStatusColor = (status: string) => { overflow-y: auto; .table-row { display: flex; - justify-content: space-between; align-items: center; padding: 0 10px; - border-bottom: 1px solid #1A385A; + border-bottom: 1px solid rgba(26, 56, 90, 0.8); + &:first-child { + margin-top: 5px; + } + &:last-child { + border-bottom: none; + } .row-item { flex: 1; text-align: center; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } } } } - + \ No newline at end of file