From 6db02994644ec17bd7372b6b38db55d0cc713d56 Mon Sep 17 00:00:00 2001 From: lancer <1905818361@qq.com> Date: Wed, 25 Aug 2021 18:51:16 +0800 Subject: [PATCH] init --- pages/center/consumer/edit.vue | 32 ++++++++++---------------------- utils/http.js | 4 ++-- 2 files changed, 12 insertions(+), 24 deletions(-) diff --git a/pages/center/consumer/edit.vue b/pages/center/consumer/edit.vue index 0eaf3b1..00bde26 100644 --- a/pages/center/consumer/edit.vue +++ b/pages/center/consumer/edit.vue @@ -280,21 +280,21 @@ this.selectform.lelve=this.lelvelist[idx].label } // 获取置业需求 - this.getListByType('needType','demandlist') - // 获取意向面积 - this.getListByType('area','arealist') - // 获取客户来源 - this.getListByType('customerSource','sourelist') + this.getListByType() + // // 获取意向面积 + // this.getListByType() + // // 获取客户来源 + // this.getListByType() }) }, // 字典表接口 - getListByType(type,list){ - this.$u.get("/sysDict/findListByType",{type}) + getListByType(){ + this.$u.get("/matchKeywords/findPersonalMatchData?",{customerId:this.customerId}) .then(res=>{ - // console.log(res) - this[list]=res + console.log(res) + return // 处理回显问题 - if(type=='needType'){ + // 置业需求 // console.log(this.demandlist) this.demandlist.map(item=>{ @@ -305,19 +305,7 @@ item.checked=false } }) - } // 意向面积 - if(type=='area'){ - this.arealist.map(item=>{ - item.checked=false - }) - } - // 客户来源 - if(type=='customerSource'){ - this.sourelist.map(item=>{ - item.checked=false - }) - } }) }, diff --git a/utils/http.js b/utils/http.js index 120a504..e87e90a 100644 --- a/utils/http.js +++ b/utils/http.js @@ -1,7 +1,7 @@ -// const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站 +const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站 // const baseUrl = 'http://192.168.31.161:8080/autoSR/api'; // 长龙 -const baseUrl = 'http://192.168.31.128:8080/autoSR/api'; // 佳豪 +// const baseUrl = 'http://192.168.31.128:8080/autoSR/api'; // 佳豪 // const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 // const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 // const baseUrl = 'https://hfju.com/api'; // 数智正式