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"
/>
+
+
+
+