From 7bae09aec8d60d5d1a3ea55fe34c1ee6b658b433 Mon Sep 17 00:00:00 2001 From: 777 <123@qwe.com> Date: Mon, 20 Oct 2025 14:40:43 +0800 Subject: [PATCH] 1231233 --- src/api/cai/unreadNotifyMessage.js | 7 + src/api/system/notice.js | 11 +- src/layout/components/CaiNotice/index.vue | 186 ++++++++++++++++++++++ src/layout/components/Navbar.vue | 22 ++- src/store/getters.js | 1 + src/store/modules/user.js | 42 +++++ src/views/cai/batchAddUser/index.vue | 2 +- src/views/cai/rechargeOrder/index.vue | 11 +- src/views/system/notice/index.vue | 67 +++++--- 9 files changed, 321 insertions(+), 28 deletions(-) create mode 100644 src/layout/components/CaiNotice/index.vue diff --git a/src/api/cai/unreadNotifyMessage.js b/src/api/cai/unreadNotifyMessage.js index e2e14e8..1fe696a 100644 --- a/src/api/cai/unreadNotifyMessage.js +++ b/src/api/cai/unreadNotifyMessage.js @@ -13,3 +13,10 @@ export function getUnreadNotifyMessageCount() { method: 'get' }) } + +export function getCheckNotice() { + return request({ + url: '/cai/unread/checkNotice', + method: 'get' + }) +} diff --git a/src/api/system/notice.js b/src/api/system/notice.js index c274ea5..0326f83 100644 --- a/src/api/system/notice.js +++ b/src/api/system/notice.js @@ -35,10 +35,19 @@ export function updateNotice(data) { }) } +// 修改公告 +export function dealNotice(data) { + return request({ + url: '/system/notice/deal', + method: 'post', + data: data + }) +} + // 删除公告 export function delNotice(noticeId) { return request({ url: '/system/notice/' + noticeId, method: 'delete' }) -} \ No newline at end of file +} diff --git a/src/layout/components/CaiNotice/index.vue b/src/layout/components/CaiNotice/index.vue new file mode 100644 index 0000000..ca7636c --- /dev/null +++ b/src/layout/components/CaiNotice/index.vue @@ -0,0 +1,186 @@ + + + + diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 66c68ab..94560d5 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -6,13 +6,15 @@
+ - - - - + + + + +