From 7552dad8367ad97341f4a857092eb944d0f0d49b Mon Sep 17 00:00:00 2001 From: corala <18339694416@163.com> Date: Tue, 9 Aug 2022 15:39:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=BE=E9=97=AE=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=E7=99=BB=E5=BD=95=E6=97=B6=E7=9A=84=E7=AD=9B=E9=80=89?= =?UTF-8?q?=EF=BC=8C=E5=8F=8A=E6=8C=96=E6=8E=98=E6=89=A7=E8=A1=8C=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/center/consumer/index.vue | 45 ++++++++++++++++++--------------- pages/center/records/index.vue | 34 +++++++++++++++---------- pages/mine/details2.vue | 18 +++++++++---- utils/domain.js | 3 ++- 4 files changed, 60 insertions(+), 40 deletions(-) diff --git a/pages/center/consumer/index.vue b/pages/center/consumer/index.vue index 82ea33e..fa459a1 100644 --- a/pages/center/consumer/index.vue +++ b/pages/center/consumer/index.vue @@ -997,9 +997,9 @@ export default { this.$u.post("/customer/customerManagement", parames) .then((data) => { this.LOADING = false; - if (this.screen.staTime && this.screen.endTime) { - this.arriveFilter = `${this.screen.staTime}-${this.screen.endTime}`; - } + // if (this.screen.staTime && this.screen.endTime) { + // this.arriveFilter = `${this.screen.staTime}-${this.screen.endTime}`; + // } var list = data.results || []; list.forEach((item) => { if (this.userInfo.dataCode == 6) { @@ -1056,25 +1056,28 @@ export default { }, //获取顾问列表 getFreeList() { - this.freeList = []; - this.$u - .post("/cusLvStatistics/selectAllAccountIdByHouseId", { - houseId: this.buildingID, - }) - .then((res) => { - this.freeList = res; - this.freeList.forEach((item) => { - item.label = item.name; - item.value = item.accountId; - }); - this.freeList.unshift({ - label: '全部', - value: '', - }) - if(this.userInfo.dataCode==6){ - this.freeList = [] + if(this.userInfo.dataCode==6){ + this.freeList = [{ + label: this.userInfo.name, + value: this.userInfo.accountId + }] + }else{ + this.freeList = []; + this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", { + houseId: this.buildingID, + }) + .then((res) => { + this.freeList = res; + this.freeList.forEach((item) => { + item.label = item.name; + item.value = item.accountId; + }); + this.freeList.unshift({ + label: '全部', + value: '', + }) + }); } - }); }, // 获取客户阶段数据 getCustomPhase() { diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue index dda1f8a..15662c7 100644 --- a/pages/center/records/index.vue +++ b/pages/center/records/index.vue @@ -678,19 +678,27 @@ }, //获取顾问列表 getFreeList() { - this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", { - houseId: this.buildingID - }).then(res => { - this.freeList = res; - this.freeList.forEach(item => { - item.label = item.name; - item.value = item.accountId - }) - this.freeList.unshift({ - label:'全部', - value: '' - }) - }) + if(this.userInfo.dataCode==6){// 顾问角色登录时只显示自己 + this.freeList = [{ + label: this.userInfo.name, + value: this.userInfo.accountId + }] + }else{ + this.$u.post("/cusLvStatistics/selectAllAccountIdByHouseId", { + houseId: this.buildingID + }).then(res => { + this.freeList = res; + this.freeList.forEach(item => { + item.label = item.name; + item.value = item.accountId + }) + this.freeList.unshift({ + label:'全部', + value: '' + }) + + }) + } }, actionSelectCallback(e) { this.screen.agentId = e[0].value; diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index 6345c1b..ce88bd7 100644 --- a/pages/mine/details2.vue +++ b/pages/mine/details2.vue @@ -343,10 +343,13 @@ 话术内容 - {{inc+1}}.{{che.question}} + {{inc+1}}.{{che.question}} + + @@ -370,11 +373,16 @@ 话术内容 - {{inc+1}}.{{che.question}} + {{inc+1}}.{{che.question}} + - - + + + + + diff --git a/utils/domain.js b/utils/domain.js index d862ea4..1b932d2 100644 --- a/utils/domain.js +++ b/utils/domain.js @@ -1,5 +1,6 @@ // http.js使用域名 -const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试 +const baseUrl = 'http://81.70.55.170:7070/api';// 最新测试 +// const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试 // const baseUrl = 'http://127.0.0.1:8080/autoSR/api'; // 本地 // const baseUrl = 'http://192.168.31.231:8080/autoSR/api'; // 长龙 // const baseUrl = 'http://192.168.31.149:8080/api'; // 盛浩