NEZ-1701 fix:全局搜索 alert rule包含 trouble shooting 显示错误

This commit is contained in:
zhangyu
2022-03-18 13:55:33 +08:00
parent 59caca3416
commit 80198c9dad
2 changed files with 9 additions and 4 deletions

View File

@@ -46,7 +46,8 @@
width: 100%;
border-bottom: 1px solid $--border-color-light;
display: flex;
height: 47px;
min-height: 47px;
max-height: 200px;
align-items: center;
.search-item-key{
width: 120px;
@@ -58,9 +59,12 @@
}
.search-item-value-box{
line-height: 47px;
height: 100%;
width: calc(100% - 120px);
display: flex;
align-items: center;
.nz-icon{
display: inline-block;
line-height: 47px;
margin-right: 10px;
}
@@ -70,8 +74,9 @@
.search-item-value{
width: calc(100% - 30px);
font-size: 14px;
height: 100%;
overflow-y: auto;
color: $--color-text-primary;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
line-height: 47px;

View File

@@ -60,8 +60,8 @@
</div>
<div class="search-item-value-box" v-else-if="obj.type === 'alertrule'&&item.key==='trbShot'">
<i v-if="item.icon&&getPathContent(item.key)!=='--'" class="nz-icon" :class="searchItemClass(item)" :style="searchItemStyle(item)"/>
<span class="search-item-value" v-html="getPathContent(item.key)">
</span>
<div class="search-item-value" v-html="getPathContent(item.key)">
</div>
</div>
<div style="cursor: pointer" v-else-if="item.key === 'alertNum'">
<i :class="Number(getPathContent(item.key)) ? 'red' : 'green'" class="nz-icon nz-icon-overview-alert vertical-align-top;" @mouseenter="tooltipHover('',true, $event)" @mouseleave="tooltipHover('',false, $event)"></i>