From 93c1f71af90e08997ac395c3b14f2d05299baec8 Mon Sep 17 00:00:00 2001 From: ye1023 <12588209+ye1023@user.noreply.gitee.com> Date: Tue, 14 Jul 2026 15:25:50 +0800 Subject: [PATCH] =?UTF-8?q?yxk-20260714=20=E6=88=91=E7=9A=84=E5=B7=B2?= =?UTF-8?q?=E9=98=85=20=EF=BC=9A=E6=8C=89=20read=5Ftime=20=E5=80=92?= =?UTF-8?q?=E5=BA=8F=E6=8E=92=E5=BA=8F=EF=BC=8C=E6=9C=80=E6=96=B0=E5=B7=B2?= =?UTF-8?q?=E9=98=85=E7=9A=84=E6=8E=92=E6=9C=80=E5=89=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProcessPortal/components/MyWork.vue | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/views/dashboard/ProcessPortal/components/MyWork.vue b/src/views/dashboard/ProcessPortal/components/MyWork.vue index 8722663..0577137 100644 --- a/src/views/dashboard/ProcessPortal/components/MyWork.vue +++ b/src/views/dashboard/ProcessPortal/components/MyWork.vue @@ -8,7 +8,10 @@ 待办 {{ todoTotal }} -
待阅
+
+ 待阅 + {{ ccTotal }} +
@@ -84,6 +87,7 @@ const { createMessage } = useMessage(); const activeTab = ref<'todo' | 'cc'>('todo'); const todoTotal = ref(0); + const ccTotal = ref(0); const refreshing = ref(false); const emit = defineEmits(['refresh']); @@ -126,6 +130,7 @@ onMounted(() => { fetchTodoTotal(); + fetchCcTotal(); }); async function fetchTodoTotal() { @@ -137,6 +142,15 @@ } } + async function fetchCcTotal() { + try { + const res = await ccList({ isRead: 0, pageNo: 1, pageSize: 1 }); + ccTotal.value = res?.total ?? 0; + } catch (e) { + ccTotal.value = 0; + } + } + async function handleRefresh() { refreshing.value = true; try { @@ -146,6 +160,7 @@ reloadCc(); } await fetchTodoTotal(); + await fetchCcTotal(); emit('refresh'); } finally { refreshing.value = false; @@ -266,6 +281,7 @@ } await markRead(record.ccId); await reloadCc(); + await fetchCcTotal(); } function getTodoTableAction(record) {