diff --git a/nezha-fronted/src/components/common/alert/alertLabel.vue b/nezha-fronted/src/components/common/alert/alertLabel.vue new file mode 100644 index 000000000..74d4f99cf --- /dev/null +++ b/nezha-fronted/src/components/common/alert/alertLabel.vue @@ -0,0 +1,137 @@ + + + + + ID + {{alertLabelData?alertLabelData.id:''}} + + + SN + {{alertLabelData?alertLabelData.sn:''}} + + + + + ID + {{alertLabelData?alertLabelData.id:''}} + + + Name + {{alertLabelData?alertLabelData.name:''}} + + + Project + {{alertLabelData?alertLabelData.project.name:''}} + + + Description + {{alertLabelData?alertLabelData.remark:''}} + + + + + ID + {{alertLabelData?alertLabelData.id:''}} + + + Name + {{alertLabelData?alertLabelData.name:''}} + + + Description + {{alertLabelData?alertLabelData.remark:''}} + + + + + + + + diff --git a/nezha-fronted/src/components/common/alert/alertRuleInfo.vue b/nezha-fronted/src/components/common/alert/alertRuleInfo.vue new file mode 100644 index 000000000..0f42c26d1 --- /dev/null +++ b/nezha-fronted/src/components/common/alert/alertRuleInfo.vue @@ -0,0 +1,104 @@ + + + + ID + {{alertRuleData?alertRuleData.id:''}} + + + + + + + Expression + {{alertRuleData?(alertRuleData.expr + alertRuleData.operator + formatThreshold(alertRuleData.threshold,alertRuleData.unit)):''}} + + + Level + + {{severityData[1].value}} + {{severityData[0].value}} + {{severityData[2].value}} + + + + + + + + diff --git a/nezha-fronted/src/components/page/alert/config.vue b/nezha-fronted/src/components/page/alert/config.vue index a7b878c6d..dbbc0d021 100644 --- a/nezha-fronted/src/components/page/alert/config.vue +++ b/nezha-fronted/src/components/page/alert/config.vue @@ -55,6 +55,7 @@ min-width="110px" :sortable="sortableShow(item.prop)" :prop="propTitle(item.prop)" + :sort-orders="['ascending', 'descending']" > diff --git a/nezha-fronted/src/components/page/alert/list.vue b/nezha-fronted/src/components/page/alert/list.vue index 33796f2b6..12164a502 100644 --- a/nezha-fronted/src/components/page/alert/list.vue +++ b/nezha-fronted/src/components/page/alert/list.vue @@ -2,6 +2,9 @@ .list { height: 100%; } + .too-long-split{ + cursor: pointer; + }