feat 增加消息报警查看画面

This commit is contained in:
Ironsp
2026-05-25 10:19:50 +08:00
parent cef368b9dc
commit 2c5b9d4fcc
2 changed files with 16 additions and 19 deletions

View File

@@ -35,12 +35,14 @@
</div>
</el-tooltip> -->
<!-- 消息 -->
<el-tooltip :content="proxy.$t('navbar.message')" effect="dark" placement="bottom">
<el-tooltip content="警报" effect="dark" placement="bottom">
<div style="display: flex; align-items: center">
<el-popover placement="bottom" trigger="click" transition="el-zoom-in-top" :width="300" :persistent="false">
<template #reference>
<el-badge :value="newNotice > 0 ? newNotice : ''" :max="99">
<div class="right-menu-item hover-effect"><svg-icon icon-class="message" /></div>
<div class="right-menu-item hover-effect" @click="goToWarningList">
<el-icon><BellFilled /></el-icon>
</div>
</el-badge>
</template>
<template #default>
@@ -215,6 +217,10 @@ watch(
const refresh = () => {
proxy?.$tab.refreshPage();
};
const goToWarningList = () => {
router.push('/warningList/list');
};
</script>
<style lang="scss" scoped>