update: 首页更新
This commit is contained in:
@@ -71,7 +71,7 @@
|
|||||||
<div class="flex items-center justify-between w-full">
|
<div class="flex items-center justify-between w-full">
|
||||||
<div class="cursor-pointer notice-content flex gap-2 items-center" @click="openWarningDetail(item, index)">
|
<div class="cursor-pointer notice-content flex gap-2 items-center" @click="openWarningDetail(item, index)">
|
||||||
<span>{{ item.subject }}</span>
|
<span>{{ item.subject }}</span>
|
||||||
<d-tag :color="tagMap[item.importance]" size="sm">{{ item.importance }}</d-tag>
|
<d-tag v-if="item.importance" :color="tagMap[item.importance].color" size="sm">{{ tagMap[item.importance].text }}</d-tag>
|
||||||
</div>
|
</div>
|
||||||
<div class="time-container">
|
<div class="time-container">
|
||||||
<d-icon name="icon-time"></d-icon>
|
<d-icon name="icon-time"></d-icon>
|
||||||
@@ -124,9 +124,22 @@ const homeSearch = ref(null);
|
|||||||
const dropdownWidth = ref(0);
|
const dropdownWidth = ref(0);
|
||||||
const selectedCate = ref('软件');
|
const selectedCate = ref('软件');
|
||||||
const tagMap = {
|
const tagMap = {
|
||||||
'高': '#f66f6a',
|
'Critical': {
|
||||||
'中': '#fac20a',
|
text: '致命',
|
||||||
'低': '#5e7ce0'
|
color: '#c7000b'
|
||||||
|
},
|
||||||
|
'High': {
|
||||||
|
text: '高',
|
||||||
|
color: '#f66f6a'
|
||||||
|
},
|
||||||
|
'Medium': {
|
||||||
|
text: '中',
|
||||||
|
color: '#fac20a'
|
||||||
|
},
|
||||||
|
'Low': {
|
||||||
|
text: '低',
|
||||||
|
color: '#5e7ce0'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const searchInput = ref(null);
|
const searchInput = ref(null);
|
||||||
@@ -238,7 +251,6 @@ getNoticeList();
|
|||||||
|
|
||||||
.home-content {
|
.home-content {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
height: 50%;
|
|
||||||
width: 50%;
|
width: 50%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
Reference in New Issue
Block a user