feat 增加消息报警查看画面
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user