diff --git a/src/views/Jyh/Home/index.vue b/src/views/Jyh/Home/index.vue index dd3bdfd..d207fa8 100644 --- a/src/views/Jyh/Home/index.vue +++ b/src/views/Jyh/Home/index.vue @@ -59,7 +59,7 @@ 搜索 - 批量校验 + 批量校验
@@ -87,11 +87,11 @@ @click="openWarningDetail(item, index)" > {{ item.subject }} - {{ tagMap[item.importance].text }} + {{ item.importance }}
- {{ item.publishTime }} + {{ item.pulishTime }}
@@ -117,7 +117,6 @@ import { useAccount } from '@/utils/hooks/useAccount'; import AdvanceSearch from '@/components/AdvanceSearch/index.vue'; import { getHomeNoticeList } from '@/api/jyh'; import EarlyWarningDetail from '@/views/Jyh/PersonalCenter/Detail/EarlyWarningDetail.vue'; -import { useDiscussGetUserInfo } from '@/api/discussion/hook'; const { accountInfo } = useAccount(); @@ -142,23 +141,10 @@ const homeSearch = ref(null); const dropdownWidth = ref(0); const selectedCate = ref('软件'); const tagMap = { - 'Critical': { - text: '致命', - color: '#c7000b' - }, - 'High': { - text: '高', - color: '#f66f6a' - }, - 'Medium': { - text: '中', - color: '#fac20a' - }, - 'Low': { - text: '低', - color: '#5e7ce0' - } -} + 高: '#f66f6a', + 中: '#fac20a', + 低: '#5e7ce0' +}; const searchInput = ref(null); const openAdvancedSearch = () => { @@ -267,6 +253,7 @@ getNoticeList(); .home-content { font-size: 14px; + height: 80%; width: 50%; display: flex; flex-direction: column; @@ -444,11 +431,8 @@ getNoticeList(); display: flex; align-items: center; gap: 8px; - width: 150px; + width: 120px; flex-shrink: 0; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; } :deep(.devui-timeline-item-data-right) {