From 91dd4a32b1aa7b93252ccbbce12bfaf652882b76 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 29 Jan 2023 09:26:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=99=E5=86=85=E4=BF=A1=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=EF=BC=9Avue3=20=E7=AB=99=E5=86=85=E4=BF=A1=E5=BC=B9=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/system/notify/message/index.ts | 35 ++++++ .../layout/components/Message/src/Message.vue | 105 +++++++++--------- .../src/api/system/notify/message.js | 1 + .../src/layout/components/Message/index.vue | 4 +- 4 files changed, 88 insertions(+), 57 deletions(-) diff --git a/yudao-ui-admin-vue3/src/api/system/notify/message/index.ts b/yudao-ui-admin-vue3/src/api/system/notify/message/index.ts index 92068b89d..d12ee35fa 100644 --- a/yudao-ui-admin-vue3/src/api/system/notify/message/index.ts +++ b/yudao-ui-admin-vue3/src/api/system/notify/message/index.ts @@ -31,3 +31,38 @@ export const getNotifyMessagePageApi = async (params: NotifyMessagePageReqVO) => export const getNotifyMessageApi = async (id: number) => { return await request.get({ url: '/system/notify-message/get?id=' + id }) } + +// 获得我的站内信分页 +// export function getMyNotifyMessagePage(query) { +// return request({ +// url: '/system/notify-message/my-page', +// method: 'get', +// params: query +// }) +// } + +// 批量标记已读 +// export function updateNotifyMessageRead(ids) { +// return request({ +// url: '/system/notify-message/update-read?' + qs.stringify({ids: ids}, { indices: false }), +// method: 'put' +// }) +// } + +// 标记所有站内信为已读 +// export function updateAllNotifyMessageRead() { +// return request({ +// url: '/system/notify-message/update-all-read', +// method: 'put' +// }) +// } + +// 获取当前用户的最新站内信列表 +export const getUnreadNotifyMessageListApi = async () => { + return await request.get({ url: '/system/notify-message/get-unread-list' }) +} + +// 获得当前用户的未读站内信数量 +export const getUnreadNotifyMessageCountApi = async () => { + return await request.get({ url: '/system/notify-message/get-unread-count' }) +} diff --git a/yudao-ui-admin-vue3/src/layout/components/Message/src/Message.vue b/yudao-ui-admin-vue3/src/layout/components/Message/src/Message.vue index ba21cfdce..acef9ac95 100644 --- a/yudao-ui-admin-vue3/src/layout/components/Message/src/Message.vue +++ b/yudao-ui-admin-vue3/src/layout/components/Message/src/Message.vue @@ -1,77 +1,72 @@