This commit is contained in:
777
2025-10-20 14:40:43 +08:00
parent 0f0a36b936
commit 7bae09aec8
9 changed files with 321 additions and 28 deletions

View File

@@ -6,13 +6,15 @@
<top-nav id="topmenu-container" class="topmenu-container" v-if="topNav"/>
<div class="right-menu">
<template v-if="device!=='mobile'">
<el-link class='right-menu-item' style="font-size: 14px; color: red" type="danger" @click="payNoticeGo">{{payNotice}}</el-link>
<search id="header-search" class="right-menu-item" />
<el-tooltip content="待审核" effect="dark" placement="bottom">
<notify-message class="right-menu-item hover-effect" />
</el-tooltip>
<screenfull id="screenfull" class="right-menu-item hover-effect" />
<el-tooltip content="布局大小" effect="dark" placement="bottom">
@@ -64,13 +66,14 @@ export default {
Search,
RuoYiGit,
RuoYiDoc,
NotifyMessage
NotifyMessage,
},
computed: {
...mapGetters([
'sidebar',
'avatar',
'device'
'device',
'payNotice'
]),
setting: {
get() {
@@ -89,7 +92,19 @@ export default {
}
}
},
created() {
// 进入系统后立即启动定时任务
this.$store.dispatch('startPolling')
console.log(this.payNotice);
},
beforeDestroy() {
// 退出系统时关闭定时任务(可选)
this.$store.dispatch('stopPolling')
},
methods: {
payNoticeGo(){
this.$router.push({path: "/system/notice", query: {auditStatus: true}});
},
toggleSideBar() {
this.$store.dispatch('app/toggleSideBar')
},
@@ -151,7 +166,6 @@ export default {
&:focus {
outline: none;
}
.right-menu-item {
display: inline-block;
padding: 0 8px;