This commit is contained in:
qsh
2024-09-10 17:00:39 +08:00
parent 7de4adeaad
commit 8a857e03af
2 changed files with 6 additions and 3 deletions

View File

@@ -15,12 +15,12 @@ export interface NotifyMessageVO {
} }
// 查询站内信消息列表 // 查询站内信消息列表
export const getNotifyMessagePage = async (params: PageParam) => { export const getNotifyMessagePage = async (params: any) => {
return await request.get({ url: '/admin-api/system/notify-message/page', params }) return await request.get({ url: '/admin-api/system/notify-message/page', params })
} }
// 获得我的站内信分页 // 获得我的站内信分页
export const getMyNotifyMessagePage = async (params: PageParam) => { export const getMyNotifyMessagePage = async (params: any) => {
return await request.get({ url: '/admin-api/system/notify-message/my-page', params }) return await request.get({ url: '/admin-api/system/notify-message/my-page', params })
} }

View File

@@ -100,7 +100,10 @@ const queryFormRef = ref() // 搜索的表单
const getList = async () => { const getList = async () => {
loading.value = true loading.value = true
try { try {
const data = await NotifyMessageApi.getMyNotifyMessagePage(queryParams) const data = await NotifyMessageApi.getMyNotifyMessagePage({
...queryParams,
roleId: userStore.getUser?.currentRole
})
list.value = data.list list.value = data.list
total.value = data.total total.value = data.total
} finally { } finally {