diff --git a/src/views/Statistics/ConsultantBrand.vue b/src/views/Statistics/ConsultantBrand.vue index fa3b03f..9b1d73a 100644 --- a/src/views/Statistics/ConsultantBrand.vue +++ b/src/views/Statistics/ConsultantBrand.vue @@ -106,6 +106,15 @@ > {{ row.activeCustomer }}次 + + + {{ row.unTagCustomer }}个 + {{ i + 1 }} @@ -341,7 +350,7 @@ class="boxbaifenbi" :style="'width:' + item.zxl + '%;'" > --> - + {{ item.zxl }}% @@ -431,6 +440,151 @@ + + + + + + + 接待未标顾问排名(TOP10) + + + + + + + + + + 未标记合计 + {{ num5 }}个 + + + 均值 + {{ avg5 }}个 + + + + + + {{ i + 1 }} + + + {{ item.name }} + + + + + + + + {{ item.zxl }}个 + + + + + + 暂无数据 + + + + + + 违禁接待次数排名(TOP10) + + + + + + + + + + 违禁合计 + {{ sum4 }}次 + + + 顾问人数 + {{ num4 }}个 + + + 均值 + {{ avg4 }}次 + + + + + + {{ i + 1 }} + + + {{ item.name }} + + + + + + + + {{ item.zxl }}次 + + + + + + 暂无数据 + + + + + @@ -463,10 +617,14 @@ export default { echarlist1: [], echarlist2: [], echarlist3: [], + echarlist4: [], teamAllLevel: [], + teamAllLevels: [], teamAllLevelid: "", teamAllLeve2id: "", teamAllLeve2: [], + teamAllLevels: [], + teamAllLevelsId: '', sum1: "", avg1: "", num1: "", @@ -482,6 +640,10 @@ export default { sum4: "", avg4: "", num4: "", + + sum5: "", + avg5: "", + num5: "", houseList: [], role: "", }; @@ -504,6 +666,27 @@ export default { } }, methods: { + // 排名颜色 + topThreeColor(index) { + let str = '' + switch (index) { + case 0: + str = '#F54D3F' + break + case 1: + str = '#FF981E' + break + case 2: + str = '#FFCC00' + break + default: + str = '#E5F0FF' + break + } + + return str + }, + downLoad() { let obj = { houseId: this.houseId, @@ -542,12 +725,18 @@ export default { this.sum4 = ""; this.avg4 = ""; this.num4 = ""; + + + this.sum5 = ""; + this.avg5 = ""; + this.num5 = ""; this.tableData = []; this.tabFlag = 0; this.echarlist = []; this.echarlist1 = []; this.echarlist2 = []; this.echarlist3 = []; + this.echarlist4 = []; this.tabtimetap(4); this.deptFindList(); this.teamAllLeve(); @@ -572,6 +761,7 @@ export default { teamAllLeve() { this.teamAllLevel = [{ name: "平均执行", value: "" }]; this.teamAllLeve2 = [{ name: "总次数", value: "" }]; + this.teamAllLevels = [{name: '总次数', value: ''}] let pamaet = { houseId: this.houseId, dateType: 0, @@ -634,6 +824,7 @@ export default { this.echarlist1 = await this.accountRankTOP10(3, this.teamAllLevelid, ""); this.echarlist2 = await this.accountRankTOP10(2); this.echarlist3 = await this.accountRankTOP10(4, "", this.teamAllLeve2id); + this.echarlist4 = await this.accountRankTOP10(5, "", this.teamAllLeve2id); }, // 获取图标 async accountRankTOP10(type, marketingId = "", words = "") { @@ -672,6 +863,10 @@ export default { obj.name = item.accountName; obj.zxl = item.fraction; arr.push(obj); + } else if(type == 5) { + obj.name = item.accountName; + obj.zxl = item.unTagCustomer; + arr.push(obj); } else { obj.name = item.accountName; obj.zxl = item.prohibitedCustomer; @@ -697,9 +892,11 @@ export default { ); arr = this.dealData(arr); } + if (type == 5) { + arr = this.dealData(arr); + } return arr; }, - accountRank() { this.$api.api .accountRank({ diff --git a/src/views/Statistics/TheTeamCompared.vue b/src/views/Statistics/TheTeamCompared.vue index ddef29c..6d74fd7 100644 --- a/src/views/Statistics/TheTeamCompared.vue +++ b/src/views/Statistics/TheTeamCompared.vue @@ -49,22 +49,6 @@ > - - 咨询业务 - - - - - 接待量排名 + + + - + 团队总数 {{ teamobj1.num || 0 }}个 - + 均值 {{ teamobj1.avg || 0 }}个 @@ -137,24 +124,12 @@ style="width: 94%; margin: 0 auto" > - - {{ i + 1 }} - - - {{ item.name }} - - + {{ item.name }} - - - + > {{ item.zxl }}个 @@ -174,11 +149,11 @@ 接待时长排名 - + 团队总数 {{ teamobj2.num || 0 }}个 - + 均值 {{ Math.floor(teamobj2.avg / 60) || 0 }}分钟 @@ -190,25 +165,12 @@ style="width: 94%; margin: 0 auto" > - - {{ i + 1 }} - - - {{ item.name }} - - - + {{ item.name }} - - - + > {{ item.zxl }}分钟 @@ -247,11 +209,11 @@ - + 团队总数 {{ teamobj3.num || 0 }}个 - + 均值 {{ teamobj3.avg || 0 }}% @@ -261,25 +223,12 @@ style="width: 94%; margin: 0 auto" > - - {{ i + 1 }} - - - {{ item.name }} - - - + {{ item.name }} - - - + > {{ item.zxl }}% @@ -316,6 +265,9 @@ 违禁接待次数 + + + - + 团队总数 {{ teamobj5.num || 0 }}个 - + 均值 {{ teamobj5.avg || 0 }}次 @@ -349,25 +301,12 @@ style="width: 94%; margin: 0 auto" > - - {{ i + 1 }} - - - {{ item.name }} - - - + {{ item.name }} - - - + > {{ item.zxl }}次 @@ -399,6 +338,7 @@ + @@ -416,8 +356,6 @@ export default { statDateEnd: "", tablsitdata1: [], tablsitdata2: [], - business: "", - businessList: [], teamobj1: { avg: "", list: [], @@ -984,18 +922,6 @@ export default {