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 @@

已办工作

-
  • - +
  • +
    + + +

    待阅工作

  • -
  • - +
  • +

    已阅工作

  • @@ -222,7 +225,8 @@ import User from '@/api/User/login.js' import { getTodoNum, - messageNotice + messageNotice, + getToBeReadNum } from '@/api/system/home/home' export default { @@ -288,7 +292,8 @@ userInfo: {}, orgDept_list: [], shuliang: { - workCount: '' + workCount: '', + toBeReadCount: '' }, message_list: [], token: '', @@ -354,6 +359,11 @@ this.shuliang.workCount = resp.data } }) + getToBeReadNum(window.sessionStorage.getItem('userSid')).then((resp) => { + if (resp.success) { + this.shuliang.toBeReadCount = resp.data + } + }) messageNotice(window.sessionStorage.getItem('userSid')).then((resp) => { if (resp.success && resp.data !== null) { this.message_list = resp.data @@ -419,6 +429,12 @@ // this.$router.push({ path: '/done' + '?token=' + getStorage() }) // window.open('http://127.0.0.1/message'+'?token='+getStorage(),'_blank') }, + tobereadwork() { + window.open('/#/toberead' + '?token=' + getStorage(), '_blank') + }, + havereadwork() { + window.open('/#/haveread' + '?token=' + getStorage(), '_blank') + }, logout() { this.$confirm('确定要退出吗, 是否继续?', '提示', { confirmButtonText: '确定', diff --git a/supervise-portal-ui/src/views/flow/havereadList.vue b/supervise-portal-ui/src/views/flow/havereadList.vue new file mode 100644 index 00000000..497b7fa2 --- /dev/null +++ b/supervise-portal-ui/src/views/flow/havereadList.vue @@ -0,0 +1,392 @@ + + + + diff --git a/supervise-portal-ui/src/views/flow/tobereadList.vue b/supervise-portal-ui/src/views/flow/tobereadList.vue new file mode 100644 index 00000000..2c812329 --- /dev/null +++ b/supervise-portal-ui/src/views/flow/tobereadList.vue @@ -0,0 +1,393 @@ + + + +