From 392380ab51e7ea0cc0de24ade0d397caf068a612 Mon Sep 17 00:00:00 2001 From: v6ole Date: Mon, 13 Jul 2026 01:25:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A5=E6=9C=9F=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=90=88=E5=B9=B6=E4=B8=BAdaterange;=20=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=A1=86+=E6=97=A5=E6=9C=9F=E9=80=89=E6=8B=A9=E7=A7=BB?= =?UTF-8?q?=E8=87=B3=E6=A0=87=E9=A2=98=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 两个独立month picker合并为一个daterange选择器 - 日期选择+搜索框移至我的工作数据标题同行 - 搜索框增加搜索按钮 - 移除新建按钮 Co-Authored-By: Claude --- .../src/views/desktop/ManagerWorkspace.vue | 35 ++++++++++--------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/frontend/src/views/desktop/ManagerWorkspace.vue b/frontend/src/views/desktop/ManagerWorkspace.vue index 4ec9b3f..5189b14 100644 --- a/frontend/src/views/desktop/ManagerWorkspace.vue +++ b/frontend/src/views/desktop/ManagerWorkspace.vue @@ -14,8 +14,7 @@ const loading = ref(false) const allManagers = ref([]) // Date range filter -const dateFrom = ref('') -const dateTo = ref('') +const dateRange = ref(null) const searchText = ref('') const pageSize = ref(25) @@ -30,7 +29,10 @@ const page = ref>({ visits: 1, notes: 1, plans: 1, mini: const total = ref>({ visits: 0, notes: 0, plans: 0, mini: 0, key: 0 }) function getDateRange() { - return { from: dateFrom.value, to: dateTo.value } + if (dateRange.value && Array.isArray(dateRange.value) && dateRange.value.length === 2) { + return { from: dateRange.value[0], to: dateRange.value[1] } + } + return { from: '', to: '' } } const customers = ref([]) const allUsers = ref([]) @@ -344,20 +346,17 @@ const notesByDate = computed(() => {