添加待跟进按钮

This commit is contained in:
WindowBird 2025-11-21 15:27:11 +08:00
parent 376283608d
commit 7d1201d3e0

View File

@ -3,8 +3,17 @@
<!-- 顶部标题栏 -->
<view class="header">
<text class="header-title">搜索</text>
<view v-if="showPrivateSwitch" style="display: flex;align-items: center;gap: 6px">
<view>私有</view><uv-switch v-model="filterSelf"></uv-switch>
<view style="display: flex; align-items: center; gap: 8px">
<view v-if="showPrivateSwitch" style="display: flex;align-items: center;gap: 6px">
<view>私有</view><uv-switch v-model="filterSelf"></uv-switch>
</view>
<view
class="today-follow-btn"
:class="{ 'active': isFilterSelected(TODAY_FOLLOW_FILTER) }"
@click="toggleFilter(TODAY_FOLLOW_FILTER)"
>
待跟进
</view>
</view>
<view class="filter-btn" @click="showFilter = !showFilter">
@ -43,11 +52,6 @@
:class="{ 'active': isFilterSelected('invalid') }"
@click="toggleFilter('invalid')"
>失效</text>
<text
class="filter-option"
:class="{ 'active': isFilterSelected(TODAY_FOLLOW_FILTER) }"
@click="toggleFilter(TODAY_FOLLOW_FILTER)"
>今日跟进</text>
</view>
</view>
</view>
@ -278,9 +282,9 @@ const buildQueryParams = () => {
if (hasTodayFollowFilter) {
const today = getTodayDate();
params.nextFollowDateStart = today;
// params.nextFollowDateStart = today;
params.nextFollowDateEnd = today;
console.log('筛选今日跟进,日期:', today);
console.log('筛选跟进,日期:', today);
}
if (statusFilters.length > 0) {
@ -301,7 +305,7 @@ const buildQueryParams = () => {
if (!hasTodayFollowFilter && statusFilters.length === 0) {
console.log('无筛选状态,返回默认参数');
} else if (hasTodayFollowFilter && statusFilters.length === 0) {
console.log('仅筛选今日跟进,清理状态筛选参数');
console.log('仅筛选跟进,清理状态筛选参数');
params.statusList = undefined;
}
@ -559,6 +563,22 @@ defineExpose({
font-weight: 500;
}
.today-follow-btn {
padding: 6px 12px;
font-size: 14px;
color: #606266;
background-color: #f5f7fa;
border-radius: 16px;
border: 1px solid transparent;
transition: all 0.3s ease;
&.active {
background-color: #ecf5ff;
color: #409eff;
border-color: #409eff;
}
}
.filter-icon {
font-size: 12px;
color: #909399;