diff --git a/components/customer/CustomerManagement.vue b/components/customer/CustomerManagement.vue
index 20596a2..0c7aa94 100644
--- a/components/customer/CustomerManagement.vue
+++ b/components/customer/CustomerManagement.vue
@@ -39,9 +39,14 @@
>潜在
意向
+ :class="{ 'active': isFilterSelected('highIntent') }"
+ @click="toggleFilter('highIntent')"
+ >高意向
+ 低意向
{
// 如果当前没有选择任何状态筛选,则默认添加潜在 + 意向
if (statusFilters.length === 0) {
- statusFilters.push('potential', 'intent');
+ statusFilters.push('potential', 'highIntent', 'lowIntent');
}
console.log('筛选待跟进,日期 <=', today, ',状态:', statusFilters);
diff --git a/pages/customer/search/index.vue b/pages/customer/search/index.vue
index 7302709..321defe 100644
--- a/pages/customer/search/index.vue
+++ b/pages/customer/search/index.vue
@@ -142,7 +142,7 @@ const PAGE_SIZE = 20;
const BASE_QUERY = {
orderByColumn: 'createTime',
isAsc: 'descending',
- type: 2
+
};
const form = reactive({
diff --git a/utils/customerMappings.js b/utils/customerMappings.js
index 9f8c890..32cde9f 100644
--- a/utils/customerMappings.js
+++ b/utils/customerMappings.js
@@ -9,9 +9,10 @@
*/
export const CUSTOMER_STATUS_MAP = {
'1': '潜在',
- '2': '意向',
+ '2': '高意向',
'3': '成交',
- '4': '失效'
+ '4': '失效',
+ '5': '低意向',
};
/**
@@ -19,10 +20,11 @@ export const CUSTOMER_STATUS_MAP = {
* 状态文本 -> 状态值数组
*/
export const CUSTOMER_STATUS_FILTER_MAP = {
- 'potential': ['1'], // 潜在
- 'intent': ['2'], // 意向
- 'deal': ['3'], // 成交
- 'invalid': ['4'] // 失效
+ 'potential': ['1'], // 潜在
+ 'highIntent': ['2'], // 高意向
+ 'deal': ['3'], // 成交
+ 'invalid': ['4'], // 失效
+ 'lowIntent': ['5'] // 低意向
};
/**
@@ -121,7 +123,7 @@ export const getCustomerTypeText = (type, typeOptions = []) => {
/**
* 根据筛选键获取状态值数组
- * @param {string} filterKey - 筛选键(potential/intent/deal/invalid)
+ * @param {string} filterKey - 筛选键(potential/highIntent/deal/invalid/lowIntent)
* @returns {Array} 状态值数组
*/
export const getStatusListByFilter = (filterKey) => {