fix:修改alertRule的severity 样式
This commit is contained in:
@@ -2,6 +2,27 @@
|
|||||||
.config {
|
.config {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
.severity .high{
|
||||||
|
background: #F2866E;
|
||||||
|
border-radius: 2px;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #FFFFFF;
|
||||||
|
padding: 2px 6px;
|
||||||
|
}
|
||||||
|
.severity .medium{
|
||||||
|
background: #F89984;
|
||||||
|
border-radius: 2px;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #FFFFFF;
|
||||||
|
padding: 2px 6px;
|
||||||
|
}
|
||||||
|
.severity .low{
|
||||||
|
background: #F7BA78;
|
||||||
|
border-radius: 2px;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #FFFFFF;
|
||||||
|
padding: 2px 6px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<template>
|
<template>
|
||||||
<div class="config">
|
<div class="config">
|
||||||
@@ -74,10 +95,13 @@
|
|||||||
<span v-if="scope.row.buildIn != 1" :title="$t('overall.edit')" @click="edit(scope.row)" class="content-right-option" :id="'alert-edit-'+scope.row.id"><i class="nz-icon nz-icon-edit"></i></span>
|
<span v-if="scope.row.buildIn != 1" :title="$t('overall.edit')" @click="edit(scope.row)" class="content-right-option" :id="'alert-edit-'+scope.row.id"><i class="nz-icon nz-icon-edit"></i></span>
|
||||||
<span :title="$t('overall.delete')" @click="del(scope.row)" class="content-right-option" :id="'alert-del-'+scope.row.id"><i class="nz-icon nz-icon-delete"></i></span>
|
<span :title="$t('overall.delete')" @click="del(scope.row)" class="content-right-option" :id="'alert-del-'+scope.row.id"><i class="nz-icon nz-icon-delete"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<span v-else-if="item.prop == 'severity'">
|
<span v-else-if="item.prop == 'severity'" class="severity">
|
||||||
<span v-if="scope.row[item.prop] == 'high'"><i class="nz-icon nz-icon-arrow-up"></i> {{$CONSTANTS.alertMessage.severityData.find(s => {return s.value == 'high'}).label}}</span>
|
<span v-if="scope.row[item.prop] == 'high'" class="high">P1</span>
|
||||||
<span style="padding-left: 18px;" v-if="scope.row[item.prop] == 'medium'">{{$CONSTANTS.alertMessage.severityData.find(s => {return s.value == 'medium'}).label}}</span>
|
<!--<i class="nz-icon nz-icon-arrow-up"></i> {{returnSeverityLabel(scope.row[item.prop])}}-->
|
||||||
<span v-if="scope.row[item.prop] == 'low'"><i class="nz-icon nz-icon-arrow-down"></i> {{$CONSTANTS.alertMessage.severityData.find(s => {return s.value == 'low'}).label}}</span>
|
<span v-if="scope.row[item.prop] == 'medium'" class="medium">P2</span>
|
||||||
|
<!--{{returnSeverityLabel(scope.row[item.prop])}}-->
|
||||||
|
<span v-if="scope.row[item.prop] == 'low'" class="low">P3</span>
|
||||||
|
<!--<i class="nz-icon nz-icon-arrow-down"></i> {{returnSeverityLabel(scope.row[item.prop])}}-->
|
||||||
</span>
|
</span>
|
||||||
<template v-else-if="item.prop == 'alertNum'">
|
<template v-else-if="item.prop == 'alertNum'">
|
||||||
<span class="link" @click="queryMessage(scope.row)">{{scope.row.alertNum + ' ' + $t('overall.active')}}</span>
|
<span class="link" @click="queryMessage(scope.row)">{{scope.row.alertNum + ' ' + $t('overall.active')}}</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user