From fc61b403c2a4cf7e66b842abeed9d5d87a5bfd5a Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Mon, 6 Jan 2025 17:08:58 +0800 Subject: [PATCH] 1 --- src/views/system/DashboardComponents/toDo.vue | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/views/system/DashboardComponents/toDo.vue b/src/views/system/DashboardComponents/toDo.vue index 87cd985..f98004a 100644 --- a/src/views/system/DashboardComponents/toDo.vue +++ b/src/views/system/DashboardComponents/toDo.vue @@ -46,6 +46,17 @@ + + @@ -143,7 +154,7 @@ export default { this.init() }, methods: { - async getNotices(loading=false) { + async getNotices(loading = false) { try { if (loading) { this.loading = true @@ -155,7 +166,8 @@ export default { params: this.select }) if (res.status === 200) { - this.list = res.data.data?.data + this.list = res.data.data?.result + this.total = res.data.data?.total } this.loading = false } catch (err) { @@ -174,7 +186,7 @@ export default { this.tableHeight = cardDom.getBoundingClientRect().height - 40 - - cardTitleH + cardTitleH - 32 }) },