From d3c459507c24c78b7fcde62f91bc10c08ddbb6c2 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Tue, 14 Apr 2026 16:12:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E5=85=AC=E5=91=8A=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E9=98=85=E8=AF=BB=E7=94=A8=E6=88=B7=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/notice.ts | 11 ++- src/types/api/system/notice.ts | 18 ++++ src/views/system/notice/ReadUsers.vue | 119 ++++++++++++++++++++++++++ src/views/system/notice/index.vue | 8 ++ 4 files changed, 155 insertions(+), 1 deletion(-) create mode 100644 src/views/system/notice/ReadUsers.vue diff --git a/src/api/system/notice.ts b/src/api/system/notice.ts index a403bd8..07d98b6 100644 --- a/src/api/system/notice.ts +++ b/src/api/system/notice.ts @@ -1,5 +1,5 @@ import request from '@/utils/request' -import type { NoticeQueryParams, SysNotice, SysNoticeTopResult, AjaxResult, TableDataInfo } from '@/types' +import type { NoticeQueryParams, NoticeReadUserQueryParams, SysNotice, NoticeReadUser, SysNoticeTopResult, AjaxResult, TableDataInfo } from '@/types' // 查询公告列表 export function listNotice(query: NoticeQueryParams): Promise> { @@ -69,3 +69,12 @@ export function markNoticeReadAll(ids: string): Promise { params: { ids } }) } + +// 查询公告已读用户列表 +export function listNoticeReadUsers(query: NoticeReadUserQueryParams): Promise> { + return request({ + url: '/system/notice/readUsers/list', + method: 'get', + params: query + }) +} diff --git a/src/types/api/system/notice.ts b/src/types/api/system/notice.ts index 4d27877..9642e19 100644 --- a/src/types/api/system/notice.ts +++ b/src/types/api/system/notice.ts @@ -29,3 +29,21 @@ export interface SysNotice extends BaseEntity { export interface SysNoticeTopResult extends AjaxResult { unreadCount: number } + +/** 公告已读用户查询参数 */ +export interface NoticeReadUserQueryParams extends PageDomain { + /** 公告编号 */ + noticeId?: number + /** 关键字(登录名/用户名) */ + searchValue?: string +} + +/** 公告已读用户 */ +export interface NoticeReadUser { + userId?: number + userName?: string + nickName?: string + deptName?: string + phonenumber?: string + readTime?: string +} diff --git a/src/views/system/notice/ReadUsers.vue b/src/views/system/notice/ReadUsers.vue new file mode 100644 index 0000000..980e4c7 --- /dev/null +++ b/src/views/system/notice/ReadUsers.vue @@ -0,0 +1,119 @@ + + + + + diff --git a/src/views/system/notice/index.vue b/src/views/system/notice/index.vue index 5471a49..2b805c4 100644 --- a/src/views/system/notice/index.vue +++ b/src/views/system/notice/index.vue @@ -94,6 +94,7 @@ @@ -155,11 +156,13 @@ +