fix: 右上角告警数按钮提示跳转

This commit is contained in:
TsMask
2023-10-19 17:47:04 +08:00
parent bb8bde9977
commit 456d2a9613
2 changed files with 12 additions and 4 deletions

View File

@@ -43,7 +43,6 @@ export async function listAct(query: Record<string, any>, filterSQl: string) {
let rowsSQL = `select * from alarm where alarm_status='1' ${filterSQl}`; let rowsSQL = `select * from alarm where alarm_status='1' ${filterSQl}`;
// 查询 // 查询
let querySQL = ''; let querySQL = '';
debugger;
if (query.alarmCode) { if (query.alarmCode) {
querySQL += ` and alarm_code = '${query.alarmCode}' `; querySQL += ` and alarm_code = '${query.alarmCode}' `;
} }

View File

@@ -24,6 +24,11 @@ function fnClick({ key }: MenuInfo) {
} }
} }
/**告警数按钮提示跳转 */
function fnClickAlarm() {
router.push({ path: '/faultManage/active-alarm' });
}
/**改变多语言 */ /**改变多语言 */
function fnChangeLocale(e: any) { function fnChangeLocale(e: any) {
changeLocale(e.key); changeLocale(e.key);
@@ -32,14 +37,18 @@ function fnChangeLocale(e: any) {
<template> <template>
<a-space :size="12" align="center"> <a-space :size="12" align="center">
<a-button type="text"> <a-button type="text" @click="fnClickAlarm">
<template #icon> <template #icon>
<a-badge :count="useAlarmStore().activeAlarmTotal" :overflow-count="99" status="warning"> <a-badge
:count="useAlarmStore().activeAlarmTotal"
:overflow-count="99"
status="warning"
>
<BellOutlined /> <BellOutlined />
</a-badge> </a-badge>
</template> </template>
</a-button> </a-button>
<a-tooltip> <a-tooltip>
<template #title>全屏显示</template> <template #title>全屏显示</template>
<a-button type="text" @click="toggle"> <a-button type="text" @click="toggle">