From 26a112b51930b06d9347031bd84ad832322528d6 Mon Sep 17 00:00:00 2001
From: yunuo970428 <405378304@qq.com>
Date: Fri, 1 Dec 2023 09:26:03 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=BE=85=E9=98=85=E3=80=81?=
=?UTF-8?q?=E5=B7=B2=E9=98=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
supervise-portal-ui/src/api/flow/read.js | 29 ++
.../src/api/system/home/home.js | 8 +
supervise-portal-ui/src/router/index.js | 10 +-
supervise-portal-ui/src/views/Home/Home.vue | 28 +-
.../src/views/flow/havereadList.vue | 392 +++++++++++++++++
.../src/views/flow/tobereadList.vue | 393 ++++++++++++++++++
6 files changed, 853 insertions(+), 7 deletions(-)
create mode 100644 supervise-portal-ui/src/api/flow/read.js
create mode 100644 supervise-portal-ui/src/views/flow/havereadList.vue
create mode 100644 supervise-portal-ui/src/views/flow/tobereadList.vue
diff --git a/supervise-portal-ui/src/api/flow/read.js b/supervise-portal-ui/src/api/flow/read.js
new file mode 100644
index 00000000..7348ed25
--- /dev/null
+++ b/supervise-portal-ui/src/api/flow/read.js
@@ -0,0 +1,29 @@
+import request from '@/utils/request'
+
+// 查看待阅和已阅列表
+export function pagerList(data) {
+ return request({
+ url: '/message/v1/messagelist/todoAllReadList',
+ method: 'post',
+ data: data,
+ headers: {
+ 'Content-Type': 'application/json'
+ }
+ })
+}
+
+// 待阅列表--修改为已阅
+export function changeRead(data) {
+ return request({
+ url: '/message/v1/messagelist/changeRead?sids=' + data,
+ method: 'get'
+ })
+}
+
+// 待办已办待阅已阅获取人员
+export function sysstaffinfo() {
+ return request({
+ url: '/portal/v1/sysstaffinfo/v1/sysstaffinfo/selectStaffLists',
+ method: 'get'
+ })
+}
diff --git a/supervise-portal-ui/src/api/system/home/home.js b/supervise-portal-ui/src/api/system/home/home.js
index 93906f92..76f77908 100644
--- a/supervise-portal-ui/src/api/system/home/home.js
+++ b/supervise-portal-ui/src/api/system/home/home.js
@@ -8,6 +8,14 @@ export function getTodoNum(data) {
})
}
+// 获取当前用户的待阅数量
+export function getToBeReadNum(data) {
+ return request({
+ url: '/message/v1/Message/getTodoNum/' + data,
+ method: 'get'
+ })
+}
+
// 获取当前用户的最新消--首页面右上角展示
export function messageNotice(data) {
return request({
diff --git a/supervise-portal-ui/src/router/index.js b/supervise-portal-ui/src/router/index.js
index 0536a492..cf5bcab7 100644
--- a/supervise-portal-ui/src/router/index.js
+++ b/supervise-portal-ui/src/router/index.js
@@ -35,7 +35,7 @@ export const constantRoutes = [
{
path: '/index',
redirect: 'organizationManage'
-
+
// component: Layout,
// redirect: '/index',
// children: [{
@@ -293,6 +293,14 @@ export const constantRoutes = [
path: '/done',
component: () => import('@/views/flow/doneList.vue')
},
+ {
+ path: '/toberead',
+ component: () => import('@/views/flow/tobereadList.vue')
+ },
+ {
+ path: '/haveread',
+ component: () => import('@/views/flow/havereadList.vue')
+ },
// {
// path: '/',
diff --git a/supervise-portal-ui/src/views/Home/Home.vue b/supervise-portal-ui/src/views/Home/Home.vue
index be780d13..4413de77 100644
--- a/supervise-portal-ui/src/views/Home/Home.vue
+++ b/supervise-portal-ui/src/views/Home/Home.vue
@@ -32,12 +32,15 @@
已办工作
-待阅工作
已阅工作