CN-1612 feat: 部分css重构内容:detection检测列表与下拉详情
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user