CN-1612 feat: 部分css重构内容:detection检测列表与下拉详情

This commit is contained in:
刘洪洪
2024-04-03 11:57:54 +08:00
parent 66d8a1d4a7
commit 86b9082f99
13 changed files with 246 additions and 161 deletions

View File

@@ -7,8 +7,6 @@
<div class="filter__header">{{filter.title}}</div>
<div class="filter__body" style="position: relative">
<!-- <loading :loading="false" style="top: -5px;"></loading>-->
<div class="filter__body-item"
v-for="(data, i) in filter.data.slice(0, filter.showIndex)"
:key="i"

View File

@@ -6,8 +6,7 @@
<div class="no-data" v-if="myListData.length===0">{{ $t('npm.noData') }}</div>
<div v-if="!isCollapse" @click="collapse" class="cn-detection__shadow new-cn-detection__shadow"></div>
<detection-row
style="margin-bottom: 10px"
class="detection-border"
class="detection-border margin-b-10"
v-for="(data, index) in myListData"
:detection="data"
:page-type="pageType"

View File

@@ -169,7 +169,7 @@ export default {
let color = '#8FA1BE'
if (detection.startTime && detection.endTime) {
if (getMillisecond(detection.endTime) - getMillisecond(detection.startTime) < 5 * 60 * 1000) {
color = '#D84C4C'
color = 'var(--cn-color-critical)'
}
}
return { backgroundColor: color }