From 2a44e0964e252a0479947ec3b7596ff4e81f912d Mon Sep 17 00:00:00 2001
From: buaixuexideshitongxue <2936013465@qq.com>
Date: Tue, 12 May 2026 15:12:57 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E5=BE=85=E5=8A=9E=E4=B8=AD=E5=8C=BA?=
=?UTF-8?q?=E5=88=86=E5=87=BA=E6=8A=95=E8=AF=89=E4=B8=BE=E6=8A=A5=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/home/work/index.vue | 25 ++++++++++++++++++++++---
src/components/home/work/my-todo.vue | 4 ++++
2 files changed, 26 insertions(+), 3 deletions(-)
diff --git a/src/components/home/work/index.vue b/src/components/home/work/index.vue
index f16b57c..f736824 100644
--- a/src/components/home/work/index.vue
+++ b/src/components/home/work/index.vue
@@ -11,6 +11,18 @@
+
+
+
+
+ 投诉举报
+
+ 投诉举报
+
+
+
+
+
@@ -85,15 +97,22 @@ const myAlarmTotal = ref(0)
const loading = ref(true)
const countersignTodos = ref([]);
+const allTodos = ref([]); // 存储原始数据
+
+const complaintTodos = computed(() => {
+ return allTodos.value.filter(item => item.sourceType === "2")
+})
+const complaintTotal = computed(() => complaintTodos.value.length)
function getList() {
loading.value = true
listTodos({
current: 1,
size: 100,
}).then((data) => {
- todos.value = data.records;
- myTodoTotal.value = data.total
- todoToExpires.value = data.records.filter(item => item.remainingDuration < 43200)
+ allTodos.value = data.records;
+ todos.value = data.records.filter(item => item.sourceType !== "2");
+ myTodoTotal.value = todos.value.length;
+ todoToExpires.value = todos.value.filter(item => item.remainingDuration < 43200);
loading.value = false
});
listTodoCountersign({
diff --git a/src/components/home/work/my-todo.vue b/src/components/home/work/my-todo.vue
index ac76c85..d00df96 100644
--- a/src/components/home/work/my-todo.vue
+++ b/src/components/home/work/my-todo.vue
@@ -102,6 +102,10 @@
prop="businessTypeName"
width="98"
/>
+
+
+
+