添加待跟进按钮-选中两个状态-潜在-意向

This commit is contained in:
WindowBird 2025-11-21 15:36:29 +08:00
parent 7d1201d3e0
commit cbea1576a8

View File

@ -281,10 +281,17 @@ const buildQueryParams = () => {
const statusFilters = selectedFilters.value.filter(item => item !== TODAY_FOLLOW_FILTER);
if (hasTodayFollowFilter) {
// + <=
const today = getTodayDate();
// params.nextFollowDateStart = today;
params.nextFollowDateStart = null;
params.nextFollowDateEnd = today;
console.log('筛选待跟进,日期:', today);
// +
if (statusFilters.length === 0) {
statusFilters.push('potential', 'intent');
}
console.log('筛选待跟进,日期 <=', today, ',状态:', statusFilters);
}
if (statusFilters.length > 0) {
@ -305,8 +312,7 @@ const buildQueryParams = () => {
if (!hasTodayFollowFilter && statusFilters.length === 0) {
console.log('无筛选状态,返回默认参数');
} else if (hasTodayFollowFilter && statusFilters.length === 0) {
console.log('仅筛选待跟进,清理状态筛选参数');
params.statusList = undefined;
console.log('仅筛选待跟进,但未能识别到状态筛选键');
}
return params;