fix:修改 告警信息的告警级别的排序字段

This commit is contained in:
zhangyu
2021-06-16 22:06:02 -04:00
parent 8530af2b80
commit 630e117573

View File

@@ -59,8 +59,8 @@
<template v-if="scope.row[item.prop]">{{scope.row[item.prop]}}</template> <template v-if="scope.row[item.prop]">{{scope.row[item.prop]}}</template>
<span v-else>-</span> <span v-else>-</span>
</template> </template>
<span v-else-if="item.prop === 'severity'&&scope.row[item.prop]" class="severity"> <span v-else-if="item.prop === 'severityId'&&scope.row[item.prop]" class="severity">
<i class="nz-icon nz-icon-circle" :style="{color:scope.row[item.prop].color,'font-size':'12px','margin-right':'5px'}"></i> {{scope.row[item.prop].name}} <i class="nz-icon nz-icon-circle" :style="{color:scope.row[item.prop].color,'font-size':'12px','margin-right':'5px'}"></i> {{scope.row['severity'].name}}
</span> </span>
<span v-else-if="item.prop === 'startAt'">{{utcTimeToTimezoneStr(scope.row.startAt)}}</span> <span v-else-if="item.prop === 'startAt'">{{utcTimeToTimezoneStr(scope.row.startAt)}}</span>
<template v-else-if="item.prop === 'duration'"> <template v-else-if="item.prop === 'duration'">
@@ -188,7 +188,7 @@ export default {
sortable: 'custom' sortable: 'custom'
}, { }, {
label: this.$t('alert.severity'), label: this.$t('alert.severity'),
prop: 'severity', prop: 'severityId',
show: true, show: true,
width: 110, width: 110,
sortable: 'custom' sortable: 'custom'