添加低意向
This commit is contained in:
parent
bf1d09a2ff
commit
2d1bc99d9b
|
|
@ -39,9 +39,14 @@
|
||||||
>潜在</text>
|
>潜在</text>
|
||||||
<text
|
<text
|
||||||
class="filter-option"
|
class="filter-option"
|
||||||
:class="{ 'active': isFilterSelected('intent') }"
|
:class="{ 'active': isFilterSelected('highIntent') }"
|
||||||
@click="toggleFilter('intent')"
|
@click="toggleFilter('highIntent')"
|
||||||
>意向</text>
|
>高意向</text>
|
||||||
|
<text
|
||||||
|
class="filter-option"
|
||||||
|
:class="{ 'active': isFilterSelected('lowIntent') }"
|
||||||
|
@click="toggleFilter('lowIntent')"
|
||||||
|
>低意向</text>
|
||||||
<text
|
<text
|
||||||
class="filter-option"
|
class="filter-option"
|
||||||
:class="{ 'active': isFilterSelected('deal') }"
|
:class="{ 'active': isFilterSelected('deal') }"
|
||||||
|
|
@ -288,7 +293,7 @@ const buildQueryParams = () => {
|
||||||
|
|
||||||
// 如果当前没有选择任何状态筛选,则默认添加潜在 + 意向
|
// 如果当前没有选择任何状态筛选,则默认添加潜在 + 意向
|
||||||
if (statusFilters.length === 0) {
|
if (statusFilters.length === 0) {
|
||||||
statusFilters.push('potential', 'intent');
|
statusFilters.push('potential', 'highIntent', 'lowIntent');
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('筛选待跟进,日期 <=', today, ',状态:', statusFilters);
|
console.log('筛选待跟进,日期 <=', today, ',状态:', statusFilters);
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,7 @@ const PAGE_SIZE = 20;
|
||||||
const BASE_QUERY = {
|
const BASE_QUERY = {
|
||||||
orderByColumn: 'createTime',
|
orderByColumn: 'createTime',
|
||||||
isAsc: 'descending',
|
isAsc: 'descending',
|
||||||
type: 2
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const form = reactive({
|
const form = reactive({
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,10 @@
|
||||||
*/
|
*/
|
||||||
export const CUSTOMER_STATUS_MAP = {
|
export const CUSTOMER_STATUS_MAP = {
|
||||||
'1': '潜在',
|
'1': '潜在',
|
||||||
'2': '意向',
|
'2': '高意向',
|
||||||
'3': '成交',
|
'3': '成交',
|
||||||
'4': '失效'
|
'4': '失效',
|
||||||
|
'5': '低意向',
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -19,10 +20,11 @@ export const CUSTOMER_STATUS_MAP = {
|
||||||
* 状态文本 -> 状态值数组
|
* 状态文本 -> 状态值数组
|
||||||
*/
|
*/
|
||||||
export const CUSTOMER_STATUS_FILTER_MAP = {
|
export const CUSTOMER_STATUS_FILTER_MAP = {
|
||||||
'potential': ['1'], // 潜在
|
'potential': ['1'], // 潜在
|
||||||
'intent': ['2'], // 意向
|
'highIntent': ['2'], // 高意向
|
||||||
'deal': ['3'], // 成交
|
'deal': ['3'], // 成交
|
||||||
'invalid': ['4'] // 失效
|
'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<string>} 状态值数组
|
* @returns {Array<string>} 状态值数组
|
||||||
*/
|
*/
|
||||||
export const getStatusListByFilter = (filterKey) => {
|
export const getStatusListByFilter = (filterKey) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user