- 您有{{ 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: '提示',