From 6e683a9d29bdda6a2919765fa235a464abb8f9cb Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Tue, 1 Apr 2025 15:54:39 +0800 Subject: [PATCH] =?UTF-8?q?refactor(market):=20=E9=87=8D=E6=9E=84=E5=B8=82?= =?UTF-8?q?=E5=9C=BA=E7=BA=BF=E7=B4=A2=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新筛选条件和数据统计逻辑 - 优化区域公海和我的客户切换功能- 调整线索列表展示格式 - 添加意向等级图标和逻辑 - 优化数据请求和处理流程 --- pages/market/clue/index.vue | 240 +++++++++++------------------------- 1 file changed, 69 insertions(+), 171 deletions(-) diff --git a/pages/market/clue/index.vue b/pages/market/clue/index.vue index 5a94ed5..1133032 100644 --- a/pages/market/clue/index.vue +++ b/pages/market/clue/index.vue @@ -3,15 +3,15 @@ - 全部(320) + 全部({{countArr.type_0}}) - 待跟进(8) + 待跟进({{countArr.type_1}}) - 7天未跟进(15) + 7天未跟进({{countArr.type_2}}) - 30天未成交(12) + 30天未成交({{countArr.type_3}}) @@ -58,193 +58,58 @@ - + - 今日待领(15/30) - - - - - - - - 包子皮 - 试听 - - - 首联系人:包念念 妈妈 - - - 08-30 14:25  跟进 - - - - - - 意向:低 - - - - - - - 领 - - - - - - - - - - 包子皮 - 试听 - - - 首联系人:包念念 妈妈 - - - 08-30 14:25  跟进 - - - - - - 意向:低 - - - - - - - 领 - - - - - - - - - - 包子皮 - 试听 - - - 首联系人:包念念 妈妈 - - - 08-30 14:25 跟进 - - - - - - 意向:低 - - - - - - - 领 - - - - - - - - - - 包子皮 - 试听 - - - 首联系人:包念念 妈妈 - - - 08-30 14:25  跟进 - - - - - - 意向:低 - - - - - - - 领 - - + 今日待领({{countArr.lq_count}}/{{countArr.max_count}}) - + - 包子皮 - 试听 + {{v.student_name}} + {{v.is_status == 1 ? '试听' : '成交'}} - 首联系人:包念念 妈妈 + 首联系人:{{v.contact_name}} {{v.decision_maker}} - 08-30 14:25  跟进 + {{ $util.formatToDateTime((v.follow && v.follow.follow_up_time || ''),'m-d H:i') }} 跟进 - + + + - 意向:低 + 意向:{{ v.follow && v.follow.initial_customer_intent || '' }} - - - 领 - - - - - - - - - - 包子皮 - 试听 - - - 首联系人:包念念 妈妈 - - - 08-30 14:25  跟进 - - - - - - 意向:低 - - - + + - - - 领 - + + @@ -273,9 +138,18 @@ export default { limit:10,//每页返回数据条数 total:10,//数据总条数 type: '0',//0=全部,1=待跟进,2=7天,3=30天 - is_gh: '1',//1=区域公海,2=我的客户 + is_gh: '2',//1=区域公海,2=我的客户 }, + countArr:{ + type_0:0, + type_1:0, + type_2:0, + type_3:0, + max_count:0, + lq_count:0, + + },//统计数组 tableList:[],//表格数据 values: [{ @@ -287,6 +161,7 @@ export default { }], select_type: 1,//筛选标签列表|1,2,3,4 segmented_type: 1,//1=我的客户,2=区域公海 + } }, onLoad(options) {}, @@ -352,11 +227,21 @@ export default { return } - this.tableList = this.tableList.concat(res.data.data); // 使用 concat 方法 将新数据追加到数组中 + this.tableList = this.tableList.concat(res.data.list.data); // 使用 concat 方法 将新数据追加到数组中 console.log('列表',this.tableList) - this.filteredData.total = res.data.total + this.filteredData.total = res.data.list.total this.filteredData.page++ + + this.countArr = { + type_0:res.data.count[0], + type_1:res.data.count[1], + type_2:res.data.count[2], + type_3:res.data.count[3], + max_count:res.data.gh.max_count, + lq_count:res.data.gh.lq_count, + } + }, //设置筛选条件 @@ -364,7 +249,13 @@ export default { this.select_type = type //重置为第一页 await this.resetFilteredData() - this.filteredData.is_gh = this.segmented_type + + if(this.segmented_type == 1){ + this.filteredData.is_gh = '2'//2=我的客户 + }else{ + this.filteredData.is_gh = '1'//1=区域公海 + } + switch (type) { //全部 case 1: @@ -391,7 +282,14 @@ export default { this.segmented_type = index.id//1=我的客户,2=区域公海 //重置为第一页 await this.resetFilteredData() - this.filteredData.is_gh = this.segmented_type + + if(this.segmented_type == 1){ + this.filteredData.is_gh = '2'//2=我的客户 + }else{ + this.filteredData.is_gh = '1'//1=区域公海 + } + + this.filteredData.type = '0' await this.getList() },