dev-cjl #3

Merged
qiushanhe merged 23 commits from dev-cjl into main 2024-09-18 11:51:01 +08:00
2 changed files with 6 additions and 3 deletions
Showing only changes of commit 8a857e03af - Show all commits

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 })
}
// 获得我的站内信分页
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 })
}

View File

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