From 3574aa5bab5c03090cae5d840cd270bd526549ad Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Wed, 12 Nov 2025 14:57:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5=E5=8D=A1?= =?UTF-8?q?=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ContentDashboard.vue | 44 ++++++++++++++++++++++----------- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/components/ContentDashboard.vue b/components/ContentDashboard.vue index 7a9febf..b666490 100644 --- a/components/ContentDashboard.vue +++ b/components/ContentDashboard.vue @@ -42,30 +42,35 @@ - - + + + + + + + {{ task.date }} + - - {{ task.date }} + + + 立即处理 所属项目: {{ task.project }} - {{ task.description }} + {{truncateText(task.description)}} 负责人: {{ task.owner }} 发布时间: {{ task.releaseTime }} - - 立即处理 - + @@ -187,6 +192,16 @@ const customerStatus = ref([ { label: '即将跟进', count: 0 } ]); +const truncateText = (text, maxLength = 30, suffix = '...')=> { + if (!text || typeof text !== 'string') return '' + + if (text.length <= maxLength) { + return text + } + + return text.substring(0, maxLength) + suffix +} + // 加载状态 const loading = ref(false); @@ -586,6 +601,7 @@ const getTagCustomStyle = (status) => { .task-header { display: flex; align-items: center; + justify-content: space-between; gap: 12px; margin-bottom: 12px; }