From 20c85c8e80eb3fe173a2b26cf15f866f8ff54515 Mon Sep 17 00:00:00 2001 From: "@user8949" Date: Wed, 19 Mar 2025 13:29:09 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E9=A6=96=E9=A1=B5=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Jyh/Home/index.vue | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/views/Jyh/Home/index.vue b/src/views/Jyh/Home/index.vue index b102c3c..19f600a 100644 --- a/src/views/Jyh/Home/index.vue +++ b/src/views/Jyh/Home/index.vue @@ -71,7 +71,7 @@
{{ item.subject }} - {{ item.importance }} + {{ tagMap[item.importance].text }}
@@ -124,9 +124,22 @@ const homeSearch = ref(null); const dropdownWidth = ref(0); const selectedCate = ref('软件'); const tagMap = { - '高': '#f66f6a', - '中': '#fac20a', - '低': '#5e7ce0' + 'Critical': { + text: '致命', + color: '#c7000b' + }, + 'High': { + text: '高', + color: '#f66f6a' + }, + 'Medium': { + text: '中', + color: '#fac20a' + }, + 'Low': { + text: '低', + color: '#5e7ce0' + } } const searchInput = ref(null); @@ -238,7 +251,6 @@ getNoticeList(); .home-content { font-size: 14px; - height: 50%; width: 50%; display: flex; flex-direction: column;