From f0ba4850c4504edc86a917d28d711485b989d2ef Mon Sep 17 00:00:00 2001 From: memorylkf <312904636@qq.com> Date: Thu, 29 Jan 2026 10:36:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20[=E6=B6=88=E6=81=AF=E9=80=9A=E7=9F=A5]?= =?UTF-8?q?=20=E5=8A=A0=E5=85=A5=E5=B7=B2=E8=AF=BB=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/business/home/home.js | 14 +++++++++++++ src/lang/en/business/home/home.js | 3 ++- src/lang/zh/business/home/home.js | 3 ++- src/layout/components/Navbar.vue | 19 +++++++++++++++-- src/permission.js | 36 +++++++++++++++++++++++++-------- src/store/index.js | 4 +++- src/store/modules/business/menuCount.js | 30 +++++++++++++++++++++++++++ src/views/index.vue | 22 +++++++++++++++----- 8 files changed, 113 insertions(+), 18 deletions(-) create mode 100644 src/store/modules/business/menuCount.js diff --git a/src/api/business/home/home.js b/src/api/business/home/home.js index 24edc22..83e60b2 100644 --- a/src/api/business/home/home.js +++ b/src/api/business/home/home.js @@ -14,3 +14,17 @@ export function home_noticeList(query) { params: query }) } +export function home_noticeRead(data) { + return request({ + url: '/system/business/home/noticeRead', + method: 'post', + data + }) +} +export function home_noticeCount(query) { + return request({ + url: '/system/business/home/noticeCount', + method: 'get', + params: query + }) +} diff --git a/src/lang/en/business/home/home.js b/src/lang/en/business/home/home.js index 4753b35..24335bd 100644 --- a/src/lang/en/business/home/home.js +++ b/src/lang/en/business/home/home.js @@ -5,5 +5,6 @@ export default { bzxzsy: 'Weekly New Study', ywcsy: 'Completed Study', - xttz: 'Notification' + xttz: 'Notification', + xx: 'Message' } diff --git a/src/lang/zh/business/home/home.js b/src/lang/zh/business/home/home.js index ab6d702..9cd14cf 100644 --- a/src/lang/zh/business/home/home.js +++ b/src/lang/zh/business/home/home.js @@ -5,5 +5,6 @@ export default { bzxzsy: '本周新增试验', ywcsy: '已完成试验', - xttz: '系统通知' + xttz: '系统通知', + xx: '消息' } diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index c996c4a..fca8e28 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -20,6 +20,8 @@ --> + +
{{$t('page.business.home.xx')}}
@@ -35,6 +37,7 @@ +
@@ -42,7 +45,7 @@