diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 097a9ed..1be47e4 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -26,13 +26,13 @@
- +
- 您有{{ todoList?.length || 0 }}条待办需要处理 + 您有{{ todoNum || 0 }}条待办需要处理
查看更多 @@ -70,13 +70,13 @@
- +
- 您有{{ todoList.length }}条待办需要处理 + 您有{{ todoNum }}条待办需要处理
查看更多 @@ -359,6 +359,8 @@ const taskTabList = ref([ } ]) const todoList = ref([]) +const doneNum = ref(0) +const todoNum = ref(0) const noticeList = ref([]) const rulesList = ref([]) const helpDocList = ref([]) @@ -631,7 +633,7 @@ const getTodoList = () => { getHomeTaskInfo().then(res => { if (res.code === 1000) { todoList.value = res.data.rows - // todoNum.value=res.data.total + todoNum.value=res.data.total } else { ElNotification({ title: '提示', @@ -645,7 +647,7 @@ const getDoneList = () => { getDoneTaskInfo().then(res => { if (res.code === 1000) { doneList.value = res.data.rows - // todoNum.value=res.data.total + doneNum.value=res.data.total } else { ElNotification({ title: '提示',