diff --git a/src/api/system/notice.js b/src/api/system/notice.js index c274ea5..96afb59 100644 --- a/src/api/system/notice.js +++ b/src/api/system/notice.js @@ -8,6 +8,17 @@ export function listNotice(query) { params: query }) } +//用户消息列表展示 +export function listNoticeByNotice(data) { + return request({ + url: '/system/notice/userList', + method: 'post', + params: data + }) +} + + + // 查询公告详细 export function getNotice(noticeId) { @@ -16,6 +27,21 @@ export function getNotice(noticeId) { method: 'get' }) } +// 查询公告详细和阅读量 +export function getNoticeAndCount(noticeId) { + return request({ + url: '/system/notice/' + noticeId, + method: 'post' + }) +} + +// 阅读文件 +export function readNotice(noticeId) { + return request({ + url: '/system/notice/'+noticeId, + method: 'put', + }) +} // 新增公告 export function addNotice(data) { @@ -41,4 +67,4 @@ export function delNotice(noticeId) { url: '/system/notice/' + noticeId, method: 'delete' }) -} \ No newline at end of file +} diff --git a/src/api/system/user.js b/src/api/system/user.js index 89d3972..0864504 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -1,6 +1,15 @@ import request from '@/utils/request' import {parseStrEmpty} from "@/utils/muyu"; +//查询所有用户 +export function getUserList() { + return request({ + url: '/system/user/userList', + method: 'get' + }) +} + + // 查询用户列表 export function listUser(query) { return request({ diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 7ccea26..896d43d 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -8,6 +8,9 @@