From d9d5ab70cc70d7b06e211a8ae8e7708fd1408f99 Mon Sep 17 00:00:00 2001 From: zhihao <18915542763@163.com> Date: Thu, 30 Apr 2026 22:43:59 +0800 Subject: [PATCH] =?UTF-8?q?czh-20260430-=E4=BF=AE=E5=A4=8D=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E7=AE=A1=E7=90=86=E7=9B=B8=E5=85=B3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tasklist/components/CreateListModal.vue | 4 +- src/views/tasklist/components/TaskContent.vue | 640 +++++---- .../tasklist/components/TaskDetailDrawer.vue | 88 +- .../tasklist/components/TaskFlatView.vue | 1146 +++++++++++++++++ src/views/tasklist/components/TaskSidebar.vue | 122 +- src/views/tasklist/index.vue | 442 ++++--- src/views/tasklist/types.ts | 10 +- src/views/tasklist/utils/taskUtils.ts | 29 + 8 files changed, 1925 insertions(+), 556 deletions(-) create mode 100644 src/views/tasklist/components/TaskFlatView.vue create mode 100644 src/views/tasklist/utils/taskUtils.ts diff --git a/src/views/tasklist/components/CreateListModal.vue b/src/views/tasklist/components/CreateListModal.vue index d6f8bde..9a9c9a3 100644 --- a/src/views/tasklist/components/CreateListModal.vue +++ b/src/views/tasklist/components/CreateListModal.vue @@ -30,12 +30,12 @@ try { setModalProps({ confirmLoading: true }); const values = await validate(); - await addTaskList({ + const listId = await addTaskList({ tasklistName: values.tasklistName || values.name, pid: pendingGroupId || undefined, }); closeModal(); - emit('success'); + emit('success', listId); } finally { setModalProps({ confirmLoading: false }); } diff --git a/src/views/tasklist/components/TaskContent.vue b/src/views/tasklist/components/TaskContent.vue index 6509911..9dcef26 100644 --- a/src/views/tasklist/components/TaskContent.vue +++ b/src/views/tasklist/components/TaskContent.vue @@ -8,9 +8,9 @@