添加待跟进按钮-选中两个状态-潜在-意向
This commit is contained in:
parent
7d1201d3e0
commit
cbea1576a8
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user