perf:调整Alerts位置

This commit is contained in:
likexuan
2022-04-15 18:48:30 +08:00
parent 4f5e25bfb6
commit 170ad4e7e7

View File

@@ -50,13 +50,17 @@
</el-tooltip>
</template>
<template v-else-if="item.prop === 'alertNum'">
<span style="cursor: pointer" @click="$emit('showBottomBox', 'alertMessageTab', scope.row)">
<span
style="cursor: pointer"
@click="$emit('showBottomBox', 'alertMessageTab', scope.row)"
>
<i
:class="scope.row.alertNum > 0 ? 'gray' : 'green'"
class="nz-icon nz-icon-overview-alert vertical-align-top;"
@mouseenter="tooltipHover(scope.row, true, $event)"
@mouseleave="tooltipHover(scope.row, false, $event)"
></i><span>{{scope.row.alerts}}</span>
></i
><span>{{ scope.row.alerts }}</span>
</span>
</template>
<template v-else-if="item.prop === 'matchers'">
@@ -207,13 +211,6 @@ export default {
minWidth: 200,
sortable: "custom",
},
{
label: this.$t("alert.alert"),
prop: "alertNum",
show: true,
minWidth: 120,
sortable: "custom",
},
{
label: this.$t("alert.silence.startTime"),
prop: "startAt",
@@ -239,6 +236,13 @@ export default {
show: false,
width: 300,
},
{
label: this.$t("alert.alert"),
prop: "alertNum",
show: true,
minWidth: 120,
sortable: "custom",
},
{
label: this.$t("alert.silence.state"),
prop: "state",