From ce002bd735378211d1d89c3bae73cd49d8693137 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Fri, 3 Mar 2023 09:29:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BE=85=E9=98=85=E6=95=B0?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- anrui-system-ui/src/api/flow/read.js | 9 +++++++++ anrui-system-ui/src/views/Home/Home.vue | 14 ++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/anrui-system-ui/src/api/flow/read.js b/anrui-system-ui/src/api/flow/read.js index 109058b0fd..ef24c0b6d8 100644 --- a/anrui-system-ui/src/api/flow/read.js +++ b/anrui-system-ui/src/api/flow/read.js @@ -20,3 +20,12 @@ export function changeRead(data) { }) } +// 待阅列表--修改为已阅 +export function getToBeReadNum(data) { + return request({ + url: '/message/v1/messagelist/getTodoNum/' + data, + method: 'get' + }) +} + + diff --git a/anrui-system-ui/src/views/Home/Home.vue b/anrui-system-ui/src/views/Home/Home.vue index 613de8acea..8af6fdf716 100644 --- a/anrui-system-ui/src/views/Home/Home.vue +++ b/anrui-system-ui/src/views/Home/Home.vue @@ -35,7 +35,10 @@

已办工作

  • - +
    + + +

    待阅工作

  • @@ -211,6 +214,7 @@ import { getToken, removeToken, getStorage, removeStorage } from '@/utils/auth' import {sourcesofrole} from '@/api/system/Role/role.js' import User from '@/api/User/login.js' import { getTodoNum } from '@/api/system/home/home' +import { getToBeReadNum } from '@/api/flow/read' export default { data() { @@ -249,7 +253,8 @@ export default { userInfo: {}, orgDept_list: [], shuliang: { - workCount: '' + workCount: '', + toBeReadCount: '' }, dialogVisible: false, form: { @@ -313,6 +318,11 @@ export default { this.shuliang.workCount = resp.data } }) + getToBeReadNum(window.sessionStorage.getItem('userSid')).then((resp) => { + if (resp.success) { + this.shuliang.toBeReadCount = resp.data + } + }) }, handleConirm() { if (this.form.original === '') {