修复客户列表查询问题(单选今日跟进的异常)
This commit is contained in:
parent
48f58b5c1a
commit
014b3c8346
|
|
@ -269,7 +269,8 @@ const buildQueryParams = () => {
|
||||||
...DEFAULT_SORT,
|
...DEFAULT_SORT,
|
||||||
joinUserId: filterSelf.value && currentUserId.value ? currentUserId.value : null,
|
joinUserId: filterSelf.value && currentUserId.value ? currentUserId.value : null,
|
||||||
nextFollowDateStart: null,
|
nextFollowDateStart: null,
|
||||||
nextFollowDateEnd: null
|
nextFollowDateEnd: null,
|
||||||
|
statusList: undefined
|
||||||
};
|
};
|
||||||
|
|
||||||
const hasTodayFollowFilter = selectedFilters.value.includes(TODAY_FOLLOW_FILTER);
|
const hasTodayFollowFilter = selectedFilters.value.includes(TODAY_FOLLOW_FILTER);
|
||||||
|
|
@ -299,6 +300,9 @@ const buildQueryParams = () => {
|
||||||
|
|
||||||
if (!hasTodayFollowFilter && statusFilters.length === 0) {
|
if (!hasTodayFollowFilter && statusFilters.length === 0) {
|
||||||
console.log('无筛选状态,返回默认参数');
|
console.log('无筛选状态,返回默认参数');
|
||||||
|
} else if (hasTodayFollowFilter && statusFilters.length === 0) {
|
||||||
|
console.log('仅筛选今日跟进,清理状态筛选参数');
|
||||||
|
params.statusList = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
return params;
|
return params;
|
||||||
|
|
@ -444,7 +448,8 @@ watch(selectedFilters, () => {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: PAGE_SIZE,
|
pageSize: PAGE_SIZE,
|
||||||
nextFollowDateStart: null,
|
nextFollowDateStart: null,
|
||||||
nextFollowDateEnd: null
|
nextFollowDateEnd: null,
|
||||||
|
statusList: undefined
|
||||||
};
|
};
|
||||||
refresh();
|
refresh();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user