From ce94c6b2ba93f69bf711b0fd18883c9ed890d4e9 Mon Sep 17 00:00:00 2001 From: v6ole Date: Thu, 25 Jun 2026 12:05:33 +0800 Subject: [PATCH] =?UTF-8?q?refine:=20=E7=BC=93=E5=AD=98=E7=9A=84=20AI=20?= =?UTF-8?q?=E6=91=98=E8=A6=81=E9=BB=98=E8=AE=A4=E6=8A=98=E5=8F=A0=EF=BC=8C?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=B1=95=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - aiExpanded ref: 缓存加载=false, 新生成=true - 标题栏可点击切换折叠/展开 - 折叠态显示 ▶ + '点击展开' 提示 - 展开态显示 ▼ + 复制按钮 - 卡片边框折叠时降为 warm-border --- frontend/src/views/desktop/WeeklyReport.vue | 29 ++++++++++++++++----- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/frontend/src/views/desktop/WeeklyReport.vue b/frontend/src/views/desktop/WeeklyReport.vue index f824a78..be4eea3 100644 --- a/frontend/src/views/desktop/WeeklyReport.vue +++ b/frontend/src/views/desktop/WeeklyReport.vue @@ -18,6 +18,7 @@ const aiSummary = ref('') const aiError = ref('') const aiCached = ref(false) const aiCreatedAt = ref('') +const aiExpanded = ref(false) const activeTab = ref('visits') const filterManagerId = ref('') const filterCustomerId = ref('') @@ -125,6 +126,7 @@ async function generateAISummary() { aiSummary.value = res.data.summary aiCached.value = !!res.data.cached aiCreatedAt.value = res.data.created_at || '' + aiExpanded.value = true } catch (e: any) { const detail = e.response?.data?.detail || 'AI 摘要生成失败,请检查 AI 服务配置或稍后重试' aiError.value = detail @@ -253,26 +255,29 @@ const notesByDate = computed(() => { - +