diff --git a/src/layouts/BasicLayout.vue b/src/layouts/BasicLayout.vue
index f3dbbbf3..757f4f5d 100644
--- a/src/layouts/BasicLayout.vue
+++ b/src/layouts/BasicLayout.vue
@@ -208,6 +208,7 @@ let serverTime = reactive({
zone: 'UTC', // 时区 UTC
interval: null as any, // 定时器
});
+let activeAlarmRefresh = 0;
// 获取服务器时间
function fnGetServerTime() {
@@ -221,6 +222,7 @@ function fnGetServerTime() {
serverTime.timestamp = parseInt(res.data.timestamp);
serverTime.interval = setInterval(() => {
serverTime.timestamp += 1000;
+ activeAlarmRefresh += 1;
// serverTimeStr.value = parseDateToStr(serverTime.timestamp);
// 用DOM直接修改
if (serverTimeDom) {
@@ -229,6 +231,10 @@ function fnGetServerTime() {
YYYY_MM_DD_HH_MM_SSZ
);
}
+ if (activeAlarmRefresh === 5) {
+ useAlarmStore().fnGetActiveAlarmInfo();
+ activeAlarmRefresh = 0;
+ }
}, 1000);
}
});
diff --git a/src/views/faultManage/active-alarm/index.vue b/src/views/faultManage/active-alarm/index.vue
index ba320443..0119f4af 100644
--- a/src/views/faultManage/active-alarm/index.vue
+++ b/src/views/faultManage/active-alarm/index.vue
@@ -1,5 +1,5 @@
@@ -1201,7 +1220,7 @@ onMounted(() => {
>
{{ modalState.from.alarmType }}
-
+
{
>
{{ modalState.from.locationInfo }}
-
+
{
:label="t('views.faultManage.activeAlarm.ackState')"
name="ackState"
>
-
+