From c0f9b249e98e87c6188dae3c70394974c21aac70 Mon Sep 17 00:00:00 2001 From: easy <1358086367@qq.com> Date: Wed, 15 Mar 2023 14:26:49 +0800 Subject: [PATCH] =?UTF-8?q?update:=20uhasPermission=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E6=9B=B4=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/account/notificationRecord.ts | 4 +++- src/components/Layout/components/Notice.vue | 4 ++-- src/views/system/Apply/Save/components/EditForm.vue | 8 ++++---- src/views/system/Apply/index.vue | 6 +++--- src/views/system/DataSource/Management/index.vue | 2 +- src/views/system/DataSource/index.vue | 10 +++++----- src/views/system/Department/device/index.vue | 12 ++++++------ src/views/system/Department/product/index.vue | 6 +++--- src/views/system/Menu/Detail/BasicInfo.vue | 2 +- src/views/system/Menu/Detail/ButtonMange.vue | 2 +- src/views/system/Menu/index.vue | 6 +++--- src/views/system/Permission/index.vue | 2 +- .../system/Platforms/Api/components/ApiTest.vue | 2 +- src/views/system/Role/index.vue | 6 +++--- 14 files changed, 37 insertions(+), 35 deletions(-) diff --git a/src/api/account/notificationRecord.ts b/src/api/account/notificationRecord.ts index 58cb612f..2485069e 100644 --- a/src/api/account/notificationRecord.ts +++ b/src/api/account/notificationRecord.ts @@ -1,7 +1,9 @@ import server from '@/utils/request' // 获取记录列表 -export const getList_api = (data:object): any =>server.post(`/notifications/_query`,data) +export const getList_api = (data:object): any =>server.get(`/notifications/_query`,encodeParams(data)) +// 获取未读记录列表 +export const getListByUnRead_api = (data:object): any =>server.post(`/notifications/_query`,data) // 修改记录状态 export const changeStatus_api = (type:'_read'|'_unread',data:string[]): any =>server.post(`/notifications/${type}`,data) diff --git a/src/components/Layout/components/Notice.vue b/src/components/Layout/components/Notice.vue index 42ada485..36e6bb38 100644 --- a/src/components/Layout/components/Notice.vue +++ b/src/components/Layout/components/Notice.vue @@ -19,7 +19,7 @@