From 16c6f56f60a6cc7ae13b5e26e8001e9dfcc28500 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 15 十月 2026 13:07:26 +0800
Subject: [PATCH] fix(crm): 营销管理排行榜数据展示问题
---
src/views/crm/statistics/portrait/data.ts | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/views/crm/statistics/portrait/data.ts b/src/views/crm/statistics/portrait/data.ts
index b443f75..9070e72 100644
--- a/src/views/crm/statistics/portrait/data.ts
+++ b/src/views/crm/statistics/portrait/data.ts
@@ -5,6 +5,8 @@
import { useUserStore } from '@vben/stores';
import { beginOfDay, endOfDay, formatDateTime, handleTree } from '@vben/utils';
+import dayjs from 'dayjs';
+
import { getSimpleDeptList } from '#/api/system/dept';
import { getSimpleUserList } from '#/api/system/user';
import { getRangePickerDefaultProps } from '#/utils';
@@ -42,8 +44,8 @@
format: 'YYYY-MM-DD',
},
defaultValue: [
- formatDateTime(beginOfDay(new Date(Date.now() - 3600 * 1000 * 24 * 7))),
- formatDateTime(endOfDay(new Date(Date.now() - 3600 * 1000 * 24))),
+ formatDateTime(beginOfDay(dayjs().subtract(2, 'month').toDate())),
+ formatDateTime(endOfDay(new Date())),
],
},
{
--
Gitblit v1.9.3