Commit 526287a65a59b222dd977b0f4b0db53f6eb7d6b9
1 parent
8d567b2d
fix: DEFECT-1417 告警弹窗加入告警所属场景联动来显示
Showing
1 changed file
with
5 additions
and
1 deletions
@@ -67,7 +67,7 @@ export function useAlarmNotify(params: UseAlarmNotifyParams = {}) { | @@ -67,7 +67,7 @@ export function useAlarmNotify(params: UseAlarmNotifyParams = {}) { | ||
67 | 67 | ||
68 | if (items.length) { | 68 | if (items.length) { |
69 | const first = items.at(0)!; | 69 | const first = items.at(0)!; |
70 | - const { deviceName, id, severity } = first; | 70 | + const { deviceName, id, severity, type } = first; |
71 | 71 | ||
72 | let key: Nullable<string> = `open-notify-${id}`; | 72 | let key: Nullable<string> = `open-notify-${id}`; |
73 | 73 | ||
@@ -82,6 +82,10 @@ export function useAlarmNotify(params: UseAlarmNotifyParams = {}) { | @@ -82,6 +82,10 @@ export function useAlarmNotify(params: UseAlarmNotifyParams = {}) { | ||
82 | h('span', { style: { marginRight: '5px' } }, '设备:'), | 82 | h('span', { style: { marginRight: '5px' } }, '设备:'), |
83 | h('span', {}, `[${deviceName}]`), | 83 | h('span', {}, `[${deviceName}]`), |
84 | ]), | 84 | ]), |
85 | + h('div', { style: { marginRight: '5px' } }, [ | ||
86 | + h('span', { style: { marginRight: '5px' } }, '告警场景:'), | ||
87 | + h('span', {}, `[${type}]`), | ||
88 | + ]), | ||
85 | h('div', { style: { marginTop: '5px' } }, [ | 89 | h('div', { style: { marginTop: '5px' } }, [ |
86 | h('span', { style: { marginRight: '5px' } }, '告警状态:'), | 90 | h('span', { style: { marginRight: '5px' } }, '告警状态:'), |
87 | h(Tag, { color }, () => `${alarmNotifyStatusMean}`), | 91 | h(Tag, { color }, () => `${alarmNotifyStatusMean}`), |